Quiz Space

Machine Learning Practice · End Term · 13 Apr 2025 · January 2025 term · Set QDD3

Question 25: | | sex | age | sibsp | parch | fare | class | embark_to…

Question 25

+1 markOne correct option
python
>>> import pandas as pd
>>> df = pd.read_csv('titanic.csv')
>>> print(df)
sexagesibspparchfareclassembark_townalivealone
0male22.0107.2500ThirdSouthamptonnoFalse
1female38.01071.2833FirstCherbourgyesFalse
2female26.0007.9250ThirdSouthamptonyesTrue
3female35.01053.1000FirstSouthamptonyesFalse
4male35.0008.0500ThirdSouthamptonnoTrue
5maleNaN008.4583ThirdQueenstownnoTrue
6male54.00051.8625FirstSouthamptonnoTrue
7male2.03121.0750ThirdSouthamptonnoFalse
8female27.00211.1333ThirdSouthamptonyesFalse
9female14.01030.0708SecondCherbourgyesFalse
10female4.01116.7000ThirdSouthamptonyesFalse
11female58.00026.5500FirstSouthamptonyesTrue
12male20.0008.0500ThirdSouthamptonnoTrue
13male39.01531.2750ThirdSouthamptonnoFalse
14female14.0007.8542ThirdSouthamptonnoTrue
15female55.00016.0000SecondSouthamptonyesTrue

Based on the above data, answer the given subquestions.

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • A

Question 25 of 30 in the IIT Madras BS Machine Learning Practice (MLP) End Term paper sat on 13 Apr 2025, in the January 2025 term (IIT M DIPLOMA AN EXAM QDD3 13 Apr 2025). It carries 1 mark.

More questions from this paper

  1. Q1Given the following code snippet that preprocesses a dataset with both continuous and categorical features using sklear…
  2. Q2Consider the following code snippet: If the shape of X is (20640, 8), what will be the shape of X_transformed?
  3. Q3Consider you are using a Dummy Regression with strategy=mean. Consider the following dataset. | S.No | X_1 | X_2 | X_3 …
  4. Q4You want to implement an SGDRegressor with the following specifications: Maximum iterations: 1500 Early stopping enable…
  5. Q5What is the primary computational bottleneck of the KNeighborsClassifier?
  6. Q6The following code attempts to implement Ridge regression on the Boston housing dataset but contains an error. The miss…
  7. Q7Which of the following techniques can be used for hyperparameter tuning in SGD Regression?
  8. Q8Given the following information, what will be the output of the code snippet? continuous: y is an array-like of floats …
  9. Q9Figure question
  10. Q10What will be the output of the following code snippet?
  11. Q11The following code snippet shows the use of two models built on the data X and label y: For the given data, which of th…
  12. Q12Figure question
  13. Q13Figure question
  14. Q14Figure question
  15. Q15Figure question
  16. Q16Consider the following Python code snippet that demonstrates the use of GaussianNB from scikit-learn: In the context of…
  17. Q17Which of the following statements are true with regard to logistic regression?
  18. Q18Figure question
  19. Q19Figure question
  20. Q20In top-down hierarchical clustering, clusters are recursively split until each data point is its own cluster. The choic…
  21. Q21Figure question
  22. Q22You are training a Multi-Layer Perceptron (MLP) using Scikit-Learn's MLPRegressor for a regression task. Consider the f…
  23. Q23What will be the output of the following code ?
  24. Q24Figure question
  25. Q26| | sex | age | sibsp | parch | fare | class | embark_town | alive | alone | |---|---|---|---|---|---|---|---|---|---| …
  26. Q27| | sex | age | sibsp | parch | fare | class | embark_town | alive | alone | |---|---|---|---|---|---|---|---|---|---| …
  27. Q28Consider following common data: Consider the above classification report on a model where y_test contains the original …
  28. Q29Consider following common data: Consider the above classification report on a model where y_test contains the original …
  29. Q30Consider following common data: Consider the above classification report on a model where y_test contains the original …