Machine Learning Practice, Quiz 2
Consider following code snippet:
from sklearn.utils.multiclass import type_of_targetimport numpy as npprint(type_of_target(np.array([['horror','fantasy'], ['adventure','fantasy'], ['adventure','fantasy']])))print(type_of_target([72, 17.89, 63.00]))print(type_of_target([0, 1, 1, 0]))What will be the output of the above code snippet in the correct sequence?
Consider following code snippet: from sklearn.utils.multiclass import type_of_target import numpy as np print(type_of_target(np.array([['horror','fantasy'], ['adventure','fantasy'], ['adventure','fantasy']]))) print(type_of_target([72, 17.89, 63.00])) print(type_of_target([0, 1, 1, 0])) What will be the output of the above code snippet in the correct sequence? Figure from the original question paper Consider a binary classification dataset with labeled as 98% negative samples and 2% positive samples. A model is trained on this data, which of the following evaluation metrics are suitable for measuring effectiveness of this model: