Comments (6)
Yes, it works :)
Thank you for your help.
from atom.
What version of atom are you using? That functionality was deprecated in 5.1.0 I believe. I see that the documentation was not updated accordingly, sorry for that. In the latest version the multioutput meta-estimator is assigned by default. Doing atom.multioutput = ...
doesn't do anything. So the same results make sense because you are using the same estimator (check it printing atom.rf.estimator
). So you can either downgrade to the previous version or you can assign the three estimators directly to the run
method (that way you also have all three models in the same atom instance).
atom.run(["RF", MultiOutputClassifier(RandomForestClassifier()), ClassifierChain(RandomForestClassifier())])
from atom.
My version is 5.2.0.
Unfortunately your example don't work for me. When I use your command, I've got:
Training ========================= >>
Models: RF, MOC, CC
Metric: average_precision
Results for RandomForest:
Fit ---------------------------------------------
Train evaluation --> average_precision: 1.0
Test evaluation --> average_precision: 0.6468
Time elapsed: 0.155s
-------------------------------------------------
Total time: 0.155s
Results for MultiOutputClassifier:
Fit ---------------------------------------------
Exception encountered while running the MOC model.
TypeError: MultiOutputClassifier.__init__() got an unexpected keyword argument 'estimator__bootstrap'
Results for ClassifierChain:
Fit ---------------------------------------------
Exception encountered while running the CC model.
TypeError: _BaseChain.__init__() got an unexpected keyword argument 'base_estimator__bootstrap'
Final results ==================== >>
Total time: 0.160s
-------------------------------------
RandomForest --> average_precision: 0.6468 ~
Consecutive runs of model RF. The former model has been overwritten.
from atom.
I made a mistake. You have to specify in the custom model that the class doesn't need a multilabel wrapper.
from sklearn.datasets import make_multilabel_classification
from sklearn.multioutput import ClassifierChain, MultiOutputClassifier
from sklearn.ensemble import RandomForestClassifier
from atom import ATOMClassifier, ATOMModel
X, y = make_multilabel_classification(n_samples=300, n_classes=3, random_state=1)
atom = ATOMClassifier(X, y=y, verbose=2, random_state=1)
chain = ATOMModel(ClassifierChain(RandomForestClassifier()), native_multilabel=True)
multi = ATOMModel(MultiOutputClassifier(RandomForestClassifier()), native_multilabel=True)
atom.run(["rf", chain, multi])
from atom.
Thanks for quick replay. Unfortunately this still don't work. There is no native_multilabel parameter in ATOMModel module.
I've the following error:
TypeError: ATOMModel() got an unexpected keyword argument 'native_multilabel'
from atom.
you are right. that's functionality of the development
branch, not yet released. The dev branch also contains a fix for the error you showed before (TypeError: _BaseChain.__init__() got an unexpected keyword argument 'base_estimator__bootstrap'
).
You can install atom
from that branch using pip install git+https://github.com/tvdboom/ATOM.git@development
. Then it should work.
from atom.
Related Issues (18)
- Feature request: Support SKLearn pipelines HOT 2
- Running into issues with binary classification example HOT 2
- Error when running the "getting started" example HOT 3
- Branching breaks voting HOT 4
- Keras & Atom incompatibility? HOT 5
- PicklingError: Could not pickle the task to send it to the workers. HOT 2
- Jupyter kernel dies with njobs > 1 HOT 3
- [Error when setting custom BO params] HOT 2
- Atom process keeps getting "Killed" HOT 3
- Adding Zoofs into the feature selection options HOT 2
- Hyperparameter tuning - IndexError: positional indexers are out-of-bounds HOT 4
- How can I save model with feature_generation HOT 7
- Reload Error HOT 3
- Can't run deeplearning example due to AttributeError HOT 2
- Support multi-dimensional y data HOT 4
- Setting up HOT 13
- How to save the LightGBM Regressor trained using ATOM Pipeline to get prediction intervals using MAPIE HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from atom.