Back

Explore Courses Blog Tutorials Interview Questions
0 votes
3 views
in Data Science by (18.4k points)

Here I have imported the SFS api from mlxtend which is SequentialFeatureSelector

from mlxtend.feature_selection import SequentialFeatureSelector as SFS

sfs = SFS(RandomForestClassifier(random_state=0,n_estimators=100,n_jobs=-1),k_features=6,verbose=2,cv=4,n_jobs=-1,scoring='accuracy',forward=True,floating=False).fit(x_train,y_train)

I am getting the error as shown

BrokenProcessPool: A task has failed to un-serialize. Please ensure that the arguments of the function are all pickable.

when I had used the same thing with the k_feature = 4 it gave me the features but when I used the k_feature = 6 then it is giving me an error like above.

Please log in or register to answer this question.

Browse Categories

...