Git Product home page Git Product logo

gaussian-process-regression's Introduction

Gaussian Process Regression

This is a library implementing standard GP-regression. Currently it uses only the squared exponential covariance function but can easily be modified for differnt covariance functions.

This is a template library - no linking required. Just make sure your code can find GaussianProcessRegression.h and you should be good to go.

Dependencies

The version here is packaged as a catkin package for easy use with ROS.

It depends on Eigen3.

Basic Usage

// input_dim and output_dim are integers specifying the dimensionality of input and output data respectively
GaussianProcessRegression<float> myGPR(input_dim, output_dim);
// the hyperparameters are float values specifying length-scale, signal variance and observation noise variance
myGPR.SetHyperParams(length_scale, sigma_f, sigma_n);
Eigen::VectorXf train_input(input_dim);
Eigen::VectorXf train_output(output_dim);
// add some training data
int n_train = 100;
for(int k=0; k<n_train; k++){
	train_input.setRandom();
	train_output.setRandom();
	myGPR.AddTrainingData(train_input,train_output)
}
// get output at a testing point
Eigen::VectorXf test_input(input_dim);
Eigen::VectorXf test_output(output_dim);
test_input.setRandom();
test_output = myGPR.DoRegression(test_input);

Notes on multidimensional outputs

As seen in the example above, the library supports multiple outputs, but in a kind of "dumb" way. The same covariance function and inputs are used to model all the outputs.

TODO

  • Add possibliity to use user-supplied covariance function.
  • Add possibility to get variance information

gaussian-process-regression's People

Contributors

felixduvallet avatar klaskronander avatar

Watchers

 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.