Choosing the one-dimensional sklearn function

I am trying to use the one-dimensional set of sklearn functions to filter out irrelevant functions:

ufs = feature_selection.SelectPercentile(feature_selection.f_classif, percentile = 60)
X_default_cvtrain = ufs.fit_transform( X_cvtrain, Y_cvtrain )

However, I get this warning:

UserWarning: Duplicate scores. Result may depend on feature ordering.
             There are probably duplicate features, or you used a classification score for a regression task.
warn("Duplicate scores. Result may depend on feature ordering."

What does it mean? What's going on here?

Thank.

+3
source share
1 answer

This means that there are recurring points, so the selected functions depend on the ordering of the functions. The likely reason is that you have duplicate functions.

+5
source

All Articles