Quiz Space

Machine Learning Practice · Quiz 1 · 25 Feb 2024 · January 2024 term

Question 4: | | sex | age | sibsp | parch | fare | class | embark_tow…

Question 4

+2 marksOne 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.

Which option will help in filtering data to find females who are alive after titanic incident?

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

Correct answer

  • A

Question 4 of 24 in the IIT Madras BS Machine Learning Practice (MLP) Quiz 1 paper sat on 25 Feb 2024, in the January 2024 term (IIT M DIPLOMA AN2 EXAM QDD2 25 Feb 2024). It carries 2 marks.

More questions from this paper

  1. Q1| | sex | age | sibsp | parch | fare | class | embark_town | alive | alone | |---|---|---|---|---|---|---|---|---|---| …
  2. Q2| | sex | age | sibsp | parch | fare | class | embark_town | alive | alone | |---|---|---|---|---|---|---|---|---|---| …
  3. Q3| | sex | age | sibsp | parch | fare | class | embark_town | alive | alone | |---|---|---|---|---|---|---|---|---|---| …
  4. Q5| | sex | age | sibsp | parch | fare | class | embark_town | alive | alone | |---|---|---|---|---|---|---|---|---|---| …
  5. Q6Figure question
  6. Q7You are working on a machine learning project that aims to predict housing prices based on various features of the hous…
  7. Q8A company collects 40000 samples (examples) to build a Machine Learning model for an application. They decide to use 30…
  8. Q9Choose the option based on the following statements:\ Statement 1: The train-test split allows us to simulate the model…
  9. Q10In which of the following scenarios is data cleaning most required?
  10. Q11Consider the below code: What will be the output of the code snippet given above?
  11. Q12Which of the following metrics indicate higher their value, better the regression model’s performance?
  12. Q13How many models with different combinations of parameter values will get trained in the following code?
  13. Q14Figure question
  14. Q15Consider the following code: Which metrics will be contained in score1 and score2 respectively?
  15. Q16Consider following dataset: | HouseAge | AveRooms | Population | City | IncomeGroup | |---|---|---|---|---| | 41.0 | 6.…
  16. Q17Suppose that we plot the histogram of numerical features in a data set. This reveals which of the following information?
  17. Q18Figure question
  18. Q19Which of the following are valid loss functions for SGDClassifier?
  19. Q20Which columns <u>will not</u> be included in the selected data within the code below?
  20. Q21Which of the following Evaluation metrics can be used in a regression problem?
  21. Q22Consider the below code : keep following symbols in mind: >>>: Represents input code # : Represents comment in a code .…
  22. Q23Given the following code snippet, which statement is true regarding the use of LabelEncoder?
  23. Q24What will be the output of the following code ?