diff --git a/README.md b/README.md index 194930cb..9efab041 100644 --- a/README.md +++ b/README.md @@ -130,12 +130,15 @@ m.optimize() np.save('model_save.npy', m.param_array) # 2: loading a model # Model creation, without initialization: -m = GPy.models(GPRegression(X,Y,initialize=False) -m[:] = np.load('model_save.npy') -m.initialize_parameter() -print m +m_load = GPy.models.GPRegression(X, Y, initialize=False) +m_load.update_model(False) # do not call the underlying expensive algebra on load +m_load.initialize_parameter() # Initialize the parameters (connect the parameters up) +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: Ensure nose is installed via pip: diff --git a/setup.py b/setup.py index 1cf2321d..43e70815 100644 --- a/setup.py +++ b/setup.py @@ -148,7 +148,7 @@ setup(name = 'GPy', include_package_data = True, py_modules = ['GPy.__init__'], 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'], 'optional':['mpi4py', 'ipython>=4.0.0',