Solved

Which of the Following Statements Is False

Question 5

Multiple Choice

Which of the following statements is false?


A) You load the California Housing dataset using the the xe "modules:sklearn.datasets"xe "sklearn.datasets module"sklearn.datasets module's fetch_california_housing function, which returns a Bunch object.
B) The Bunch object's xe "Bunch class from sklearn.utils:data attribute"xe "data:attribute of a Bunch"data and xe "Bunch class from sklearn.utils:target attribute"xe "target attribute of a Bunch"target attributes are NumPy arrays containing the 20,640 xe "machine learning:samples"xe "samples (in machine learning) "samples and their xe "machine learning:target values"xe "target values (in machine learning) "target values respectively.
C) To confirm the number of samples (rows) and features (columns) , look at the data array's shape attribute, which shows that there are 20,640 rows and 8 columns, as in: In [4]: california.data.shape
Out[4]: (20640, 8)
Similarly, you can see that the number of target values-the median house values-matches the number of samples by looking at the target array's shape, as in:
In [5]: california.target.shape
Out[5]: (20640,)
D) The Bunch's features attribute contains the names that correspond to each column in the data array.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions