问题描述
这是我的管道:
pipeline = Pipeline([('features',FeatureUnion([
('text_pipeline',Pipeline([
('count_vectorizer',CountVectorizer(tokenizer=tokenize)),('tfidf_transformer',TfidfTransformer())
])),('starting_verb_transformer',StartingVerbExtractor())
])),('classifier',MultIoUtputClassifier(RandomForestClassifier(class_weight='balanced')))
])
这是我的简历功能:
parameters = {'classifier__estimator__n_estimators': [10],}
cv = gridsearchcv(estimator=pipeline,param_grid=parameters,cv=2,scoring = "average_precision",verbose=True)
cv.fit(X_train,y_train)
错误是:
ValueError: multiclass-multIoUtput format is not supported
但是pipeline.fit
运作良好。我们如何解决这个问题?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)