-
Notifications
You must be signed in to change notification settings - Fork 875
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
EnsembleVotingRegressor #602 #648
base: master
Are you sure you want to change the base?
Conversation
-Added EnsembleVotingRegressor in regressor folder -also including my own test file in the test folder.
Hello @zzcysta! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2019-12-21 21:51:03 UTC |
I didn't look closely into the code, but it sounds somewhat similar to |
Yes, I did take a look at what EnsembleAVoting_Regressor was like in scikit-learn, I take it as a guidance and I also see how ensemble voting classifier work in mlxtend. Overall there are some differences, like the form of passing parameters is different. But both of them can get the same result. |
Interesting! Happy to know that. |
A bit of a background story, the In any case, I didn't know that there was a VotingRegressor added in scikit-learn in the mean time -- the issue here was relatively old. However, it doesn't hurt to have a EnsembleVotingRegressor here that is consistent with the EnsembleVotingClassifier UI-wise. |
Regarding this PR, I just see that there is a file
However, the test file should be a regular .py script similar to https://github.com/rasbt/mlxtend/blob/master/mlxtend/classifier/tests/test_ensemble_vote_classifier.py The jupyter documentation ensemble_voting_regressor.ipynb should be in |
Sorry for putting the file in the wrong folder I will change it and make another pull request. For the test file, I forget to take a look at the form of test file so I made my own one to see whether it can out put a correct result or not. I will make the change asap. Thanks for reminding me that. |
No worries! Please do not make a new PR though. You can just update this existing PR. After making the changes, simply |
Cool story and admire the Python Machine Learning book. The scikit-learn VotintRegressor was added as new in v0.21, so not long ago. |
Hi professor, I have move ensemble_vote_regressor into the right folder and also change the form of test file. However, I can't fully understand the working flow of the test file so I just imitate the test file for ensemble_voting_classifer. I have also include my own test outputs which is using graph to compare the performance of EnsembleVoting, Stacking and Voting in Regressor. It's my first time trying to tackle such problem. So I am willing to receive any kinds of advices and please feel free to correct any of my mistakes!
Description
-Added EnsembleVotingRegressor in regressor folder
-also including my own test file in the test folder.
Related issues or pull requests
Pull Request Checklist
./docs/sources/CHANGELOG.md
file (if applicable)./mlxtend/*/tests
directories (if applicable)mlxtend/docs/sources/
(if applicable)PYTHONPATH='.' pytest ./mlxtend -sv
and make sure that all unit tests pass (for small modifications, it might be sufficient to only run the specific test file, e.g.,PYTHONPATH='.' pytest ./mlxtend/classifier/tests/test_stacking_cv_classifier.py -sv
)flake8 ./mlxtend