I am unable to understand why the grader gave me “selector = SelectKBest(score_func=f_regression, k=8)” wrong stating the following. Can someone please help?
Failed test case: select_k_best has incorrect type.
Expected:
<class 'sklearn.feature_selection._univariate_selection.SelectKBest'>,
but got:
<class 'int'>.
Failed test case: X_new has incorrect type.
Expected:
<class 'numpy.ndarray'>,
but got:
<class 'sklearn.feature_selection._univariate_selection.SelectKBest'>.