Quiz Space

Machine Learning Practice · End Term · 11 Dec 2022 · September 2022 term · Set ETD1-2

Question 4: Putting loss=hinge in class sklearn.linear_model.SGDClass…

Question 4

+2 marksOne correct option

Putting loss=hinge in class sklearn.linear_model.SGDClassifier(loss=’hinge’) dictates which of the following loss functions in SGDClassifier?

  1. A

    hinge but quadratically penalized

  2. B

    logistic regression

  3. C

    linear SVM

  4. D

    None of these

Show answer

Correct answer

  • C

    linear SVM

Question 4 of 38 in the IIT Madras BS Machine Learning Practice (MLP) End Term paper sat on 11 Dec 2022, in the September 2022 term (IIT M DIPLOMA AN1 EXAM ETD1 11 Dec 2022). It carries 2 marks.

More questions from this paper

  1. Q1We wish to load digit dataset from sklearn. Which of the following will result into an error?
  2. Q2Which of the following statements is/are incorrect about the AUC?
  3. Q3Which of the following options represents the correct option to set the regularization rate in RidgeClassifier?
  4. Q5Which of the following Naive Bayes algorithms can be applied if the data is imbalanced?
  5. Q6Which of the following options represents the correct output for the following block of code?
  6. Q7Mention which of the following statement(s) is / are correct?\ Statement 1: Incremental learning is a dynamic technique…
  7. Q8Which of the following options implements largest measure of regularization, i.e. which of these models will have lowes…
  8. Q9Consider the following scatter plots of four different input datasets: Which data will be classified better using gauss…
  9. Q10Consider following statements regarding a decision tree model:\ It is a non-parametric model.\ It has a tendency to und…
  10. Q11When a node is split in a decision tree (in sklearn):
  11. Q12Consider following statements:\ The K-means algorithm aims to choose centroids that minimise the inertia.\ The K-Means …
  12. Q13Hierarchical Clustering can also be called as
  13. Q14Which of the following options represents the major difference between HashingVectorizer and CountVectorizer?
  14. Q15The partial_fit in sklearn’s Perceptron model helps to:
  15. Q16Figure question
  16. Q17Which of the following are hyper parameters in a decision tree in sklearn?
  17. Q18Enter the output (up to 2 decimal points) for the following block of code.
  18. Q19Consider the following code snippet:
  19. Q20Which of the following is likely to be the correct output of the code given below?
  20. Q21Which of the following is likely to be the correct output of the code given below?
  21. Q22The correct code block or blocks to set adaptive learning rate while using SGDRegressor will be:
  22. Q23Consider following statements:\ Statement 1 : In order to extend ROC curve and ROC area to multi-label classification, …
  23. Q24Which of the following options represents the correct output for the following block of code?
  24. Q25Which of the following options represents the correct output for the following block of code?
  25. Q26Which of the following options represents the correct output of the following block of code?
  26. Q27You have a regression problem to solve with following information:\ All features are numerical.\ The dataset has size o…
  27. Q28Consider the following code and select the correct options.\ (Note: Assume necessary imports.)
  28. Q29Refer the dataframe(df) given below and enter the correct output (up to 2 decimal points) for the following block of co…
  29. Q30The output of the following block of code will be:
  30. Q31Enter the output (up to 2 decimal points) for the following block of code.
  31. Q32What is the correct output of the following block of code?\ [Note: LinearSVC implements “one-vs-the-rest” multi-class s…
  32. Q33Which of the following options represents all the correct precision, Recall, and accuracy values for the confusion matr…
  33. Q34Which of the following options represents the correct output of the following block of code?
  34. Q35Rajesh wants to tune hyper parameters of an AdaBoost model for a classification problem with following specifications:\…
  35. Q36Asha wants to train a bagging classifier with following specifications:\ Base estimator as k nearest neighbour classifi…
  36. Q37Based on the given code, select all option which will be considered as input alpha value for our RidgeCV estimator.
  37. Q38Which of the following could be the possible output of print(results.best_score_)?