GithubHelp home page GithubHelp logo

boliqq07 / multiego Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 2.0 79 KB

This is a Global optimization algorithm named EGO.

License: BSD 3-Clause "New" or "Revised" License

Python 99.57% Batchfile 0.43%

multiego's Introduction

Multiply EGO

EGO (Efficient global optimization) and multiply target EGO method.

References: Jones, D. R., Schonlau, M. & Welch, W. J. Efficient global optimization of expensive black-box functions. J. Global Optim. 13, 455โ€“492 (1998)

Python Versions Version pypi Versions

Install

pip install multiego

Usage

if __name__ == "__main__":
    from sklearn.datasets import load_boston
    import numpy as np
    from multiego.ego import search_space, Ego
    from sklearn.model_selection import GridSearchCV
    from sklearn.svm import SVR

    #####model1#####
    model = SVR() #pre-trained good model with optimized prarmeters for special features
    ###

    X, y = load_boston(return_X_y=True)
    X = X[:, :5] 
    searchspace_list = [
        np.arange(0.01, 1, 0.1),
        np.array([0, 20, 30, 50, 70, 90]),
        np.arange(1, 10, 1),
        np.array([0, 1]),
        np.arange(0.4, 0.6, 0.02),
    ]
    searchspace = search_space(*searchspace_list)
    #
    me = Ego(searchspace, X, y, 500, model, n_jobs=6)

    re = me.egosearch()

Introduction

multiego.ego.Ego

For sklean-type single model.

multiego.base_ego.BaseEgo

  1. For any user-defined single model, just need offer mean and std of search space.
  2. For big search space out of memory , just need offer mean and std of search space.

multiego.multiplyego.MultiEgo

For sklean-type models.

multiego.base_multiplyego.BaseMultiEgo

  1. For any user-defined models, just need offer predict_y of search space.
  2. For big search space out of memory, just need offer predict_y of search space.

link

More examples can be found in test.

More powerful can be found mipego

multiego's People

Contributors

boliqq07 avatar

Stargazers

Linlin Sun avatar  avatar

Watchers

James Cloos avatar

Forkers

mgedata zhubro321

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.