mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-18 13:55:14 +02:00
Merge pull request #433 from SheffieldML/update_initialize_paramz
[init] updated readme
This commit is contained in:
commit
b7da5577e3
2 changed files with 8 additions and 5 deletions
11
README.md
11
README.md
|
|
@ -130,12 +130,15 @@ m.optimize()
|
||||||
np.save('model_save.npy', m.param_array)
|
np.save('model_save.npy', m.param_array)
|
||||||
# 2: loading a model
|
# 2: loading a model
|
||||||
# Model creation, without initialization:
|
# Model creation, without initialization:
|
||||||
m = GPy.models(GPRegression(X,Y,initialize=False)
|
m_load = GPy.models.GPRegression(X, Y, initialize=False)
|
||||||
m[:] = np.load('model_save.npy')
|
m_load.update_model(False) # do not call the underlying expensive algebra on load
|
||||||
m.initialize_parameter()
|
m_load.initialize_parameter() # Initialize the parameters (connect the parameters up)
|
||||||
print m
|
m_load[:] = np.load('model_save.npy') # Load the parameters
|
||||||
|
m_load.update_model(True) # Call the algebra only once
|
||||||
|
print(m_load)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## Running unit tests:
|
## Running unit tests:
|
||||||
|
|
||||||
Ensure nose is installed via pip:
|
Ensure nose is installed via pip:
|
||||||
|
|
|
||||||
2
setup.py
2
setup.py
|
|
@ -148,7 +148,7 @@ setup(name = 'GPy',
|
||||||
include_package_data = True,
|
include_package_data = True,
|
||||||
py_modules = ['GPy.__init__'],
|
py_modules = ['GPy.__init__'],
|
||||||
test_suite = 'GPy.testing',
|
test_suite = 'GPy.testing',
|
||||||
install_requires = ['numpy>=1.7', 'scipy>=0.16', 'six', 'paramz>=0.6.6'],
|
install_requires = ['numpy>=1.7', 'scipy>=0.16', 'six', 'paramz>=0.6.8'],
|
||||||
extras_require = {'docs':['sphinx'],
|
extras_require = {'docs':['sphinx'],
|
||||||
'optional':['mpi4py',
|
'optional':['mpi4py',
|
||||||
'ipython>=4.0.0',
|
'ipython>=4.0.0',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue