Code Monkey home page Code Monkey logo

mlmcbo's Introduction

MLMCBO

MLMCBO is a library for the Multilevel Monte Carlo Bayesian Optimization method [to be linked to arxiv paper]. The package is based on the package BoTorch.

TL;DR Multilevel Monte Carlo accelerates nested Monte Carlo approximations (sometimes by several orders of magnitude). The current package leverages this technology to speed up the evaluation of lookahead acquisition functions for Bayesian optimization.

Installation

Installation Requirements

  • BoTorch == 0.9.2
  • Python >= 3.9 (BoTorch requirement)
  • NumPy >= 1.18
  • Pandas (for data savings)

Pre-installation

At this development stage it is recommended to create a separate conda environment to minimize possible conflicts.

conda create --name mlmcbo python=3.11
conda activate mlmcbo

Option 1: Editable/dev install

git clone https://github.com/Shangda-Yang/MLMCBO.git
cd MLMCBO
pip install -e .

Getting Started

File tests.py in the tutorials folder demonstrates basic usage of the MLMC q-Expected Improvement (qEI) acquisition functions:

  • MC One-Step Lookahead EI
  • MC One-Step Lookahead qEI
  • MLMC One-Step Lookahead qEI
  • MLMC Two-Step Lookahead qEI (beta)

File testWholeBo.py in the same folder demonstrates an example of a whole BO algorithm using MLMC and MC for two-step look-ahead 1+2-EI and plots the results. File testTwoEI.py in the same folder demonstrates an example of a whole BO algorithm using MLMC and MC for three-step look-ahead 1-EI and plots the results.

=======

License

MLMCBO is licensed under the MIT License โ€“ see the LICENSE file for details.

mlmcbo's People

Contributors

shangda-yang avatar zankin avatar kodylaw avatar klaw1980 avatar

Stargazers

Miles Gray avatar George De Ath avatar

Watchers

 avatar  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.