Giter VIP home page Giter VIP logo

rogp's Introduction

ROGP

ROGP is a tool for including the mean and covariance function of Gaussian Processes in Pyomo models. It was developed for the work outlined in the following paper: A robust approach to warped Gaussian process-constrained optimization

Also see our Youtube Video on this project.

If you use this tool, please cite our paper as:

@misc{Wiebe2020robust,
      title={A robust approach to warped Gaussian process-constrained optimization}, 
      author={Johannes Wiebe and Inês Cecílio and Jonathan Dunlop and Ruth Misener},
      year={2020},
      eprint={2006.08222},
      archivePrefix={arXiv},
      primaryClass={math.OC}
}

Installation

python -m pip install git+https://github.com/cog-imperial/rogp.git

Usage

# Normalize training set x, y
norm = rogp.Normalizer()
norm.scale_by(x, y)
X, Y = norm.normalize(x, y)

# Train GP using GPy
kernel = GPy.kern.RBF(input_dim=1, variance=1., lengthscale=1.)
gp = GPy.models.GPRegression(X, Y, kernel)
gp.optimize(messages=True)

# Create ROGP object
gp = rogp.from_gpy(gp, norm=norm)

# Create Pyomo model and variable
m = pe.ConcreteModel()
m.x = pe.Var(range(n))

# Generate Pyomo expressions
xvar = rogp.pyomo_to_np(m.x)
mu = gp.predict_mu(xvar)
cov = gp.predict_cov(xvar)

Acknowledgements

This work was funded by the Engineering & Physical Sciences Research Council (EPSRC) Center for Doctoral Training in High Performance Embedded and Distributed Systems (EP/L016796/1) and an EPSRC/Schlumberger CASE studentship (EP/R511961/1, voucher 17000145).

Author: Johannes Wiebe

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.