Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What's the difference between morfist and the sklearn RandomForestRegressor with multi-output when dealing with only regression problems?? #4

Open
Qianqian-Yang opened this issue Jun 3, 2022 · 1 comment

Comments

@Qianqian-Yang
Copy link

Qianqian-Yang commented Jun 3, 2022

When dealing with only regression problems, the results of sklearn RandomForestRegressor is different from that of morfist, what caused the difference? I'm not quite clear about the implementary details of multioutput sklearn RandomForestRegressor and morfist when conducting multioutput-regression.

@Qianqian-Yang Qianqian-Yang changed the title What's the difference between morfist and the sklearn RandomForestRegressor with multi-output? What's the difference between morfist and the sklearn RandomForestRegressor with multi-output when dealing with only regression problems?? Jun 3, 2022
@donlnz
Copy link
Owner

donlnz commented Jun 10, 2022

Specifically for regression problems, there's no substantial difference to scikit-learn's RandomForestRegressor that I'm aware of. Same goes for classification problems and scikit-learn's RandomForestClassifier.

What morfist does differently (and, I don't think there's currently support for this in scikit-learn) is offer random forest models with a mix of classification and regression tasks. By default, morfist treats output variables as regression variables, but you can pass a list of output-variable indices to the class_targets parameter of the constructor to force the training algorithm to evaluate select output variables as discrete/classification targets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants