Coder Social home page Coder Social logo

ja-thomas / pbmohpo Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 0.0 3.1 MB

Preferential Bayesian Multi-Objective Hyperparameter Optimization

Home Page: https://ja-thomas.github.io/pbmohpo/

License: GNU Lesser General Public License v2.1

Python 62.66% Jupyter Notebook 37.34%
bayesian-optimization machine-learning multi-objective-optimization python

pbmohpo's Issues

YAHPO problem wrapper changes dict representation of a config after evaluating that config

Somewhat weird bug:

from pbmohpo.problems.yahpo import YAHPO

problem = YAHPO("iaml_xgboost", instance = "40981", objective_names = ["mmce", "nf"])
problem.get_config_space()

problem.fix_hps = {"booster": "gbtree", "trainsize" : 1}
cs = problem.get_config_space()
cs.seed(0)
x = cs.sample_configuration(1)
# looks as expected
x.get_dictionary()
{'alpha': 0.6945356257424766,
 'colsample_bylevel': 0.7180374727086953,
 'colsample_bytree': 0.6067357423109274,
 'eta': 0.01511933646764101,
 'gamma': 0.011288832727483048,
 'lambda': 3.3209228886981608,
 'max_depth': 7,
 'min_child_weight': 97.18110224911669,
 'nrounds': 1569,
 'subsample': 0.4450973669431999}
problem(x)
{'mmce': -0.49803417921066284, 'nf': -0.0}
x.get_dictionary()
# now also includes the fixed hyperparameters from `problem.fix_hps`  which is unintended behavior
{'alpha': 0.6945356257424766,
 'colsample_bylevel': 0.7180374727086953,
 'colsample_bytree': 0.6067357423109274,
 'eta': 0.01511933646764101,
 'gamma': 0.011288832727483048,
 'lambda': 3.3209228886981608,
 'max_depth': 7,
 'min_child_weight': 97.18110224911669,
 'nrounds': 1569,
 'subsample': 0.4450973669431999,
 'task_id': '40981',
 'booster': 'gbtree',
 'trainsize': 1}

to fix this we should work with a deepcopy within the YAHPO wrapper https://github.com/ja-thomas/pbmohpo/blob/d0e5ae3db39cad3b9f8068bae1fbe57ddc2ca6ea/pbmohpo/problems/yahpo.py#LL68C1-L68C1

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.