mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-04-30 15:26:23 +02:00
Cleaning up
This commit is contained in:
parent
59f767e1af
commit
a272de6cdb
2 changed files with 6 additions and 46 deletions
36
doc/conf.py
36
doc/conf.py
|
|
@ -39,8 +39,6 @@ except ImportError:
|
||||||
|
|
||||||
print "sys.path:", sys.path
|
print "sys.path:", sys.path
|
||||||
|
|
||||||
#sys.path.insert(0, os.getcwd() + "/..")
|
|
||||||
|
|
||||||
# If extensions (or modules to document with autodoc) are in another directory,
|
# If extensions (or modules to document with autodoc) are in another directory,
|
||||||
# add these directories to sys.path here. If the directory is relative to the
|
# add these directories to sys.path here. If the directory is relative to the
|
||||||
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||||
|
|
@ -48,7 +46,6 @@ print "sys.path:", sys.path
|
||||||
|
|
||||||
#print "sys.path.after:", sys.path
|
#print "sys.path.after:", sys.path
|
||||||
|
|
||||||
|
|
||||||
# If your extensions are in another directory, add it here. If the directory
|
# If your extensions are in another directory, add it here. If the directory
|
||||||
# is relative to the documentation root, use os.path.abspath to make it
|
# is relative to the documentation root, use os.path.abspath to make it
|
||||||
# absolute, like shown here.
|
# absolute, like shown here.
|
||||||
|
|
@ -57,7 +54,6 @@ sys.path.append(os.path.abspath('sphinxext'))
|
||||||
# If extensions (or modules to document with autodoc) are in another directory,
|
# If extensions (or modules to document with autodoc) are in another directory,
|
||||||
# add these directories to sys.path here. If the directory is relative to the
|
# add these directories to sys.path here. If the directory is relative to the
|
||||||
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||||
#sys.path.insert(0, os.path.abspath('.'))
|
|
||||||
#sys.path.insert(0, os.path.abspath('./sphinxext'))
|
#sys.path.insert(0, os.path.abspath('./sphinxext'))
|
||||||
|
|
||||||
# -- General configuration -----------------------------------------------------
|
# -- General configuration -----------------------------------------------------
|
||||||
|
|
@ -76,9 +72,6 @@ extensions = ['sphinx.ext.autodoc',
|
||||||
'ipython_directive',
|
'ipython_directive',
|
||||||
'ipython_console_highlighting'
|
'ipython_console_highlighting'
|
||||||
#'matplotlib.sphinxext.plot_directive'
|
#'matplotlib.sphinxext.plot_directive'
|
||||||
#'mathmpl',
|
|
||||||
#'only_directives',
|
|
||||||
#'plot_directive'
|
|
||||||
]
|
]
|
||||||
plot_formats = [('png', 80), ('pdf', 50)]
|
plot_formats = [('png', 80), ('pdf', 50)]
|
||||||
|
|
||||||
|
|
@ -120,7 +113,6 @@ on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
|
||||||
|
|
||||||
on_rtd = True
|
on_rtd = True
|
||||||
if on_rtd:
|
if on_rtd:
|
||||||
print "I am here"
|
|
||||||
sys.path.append(os.path.abspath('../GPy'))
|
sys.path.append(os.path.abspath('../GPy'))
|
||||||
|
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
@ -134,15 +126,12 @@ if on_rtd:
|
||||||
proc = subprocess.Popen("sphinx-apidoc -f -o . ../GPy", stdout=subprocess.PIPE, shell=True)
|
proc = subprocess.Popen("sphinx-apidoc -f -o . ../GPy", stdout=subprocess.PIPE, shell=True)
|
||||||
(out, err) = proc.communicate()
|
(out, err) = proc.communicate()
|
||||||
print "program output:", out
|
print "program output:", out
|
||||||
proc = subprocess.Popen("whereis numpy", stdout=subprocess.PIPE, shell=True)
|
#proc = subprocess.Popen("whereis numpy", stdout=subprocess.PIPE, shell=True)
|
||||||
(out, err) = proc.communicate()
|
#(out, err) = proc.communicate()
|
||||||
print "program output:", out
|
#print "program output:", out
|
||||||
print "MATPLOTLIB BABY"
|
#proc = subprocess.Popen("whereis matplotlib", stdout=subprocess.PIPE, shell=True)
|
||||||
proc = subprocess.Popen("whereis matplotlib", stdout=subprocess.PIPE, shell=True)
|
#(out, err) = proc.communicate()
|
||||||
(out, err) = proc.communicate()
|
#print "program output:", out
|
||||||
print "program output:", out
|
|
||||||
#os.system("cd ..")
|
|
||||||
#os.system("cd ./docs")
|
|
||||||
|
|
||||||
print "Compiled files"
|
print "Compiled files"
|
||||||
|
|
||||||
|
|
@ -406,17 +395,4 @@ epub_copyright = u'2013, Author'
|
||||||
# Allow duplicate toc entries.
|
# Allow duplicate toc entries.
|
||||||
#epub_tocdup = True
|
#epub_tocdup = True
|
||||||
|
|
||||||
#############################################################################
|
|
||||||
#
|
|
||||||
# Include constructors in all the docs
|
|
||||||
# Got this method from:
|
|
||||||
# http://stackoverflow.com/questions/5599254/how-to-use-sphinxs-autodoc-to-document-a-classs-init-self-method
|
|
||||||
#def skip(app, what, name, obj, skip, options):
|
|
||||||
#if name == "__init__":
|
|
||||||
#return False
|
|
||||||
#return skip
|
|
||||||
|
|
||||||
#def setup(app):
|
|
||||||
#app.connect("autodoc-skip-member", skip)
|
|
||||||
|
|
||||||
autodoc_member_order = "source"
|
autodoc_member_order = "source"
|
||||||
|
|
|
||||||
|
|
@ -2,22 +2,6 @@
|
||||||
Gaussian process regression tutorial
|
Gaussian process regression tutorial
|
||||||
*************************************
|
*************************************
|
||||||
|
|
||||||
.. ipython:: python
|
|
||||||
|
|
||||||
print "Hello world"
|
|
||||||
X = [[1, 10], [1, 20], [1, -2]]
|
|
||||||
|
|
||||||
.. plot::
|
|
||||||
|
|
||||||
import matplotlib.pyplot as plt
|
|
||||||
import numpy as np
|
|
||||||
x = np.random.randn(1000)
|
|
||||||
plt.hist( x, 20)
|
|
||||||
plt.grid()
|
|
||||||
plt.title(r'Normal: $\mu=%.2f, \sigma=%.2f$'%(x.mean(), x.std()))
|
|
||||||
plt.show()
|
|
||||||
|
|
||||||
|
|
||||||
We will see in this tutorial the basics for building a 1 dimensional and a 2 dimensional Gaussian process regression model, also known as a kriging model.
|
We will see in this tutorial the basics for building a 1 dimensional and a 2 dimensional Gaussian process regression model, also known as a kriging model.
|
||||||
|
|
||||||
We first import the libraries we will need: ::
|
We first import the libraries we will need: ::
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue