Giter VIP home page Giter VIP logo

mobo's Introduction

MOBO (Multi-Objective Bayesian Optimization)

constrained/unconstrained multi-objective bayesian optimization package

under development

Install

$ git clone https://github.com/MasashiSode/MOBO.git
$ cd MOBO
$ pipenv install

Usage

import numpy as np
import matplotlib.pyplot as plt

from mobo.optimizer import NSGA2
from mobo.model import ExactGPModel
from mobo.acquisition import ei
from mobo.bayesopt import MultiObjectiveBayesianOpt
from mobo.test_functions import zdt1

if __name__ == "__main__":

    # multi objective genetic algorithm (NSGA2) is implemented with 'DEAP'
    # Gaussian Process model is implemented with 'gpytorch'
    opt = MultiObjectiveBayesianOpt(evaluation_function=zdt1,
                                    surrogate_model=ExactGPModel,
                                    optimizer=NSGA2,
                                    acquisition=ei,
                                    n_objective_dimension=2,
                                    n_design_variables_dimension=30,
                                    n_initial_sample=16,
                                    bayesian_optimization_iter_max=10,
                                    likelihood_optimization_iter_max=1000,
                                    likelihood_optimization_criteria=1e-8,
                                    n_new_samples=16)
    result = opt.optimize()

    front = np.array(result[1])

    plt.scatter(front[:, 0], front[:, 1], c="b")
    plt.axis("tight")
    print(result)
    plt.show()

under development

Documentation

under development
MOBO's Documentation

ToDo

  • implement another multi objective optimizer
  • implement constrained EI
  • implement EHVI
  • implement UCB
  • validation

mobo's People

Contributors

masashisode avatar

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.