I'm trying to run MLKnn classifier over my pandas dataframe and when I try to fit the classifier I get this error message:
Series object has no attribute 'getformat'
Here's the code:
from skmultilearn.adapt import MLkNN
from sklearn.model_selection import GridSearchCV
parameters = {'k': range(1,3), 's': [0.5, 0.7, 1.0]}
score = 'f1_macro'
X = dados.drop(['defects'], axis=1)
y = dados['defects']
X_train, X_test, y_train, y_test = train_test_split(X, y,random_state=1)
classifier = GridSearchCV(MLkNN(), parameters,scoring=score)
classifier.fit(X_train, y_train)
my dataframe is as shown below: