From 3045ee72c8c6049e5adc90e43840a9685329e5f8 Mon Sep 17 00:00:00 2001 From: Neil Lawrence Date: Fri, 18 Jan 2013 16:38:41 +0000 Subject: [PATCH] Added unsupervised.py examples file and datasets.py@ --- GPy/examples/unsupervised.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 GPy/examples/unsupervised.py diff --git a/GPy/examples/unsupervised.py b/GPy/examples/unsupervised.py new file mode 100644 index 00000000..08d81e05 --- /dev/null +++ b/GPy/examples/unsupervised.py @@ -0,0 +1,25 @@ +""" +Usupervised learning with Gaussian Processes. +""" +import pylab as pb +import numpy as np +import GPy + + +###################################### +## Oil data subsampled to 100 points. +def oil_100(): + data = GPy.util.datasets.oil_100() + + # create simple GP model + m = GPy.models.GPLVM(data['X'], 2) + + + # optimize + m.ensure_default_constraints() + m.optimize() + + # plot + print(m) + return m +