Git Product home page Git Product logo

Comments (3)

sonichi avatar sonichi commented on May 22, 2024

When ensemble=True and monotone_constraints is in self.params, you need to set the monotone_constraints according to **params in the constructor if it is passed. For example:

'booster': params['booster'] if 'booster' in params else 'gbtree',

It's required by scikit-learn.

from flaml.

flippercy avatar flippercy commented on May 22, 2024

Got it. It is working now. Thank you!

To confirm, does FLAML fit an ensemble of all the base models created or only the best base model of each learner used? It seems that all the based models are used since the time taken for the ensemble significantly increases with more base models.

from flaml.

sonichi avatar sonichi commented on May 22, 2024

It fits an ensemble for the best base model of each learner. You should be able to see some msg like:

[flaml.automl: 02-17 11:42:05] {1161} INFO - ensemble: StackingClassifier(estimators=[('lgbm',
<flaml.model.LGBMEstimator object at 0x0000027F30E05F88>),
('RGF',
<test.test_automl.MyRegularizedGreedyForest object at 0x0000027F30E00C88>)],
final_estimator=<flaml.model.LGBMEstimator object at 0x0000027F30E05F88>,
n_jobs=1, passthrough=True)

It ensembles one lgbm and one RGF model in this example.

The increased ensemble time may be due to larger and better models found later in the search. You can check the config of the best individual models to verify that.

from flaml.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.