Skip to content

Support for MultiOutputClassifier #337

Closed
@martianescape

Description

@martianescape

I am trying to use SMOTE along with Randomforest multiOutputClassifier.

Here is how I am using it,

forest = RandomForestClassifier(n_estimators= n_estimator, random_state=1)
multi_target_forest = MultiOutputClassifier(forest, n_jobs=-1)
sampler = SMOTE()
clf = make_pipeline(sampler, multi_target_forest)
model = clf.fit(vecs, vec_labels)

Is there a support for multOutputClassifier? Is this the correct way to use it?

I am encountering the value error in vec_labels.
length of vecs is 1631, vec_labels is [1631][241].
Please help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions