Skip to content

Instantly share code, notes, and snippets.

@Dapid
Last active February 19, 2016 10:55
Show Gist options
  • Save Dapid/1628aaa0a4abf7c001fb to your computer and use it in GitHub Desktop.
Save Dapid/1628aaa0a4abf7c001fb to your computer and use it in GitHub Desktop.
(py27)[david@SQUIDS gpy_memtest]$ python memtest.py gpy
/home/david/.virtualenvs/py27/lib/python2.7/site-packages/numpy/core/numeric.py:294: FutureWarning:in the future, full((3, 3), 666) will return an array of dtype('int64')
/home/david/.virtualenvs/py27/lib/python2.7/site-packages/numpy/core/numeric.py:294: FutureWarning:in the future, full((3, 1), 42) will return an array of dtype('int64')
0
[]
191
[<GPy.models.gp_regression.GPRegression object at 0x7f97ce48f0d0>, {'_added_names_': set(['Gaussian_noise', 'rbf']), 'sampling_runs': [], 'mean_function': None, 'Y_normalized': ObsAr([[ 42.],
[ 42.],
[ 42.]]), '_fixes_': None, '_optimizer_copy_transformed': False, 'size': 3, 'parameters': [<GPy.core.parameterization.ties_and_remappings.Tie object at 0x7f97ce48fd90>, <GPy.kern._src.rbf.RBF object at 0x7f97ce48f1d0>, <GPy.likelihoods.gaussian.Gaussian object at 0x7f97ce48f850>], 'priors': <GPy.core.parameterization.index_operations.ParameterIndexOperations object at 0x7f97ce48fb50>, 'output_dim': 1, '_in_init_': False, '_param_slices_': [slice(0, 0, None), slice(0, 2, None), slice(2, 3, None)], '_Parameterizable__visited': False, 'Gaussian_noise': <GPy.likelihoods.gaussian.Gaussian object at 0x7f97ce48f850>, 'tie': <GPy.core.parameterization.ties_and_remappings.Tie object at 0x7f97ce48fd90>, 'logger': <logging.Logger object at 0x7f97ce48fb90>, 'optimization_runs': [], '_param_array_': array([ 1., 1., 1.]), 'normalizer': None, 'num_data': 3, 'observers': [(-100, <weakref at 0x7f97ce495788; dead>, <bound method GPRegression._parameters_changed_notification of <GPy.models.gp_regression.GPRegression object at 0x7f97ce48f0d0>>), (-500, <weakref at 0x7f97ce495b50; dead>, <bound method Tie._parameters_changed_notification of <GPy.core.parameterization.ties_and_remappings.Tie object at 0x7f97ce48fd90>>)], 'posterior': <GPy.inference.latent_function_inference.posterior.Posterior object at 0x7f97ce48f090>, 'inference_method': <GPy.inference.latent_function_inference.exact_gaussian_inference.ExactGaussianInference object at 0x7f97ce48fd50>, 'obj_grads': None, 'rbf': <GPy.kern._src.rbf.RBF object at 0x7f97ce48f1d0>, 'Y': ObsAr([[ 42.],
[ 42.],
[ 42.]]), 'X': ObsAr([[ nan, nan, nan],
[ nan, nan, nan],
[ nan, nan, nan]]), 'likelihood': <GPy.likelihoods.gaussian.Gaussian object at 0x7f97ce48f850>, '_optimizer_copy_': None, '_gradient_array_': array([ 495.74999752, -0. , 164.24999918]), '_default_constraint_': None, '_update_on': True, 'grad_dict': {'dL_dm': array([[ 10.49999997],
[ 10.49999997],
[ 10.49999997]]), 'dL_dthetaL': 164.24999918343747, 'dL_dK': array([[ 54.74999973, 55.24999972, 55.24999972],
[ 55.24999972, 54.74999973, 55.24999972],
[ 55.24999972, 55.24999972, 54.74999973]])}, '_name': 'GP regression', 'kern': <GPy.kern._src.rbf.RBF object at 0x7f97ce48f1d0>, 'input_dim': 3, '_log_marginal_likelihood': -664.94996113767388, 'Y_metadata': None, 'preferred_optimizer': 'bfgs', 'constraints': <GPy.core.parameterization.index_operations.ParameterIndexOperations object at 0x7f97ce48fb10>}, <GPy.core.parameterization.index_operations.ParameterIndexOperations object at 0x7f97ce48fb10>, {'_properties': defaultdict(<function intarray_default_factory at 0x7f97ec30dde8>, {Logexp: array([0, 1, 2])})}, <GPy.core.parameterization.index_operations.ParameterIndexOperations object at 0x7f97ce48fb50>, {'_properties': defaultdict(<function intarray_default_factory at 0x7f97ec30dde8>, {})}, [<GPy.core.parameterization.ties_and_remappings.Tie object at 0x7f97ce48fd90>, <GPy.kern._src.rbf.RBF object at 0x7f97ce48f1d0>, <GPy.likelihoods.gaussian.Gaussian object at 0x7f97ce48f850>], set(['Gaussian_noise', 'rbf']), [], [], <GPy.core.parameterization.ties_and_remappings.Tie object at 0x7f97ce48fd90>, {'_added_names_': set([]), 'buf_idx': None, 'label_buf': None, '_fixes_': None, '_optimizer_copy_transformed': False, 'size': 0, '_tie_': None, 'parameters': [], 'priors': <GPy.core.parameterization.index_operations.ParameterIndexOperationsView object at 0x7f97ce48f4d0>, '_parent_': <GPy.models.gp_regression.GPRegression object at 0x7f97ce48f0d0>, '_in_init_': False, '_param_slices_': [], '_Parameterizable__visited': False, 'logger': <logging.Logger object at 0x7f97ce48fe90>, '_param_array_': array([], dtype=float64), 'observers': [(-100, <weakref at 0x7f97ce495b50; dead>, <bound method Tie._parameters_changed_notification of <GPy.core.parameterization.ties_and_remappings.Tie object at 0x7f97ce48fd90>>), (-inf, <weakref at 0x7f97ce495788; dead>, <bound method GPRegression._pass_through_notify_observers of <GPy.models.gp_regression.GPRegression object at 0x7f97ce48f0d0>>)], '_optimizer_copy_': None, '_gradient_array_': array([], dtype=float64), '_default_constraint_': None, '_update_on': True, 'tied_param': None, '_name': 'tie', '_parent_index_': 0, 'constraints': <GPy.core.parameterization.index_operations.ParameterIndexOperationsView object at 0x7f97ce48f590>}, [], set([]), [], ObsAr([[ nan, nan, nan],
[ nan, nan, nan],
[ nan, nan, nan]]), {'observers': [(0, <weakref at 0x7f97ce495c00; dead>, <bound method Cacher.on_cache_changed of <GPy.util.caching.Cacher object at 0x7f97ce4ac110>>), (0, <weakref at 0x7f97ce495db8; dead>, <bound method Cacher.on_cache_changed of <GPy.util.caching.Cacher object at 0x7f97ce4ac190>>), (0, <weakref at 0x7f97ce495ba8; dead>, <bound method Cacher.on_cache_changed of <GPy.util.caching.Cacher object at 0x7f97ce4ac150>>), (0, <weakref at 0x7f97ce495ec0; dead>, <bound method Cacher.on_cache_changed of <GPy.util.caching.Cacher object at 0x7f97ce4ac210>>)], '_update_on': True}, [(0, <weakref at 0x7f97ce495c00; dead>, <bound method Cacher.on_cache_changed of <GPy.util.caching.Cacher object at 0x7f97ce4ac110>>), (0, <weakref at 0x7f97ce495db8; dead>, <bound method Cacher.on_cache_changed of <GPy.util.caching.Cacher object at 0x7f97ce4ac190>>), (0, <weakref at 0x7f97ce495ba8; dead>, <bound method Cacher.on_cache_changed of <GPy.util.caching.Cacher object at 0x7f97ce4ac150>>), (0, <weakref at 0x7f97ce495ec0; dead>, <bound method Cacher.on_cache_changed of <GPy.util.caching.Cacher object at 0x7f97ce4ac210>>)], {'_poc': [(0, <weakref at 0x7f97ce495c00; dead>, <bound method Cacher.on_cache_changed of <GPy.util.caching.Cacher object at 0x7f97ce4ac110>>), (0, <weakref at 0x7f97ce495db8; dead>, <bound method Cacher.on_cache_changed of <GPy.util.caching.Cacher object at 0x7f97ce4ac190>>), (0, <weakref at 0x7f97ce495ba8; dead>, <bound method Cacher.on_cache_changed of <GPy.util.caching.Cacher object at 0x7f97ce4ac150>>), (0, <weakref at 0x7f97ce495ec0; dead>, <bound method Cacher.on_cache_changed of <GPy.util.caching.Cacher object at 0x7f97ce4ac210>>)]}, ObsAr([[ 42.],
[ 42.],
[ 42.]]), {'observers': [], '_update_on': True}, [], {'_poc': []}, <GPy.inference.latent_function_inference.exact_gaussian_inference.ExactGaussianInference object at 0x7f97ce48fd50>, <GPy.core.parameterization.index_operations.ParameterIndexOperationsView object at 0x7f97ce48f590>, {'_offset': 0, '_param_index_ops': <GPy.core.parameterization.index_operations.ParameterIndexOperations object at 0x7f97ce48fb10>, '_size': 0}, <GPy.core.parameterization.index_operations.ParameterIndexOperationsView object at 0x7f97ce48f4d0>, {'_offset': 0, '_param_index_ops': <GPy.core.parameterization.index_operations.ParameterIndexOperations object at 0x7f97ce48fb50>, '_size': 0}, [slice(0, 0, None), slice(0, 2, None), slice(2, 3, None)], <GPy.inference.latent_function_inference.posterior.Posterior object at 0x7f97ce48f090>, [(0, <weakref at 0x7f97ce495c00; dead>, <bound method Cacher.on_cache_changed of <GPy.util.caching.Cacher object at 0x7f97ce4ac110>>), (0, <weakref at 0x7f97ce495db8; dead>, <bound method Cacher.on_cache_changed of <GPy.util.caching.Cacher object at 0x7f97ce4ac190>>), (0, <weakref at 0x7f97ce495ba8; dead>, <bound method Cacher.on_cache_changed of <GPy.util.caching.Cacher object at 0x7f97ce4ac150>>), (0, <weakref at 0x7f97ce495ec0; dead>, <bound method Cacher.on_cache_changed of <GPy.util.caching.Cacher object at 0x7f97ce4ac210>>)], (0, <weakref at 0x7f97ce495c00; dead>, <bound method Cacher.on_cache_changed of <GPy.util.caching.Cacher object at 0x7f97ce4ac110>>), (0, <weakref at 0x7f97ce495db8; dead>, <bound method Cacher.on_cache_changed of <GPy.util.caching.Cacher object at 0x7f97ce4ac190>>), (0, <weakref at 0x7f97ce495ba8; dead>, <bound method Cacher.on_cache_changed of <GPy.util.caching.Cacher object at 0x7f97ce4ac150>>), (0, <weakref at 0x7f97ce495ec0; dead>, <bound method Cacher.on_cache_changed of <GPy.util.caching.Cacher object at 0x7f97ce4ac210>>), <GPy.likelihoods.gaussian.Gaussian object at 0x7f97ce48f850>, [(-100, <weakref at 0x7f97ce495788; dead>, <bound method GPRegression._parameters_changed_notification of <GPy.models.gp_regression.GPRegression object at 0x7f97ce48f0d0>>), (-500, <weakref at 0x7f97ce495b50; dead>, <bound method Tie._parameters_changed_notification of <GPy.core.parameterization.ties_and_remappings.Tie object at 0x7f97ce48fd90>>)], <GPy.kern._src.rbf.RBF object at 0x7f97ce48f1d0>, defaultdict(<function intarray_default_factory at 0x7f97ec30dde8>, {Logexp: array([0, 1, 2])}), defaultdict(<function intarray_default_factory at 0x7f97ec30dde8>, {}), [(-100, <weakref at 0x7f97ce495b50; dead>, <bound method Tie._parameters_changed_notification of <GPy.core.parameterization.ties_and_remappings.Tie object at 0x7f97ce48fd90>>), (-inf, <weakref at 0x7f97ce495788; dead>, <bound method GPRegression._pass_through_notify_observers of <GPy.models.gp_regression.GPRegression object at 0x7f97ce48f0d0>>)], [], <bound method Cacher.on_cache_changed of <GPy.util.caching.Cacher object at 0x7f97ce4ac110>>, <weakref at 0x7f97ce495c00; dead>, <bound method Cacher.on_cache_changed of <GPy.util.caching.Cacher object at 0x7f97ce4ac190>>, <weakref at 0x7f97ce495db8; dead>, <bound method Cacher.on_cache_changed of <GPy.util.caching.Cacher object at 0x7f97ce4ac150>>, <weakref at 0x7f97ce495ba8; dead>, <bound method Cacher.on_cache_changed of <GPy.util.caching.Cacher object at 0x7f97ce4ac210>>, <weakref at 0x7f97ce495ec0; dead>, {'_added_names_': set([]), '_fixes_': None, '_optimizer_copy_transformed': False, 'size': 1, 'parameters': [GP_regression.Gaussian_noise.variance:
Param([ 1.])], 'gp_link': <GPy.likelihoods.link_functions.Identity object at 0x7f97ce48f890>, 'priors': <GPy.core.parameterization.index_operations.ParameterIndexOperationsView object at 0x7f97ce48f690>, '_parent_': <GPy.models.gp_regression.GPRegression object at 0x7f97ce48f0d0>, '_in_init_': False, '_param_slices_': [slice(0, 1, None)], '_Parameterizable__visited': False, 'not_block_really': False, 'logger': <logging.Logger object at 0x7f97ce48f990>, '_param_array_': array([ 1.]), '_gradient_array_': array([ 164.24999918]), '_optimizer_copy_': None, 'observers': [(-100, <weakref at 0x7f97ce8faf70; dead>, <bound method Gaussian._parameters_changed_notification of <GPy.likelihoods.gaussian.Gaussian object at 0x7f97ce48f850>>), (-inf, <weakref at 0x7f97ce495788; dead>, <bound method GPRegression._pass_through_notify_observers of <GPy.models.gp_regression.GPRegression object at 0x7f97ce48f0d0>>)], '_default_constraint_': None, '_update_on': True, '_name': 'Gaussian_noise', 'log_concave': True, '_parent_index_': 2, 'variance': GP_regression.Gaussian_noise.variance:
Param([ 1.]), 'constraints': <GPy.core.parameterization.index_operations.ParameterIndexOperationsView object at 0x7f97ce48fed0>}, {'_poc': [(-100, <weakref at 0x7f97ce495788; dead>, <bound method GPRegression._parameters_changed_notification of <GPy.models.gp_regression.GPRegression object at 0x7f97ce48f0d0>>), (-500, <weakref at 0x7f97ce495b50; dead>, <bound method Tie._parameters_changed_notification of <GPy.core.parameterization.ties_and_remappings.Tie object at 0x7f97ce48fd90>>)]}, {'_added_names_': set([]), 'psicomp': <GPy.kern._src.psi_comp.PSICOMP_RBF object at 0x7f97ce48f750>, '_fixes_': None, '_optimizer_copy_transformed': False, 'size': 2, 'parameters': [GP_regression.rbf.variance:
Param([ 1.]), GP_regression.rbf.lengthscale:
Param([ 1.])], 'useGPU': False, 'priors': <GPy.core.parameterization.index_operations.ParameterIndexOperationsView object at 0x7f97ce48ffd0>, '_parent_': <GPy.models.gp_regression.GPRegression object at 0x7f97ce48f0d0>, '_in_init_': False, '_param_slices_': [slice(0, 1, None), slice(1, 2, None)], '_Parameterizable__visited': False, 'logger': <logging.Logger object at 0x7f97ce48f510>, '_param_array_': array([ 1., 1.]), 'active_dims': array([0, 1, 2]), 'observers': [(0, <weakref at 0x7f97ce495c00; dead>, <bound method Cacher.on_cache_changed of <GPy.util.caching.Cacher object at 0x7f97ce4ac110>>), (0, <weakref at 0x7f97ce495db8; dead>, <bound method Cacher.on_cache_changed of <GPy.util.caching.Cacher object at 0x7f97ce4ac190>>), (0, <weakref at 0x7f97ce495ba8; dead>, <bound method Cacher.on_cache_changed of <GPy.util.caching.Cacher object at 0x7f97ce4ac150>>), (0, <weakref at 0x7f97ce495ec0; dead>, <bound method Cacher.on_cache_changed of <GPy.util.caching.Cacher object at 0x7f97ce4ac210>>), (-100, <weakref at 0x7f97ce8fab50; dead>, <bound method RBF._parameters_changed_notification of <GPy.kern._src.rbf.RBF object at 0x7f97ce48f1d0>>), (-inf, <weakref at 0x7f97ce495788; dead>, <bound method GPRegression._pass_through_notify_observers of <GPy.models.gp_regression.GPRegression object at 0x7f97ce48f0d0>>)], '_optimizer_copy_': None, '_gradient_array_': array([ 495.74999752, -0. ]), '_default_constraint_': None, '_Cacher_wrap__cachers': {<function _scaled_dist at 0x7f97d528c488>: <GPy.util.caching.Cacher object at 0x7f97ce4ac190>, <function K at 0x7f97d528c2a8>: <GPy.util.caching.Cacher object at 0x7f97ce4ac150>, <function dK_dr_via_X at 0x7f97d528c320>: <GPy.util.caching.Cacher object at 0x7f97ce4ac210>, <function _slice_X at 0x7f97d52ecde8>: <GPy.util.caching.Cacher object at 0x7f97ce4ac110>}, '_update_on': True, '_sliced_X': 0, '_name': 'rbf', 'ARD': False, '_parent_index_': 1, 'input_dim': 3, 'lengthscale': GP_regression.rbf.lengthscale:
Param([ 1.]), 'variance': GP_regression.rbf.variance:
Param([ 1.]), 'constraints': <GPy.core.parameterization.index_operations.ParameterIndexOperationsView object at 0x7f97ce48ff90>}, {'_poc': [(-100, <weakref at 0x7f97ce495b50; dead>, <bound method Tie._parameters_changed_notification of <GPy.core.parameterization.ties_and_remappings.Tie object at 0x7f97ce48fd90>>), (-inf, <weakref at 0x7f97ce495788; dead>, <bound method GPRegression._pass_through_notify_observers of <GPy.models.gp_regression.GPRegression object at 0x7f97ce48f0d0>>)]}, <GPy.util.caching.Cacher object at 0x7f97ce4ac110>, <GPy.util.caching.Cacher object at 0x7f97ce4ac190>, <GPy.util.caching.Cacher object at 0x7f97ce4ac150>, <GPy.util.caching.Cacher object at 0x7f97ce4ac210>, set([]), [GP_regression.Gaussian_noise.variance:
Param([ 1.])], <GPy.likelihoods.link_functions.Identity object at 0x7f97ce48f890>, <GPy.core.parameterization.index_operations.ParameterIndexOperationsView object at 0x7f97ce48f690>, [slice(0, 1, None)], [(-100, <weakref at 0x7f97ce8faf70; dead>, <bound method Gaussian._parameters_changed_notification of <GPy.likelihoods.gaussian.Gaussian object at 0x7f97ce48f850>>), (-inf, <weakref at 0x7f97ce495788; dead>, <bound method GPRegression._pass_through_notify_observers of <GPy.models.gp_regression.GPRegression object at 0x7f97ce48f0d0>>)], GP_regression.Gaussian_noise.variance:
Param([ 1.]), <GPy.core.parameterization.index_operations.ParameterIndexOperationsView object at 0x7f97ce48fed0>, [(-100, <weakref at 0x7f97ce495788; dead>, <bound method GPRegression._parameters_changed_notification of <GPy.models.gp_regression.GPRegression object at 0x7f97ce48f0d0>>), (-500, <weakref at 0x7f97ce495b50; dead>, <bound method Tie._parameters_changed_notification of <GPy.core.parameterization.ties_and_remappings.Tie object at 0x7f97ce48fd90>>)], set([]), <GPy.kern._src.psi_comp.PSICOMP_RBF object at 0x7f97ce48f750>, [GP_regression.rbf.variance:
Param([ 1.]), GP_regression.rbf.lengthscale:
Param([ 1.])], <GPy.core.parameterization.index_operations.ParameterIndexOperationsView object at 0x7f97ce48ffd0>, [slice(0, 1, None), slice(1, 2, None)], [(0, <weakref at 0x7f97ce495c00; dead>, <bound method Cacher.on_cache_changed of <GPy.util.caching.Cacher object at 0x7f97ce4ac110>>), (0, <weakref at 0x7f97ce495db8; dead>, <bound method Cacher.on_cache_changed of <GPy.util.caching.Cacher object at 0x7f97ce4ac190>>), (0, <weakref at 0x7f97ce495ba8; dead>, <bound method Cacher.on_cache_changed of <GPy.util.caching.Cacher object at 0x7f97ce4ac150>>), (0, <weakref at 0x7f97ce495ec0; dead>, <bound method Cacher.on_cache_changed of <GPy.util.caching.Cacher object at 0x7f97ce4ac210>>), (-100, <weakref at 0x7f97ce8fab50; dead>, <bound method RBF._parameters_changed_notification of <GPy.kern._src.rbf.RBF object at 0x7f97ce48f1d0>>), (-inf, <weakref at 0x7f97ce495788; dead>, <bound method GPRegression._pass_through_notify_observers of <GPy.models.gp_regression.GPRegression object at 0x7f97ce48f0d0>>)], {<function _scaled_dist at 0x7f97d528c488>: <GPy.util.caching.Cacher object at 0x7f97ce4ac190>, <function K at 0x7f97d528c2a8>: <GPy.util.caching.Cacher object at 0x7f97ce4ac150>, <function dK_dr_via_X at 0x7f97d528c320>: <GPy.util.caching.Cacher object at 0x7f97ce4ac210>, <function _slice_X at 0x7f97d52ecde8>: <GPy.util.caching.Cacher object at 0x7f97ce4ac110>}, GP_regression.rbf.lengthscale:
Param([ 1.]), GP_regression.rbf.variance:
Param([ 1.]), <GPy.core.parameterization.index_operations.ParameterIndexOperationsView object at 0x7f97ce48ff90>, [(-100, <weakref at 0x7f97ce495b50; dead>, <bound method Tie._parameters_changed_notification of <GPy.core.parameterization.ties_and_remappings.Tie object at 0x7f97ce48fd90>>), (-inf, <weakref at 0x7f97ce495788; dead>, <bound method GPRegression._pass_through_notify_observers of <GPy.models.gp_regression.GPRegression object at 0x7f97ce48f0d0>>)], {'force_kwargs': (), 'cached_input_ids': {'0x7f97ce498500': [<weakref at 0x7f97ce495c58; dead>, ['0x7f97ce48f1d00x7f97ce498500']], '0x7f97ce48f1d0': [<weakref at 0x7f97ce8fab50; dead>, ['0x7f97ce48f1d00x7f97ce498500']]}, 'order': deque(['0x7f97ce48f1d00x7f97ce498500']), 'inputs_changed': {'0x7f97ce48f1d00x7f97ce498500': False}, 'cached_inputs': {'0x7f97ce48f1d00x7f97ce498500': [<GPy.kern._src.rbf.RBF object at 0x7f97ce48f1d0>, ObsAr([[ nan, nan, nan],
[ nan, nan, nan],
[ nan, nan, nan]])]}, 'limit': 20, 'operation': <function _slice_X at 0x7f97d52ecde8>, 'ignore_args': (), 'cached_outputs': {'0x7f97ce48f1d00x7f97ce498500': ObsAr([[ 666., 666., 666.],
[ 666., 666., 666.],
[ 666., 666., 666.]])}}, {'force_kwargs': (), 'cached_input_ids': {'0x7f97ce498ed8': [<weakref at 0x7f97ce495e10; dead>, ['0x7f97ce48f1d00x7f97ce498ed80x7f980b1ffdc0']], '0x7f97ce48f1d0': [<weakref at 0x7f97ce8fab50; dead>, ['0x7f97ce48f1d00x7f97ce498ed80x7f980b1ffdc0']]}, 'order': deque(['0x7f97ce48f1d00x7f97ce498ed80x7f980b1ffdc0']), 'inputs_changed': {'0x7f97ce48f1d00x7f97ce498ed80x7f980b1ffdc0': False}, 'cached_inputs': {'0x7f97ce48f1d00x7f97ce498ed80x7f980b1ffdc0': [<GPy.kern._src.rbf.RBF object at 0x7f97ce48f1d0>, ObsAr([[ 666., 666., 666.],
[ 666., 666., 666.],
[ 666., 666., 666.]]), None]}, 'limit': 20, 'operation': <function _scaled_dist at 0x7f97d528c488>, 'ignore_args': (), 'cached_outputs': {'0x7f97ce48f1d00x7f97ce498ed80x7f980b1ffdc0': array([[ 0., 0., 0.],
[ 0., 0., 0.],
[ 0., 0., 0.]])}}, {'force_kwargs': (), 'cached_input_ids': {'0x7f97ce498ed8': [<weakref at 0x7f97ce495e10; dead>, ['0x7f97ce48f1d00x7f97ce498ed80x7f980b1ffdc0']], '0x7f97ce48f1d0': [<weakref at 0x7f97ce8fab50; dead>, ['0x7f97ce48f1d00x7f97ce498ed80x7f980b1ffdc0']]}, 'order': deque(['0x7f97ce48f1d00x7f97ce498ed80x7f980b1ffdc0']), 'inputs_changed': {'0x7f97ce48f1d00x7f97ce498ed80x7f980b1ffdc0': False}, 'cached_inputs': {'0x7f97ce48f1d00x7f97ce498ed80x7f980b1ffdc0': [<GPy.kern._src.rbf.RBF object at 0x7f97ce48f1d0>, ObsAr([[ 666., 666., 666.],
[ 666., 666., 666.],
[ 666., 666., 666.]]), None]}, 'limit': 5, 'operation': <function K at 0x7f97d528c2a8>, 'ignore_args': (), 'cached_outputs': {'0x7f97ce48f1d00x7f97ce498ed80x7f980b1ffdc0': array([[ 1., 1., 1.],
[ 1., 1., 1.],
[ 1., 1., 1.]])}}, {'force_kwargs': (), 'cached_input_ids': {'0x7f97ce498ed8': [<weakref at 0x7f97ce495e10; dead>, ['0x7f97ce48f1d00x7f97ce498ed80x7f980b1ffdc0']], '0x7f97ce48f1d0': [<weakref at 0x7f97ce8fab50; dead>, ['0x7f97ce48f1d00x7f97ce498ed80x7f980b1ffdc0']]}, 'order': deque(['0x7f97ce48f1d00x7f97ce498ed80x7f980b1ffdc0']), 'inputs_changed': {'0x7f97ce48f1d00x7f97ce498ed80x7f980b1ffdc0': False}, 'cached_inputs': {'0x7f97ce48f1d00x7f97ce498ed80x7f980b1ffdc0': [<GPy.kern._src.rbf.RBF object at 0x7f97ce48f1d0>, ObsAr([[ 666., 666., 666.],
[ 666., 666., 666.],
[ 666., 666., 666.]]), None]}, 'limit': 20, 'operation': <function dK_dr_via_X at 0x7f97d528c320>, 'ignore_args': (), 'cached_outputs': {'0x7f97ce48f1d00x7f97ce498ed80x7f980b1ffdc0': array([[-0., -0., -0.],
[-0., -0., -0.],
[-0., -0., -0.]])}}, {'_offset': 2, '_param_index_ops': <GPy.core.parameterization.index_operations.ParameterIndexOperations object at 0x7f97ce48fb50>, '_size': 1}, {'_poc': [(-100, <weakref at 0x7f97ce8faf70; dead>, <bound method Gaussian._parameters_changed_notification of <GPy.likelihoods.gaussian.Gaussian object at 0x7f97ce48f850>>), (-inf, <weakref at 0x7f97ce495788; dead>, <bound method GPRegression._pass_through_notify_observers of <GPy.models.gp_regression.GPRegression object at 0x7f97ce48f0d0>>)]}, {'_added_names_': set([]), '_realshape_': (1,), '_realsize_': 1, '_fixes_': None, '_optimizer_copy_transformed': False, 'parameters': [], 'priors': <GPy.core.parameterization.index_operations.ParameterIndexOperationsView object at 0x7f97ce48fad0>, '_parent_': <GPy.likelihoods.gaussian.Gaussian object at 0x7f97ce48f850>, '_in_init_': False, '_Parameterizable__visited': False, '_realndim_': 1, 'logger': <logging.Logger object at 0x7f97ce48f650>, '_param_array_': None, '_original_': GP_regression.Gaussian_noise.variance:
Param([ 1.]), '_gradient_array_': array([ 164.24999918]), '_optimizer_copy_': None, 'observers': [(-inf, <weakref at 0x7f97ce8faf70; dead>, <bound method Gaussian._pass_through_notify_observers of <GPy.likelihoods.gaussian.Gaussian object at 0x7f97ce48f850>>)], '_default_constraint_': Logexp, '_update_on': True, '_name': 'variance', '_parent_index_': 0, '_current_slice_': (slice(None, 1, None),), 'constraints': <GPy.core.parameterization.index_operations.ParameterIndexOperationsView object at 0x7f97ce4ac050>}, {'_offset': 2, '_param_index_ops': <GPy.core.parameterization.index_operations.ParameterIndexOperations object at 0x7f97ce48fb10>, '_size': 1}, (-500, <weakref at 0x7f97ce495b50; dead>, <bound method Tie._parameters_changed_notification of <GPy.core.parameterization.ties_and_remappings.Tie object at 0x7f97ce48fd90>>), (-100, <weakref at 0x7f97ce495788; dead>, <bound method GPRegression._parameters_changed_notification of <GPy.models.gp_regression.GPRegression object at 0x7f97ce48f0d0>>), {'_offset': 0, '_param_index_ops': <GPy.core.parameterization.index_operations.ParameterIndexOperations object at 0x7f97ce48fb50>, '_size': 2}, {'_poc': [(0, <weakref at 0x7f97ce495c00; dead>, <bound method Cacher.on_cache_changed of <GPy.util.caching.Cacher object at 0x7f97ce4ac110>>), (0, <weakref at 0x7f97ce495db8; dead>, <bound method Cacher.on_cache_changed of <GPy.util.caching.Cacher object at 0x7f97ce4ac190>>), (0, <weakref at 0x7f97ce495ba8; dead>, <bound method Cacher.on_cache_changed of <GPy.util.caching.Cacher object at 0x7f97ce4ac150>>), (0, <weakref at 0x7f97ce495ec0; dead>, <bound method Cacher.on_cache_changed of <GPy.util.caching.Cacher object at 0x7f97ce4ac210>>), (-100, <weakref at 0x7f97ce8fab50; dead>, <bound method RBF._parameters_changed_notification of <GPy.kern._src.rbf.RBF object at 0x7f97ce48f1d0>>), (-inf, <weakref at 0x7f97ce495788; dead>, <bound method GPRegression._pass_through_notify_observers of <GPy.models.gp_regression.GPRegression object at 0x7f97ce48f0d0>>)]}, {'_added_names_': set([]), '_realshape_': (1,), '_realsize_': 1, '_fixes_': None, '_optimizer_copy_transformed': False, 'parameters': [], 'priors': <GPy.core.parameterization.index_operations.ParameterIndexOperationsView object at 0x7f97ce48f7d0>, '_parent_': <GPy.kern._src.rbf.RBF object at 0x7f97ce48f1d0>, '_in_init_': False, '_Parameterizable__visited': False, '_realndim_': 1, 'logger': <logging.Logger object at 0x7f97ce48f650>, '_param_array_': None, '_original_': GP_regression.rbf.lengthscale:
Param([ 1.]), '_gradient_array_': array([-0.]), '_optimizer_copy_': None, 'observers': [(-inf, <weakref at 0x7f97ce8fab50; dead>, <bound method RBF._pass_through_notify_observers of <GPy.kern._src.rbf.RBF object at 0x7f97ce48f1d0>>)], '_default_constraint_': Logexp, '_update_on': True, '_name': 'lengthscale', '_parent_index_': 1, '_current_slice_': (slice(None, 1, None),), 'constraints': <GPy.core.parameterization.index_operations.ParameterIndexOperationsView object at 0x7f97ce48f710>}, {'_added_names_': set([]), '_realshape_': (1,), '_realsize_': 1, '_fixes_': None, '_optimizer_copy_transformed': False, 'parameters': [], 'priors': <GPy.core.parameterization.index_operations.ParameterIndexOperationsView object at 0x7f97ce48f490>, '_parent_': <GPy.kern._src.rbf.RBF object at 0x7f97ce48f1d0>, '_in_init_': False, '_Parameterizable__visited': False, '_realndim_': 1, 'logger': <logging.Logger object at 0x7f97ce48f650>, '_param_array_': None, '_original_': GP_regression.rbf.variance:
Param([ 1.]), '_gradient_array_': array([ 495.74999752]), '_optimizer_copy_': None, 'observers': [(-inf, <weakref at 0x7f97ce8fab50; dead>, <bound method RBF._pass_through_notify_observers of <GPy.kern._src.rbf.RBF object at 0x7f97ce48f1d0>>)], '_default_constraint_': Logexp, '_update_on': True, '_name': 'variance', '_parent_index_': 0, '_current_slice_': (slice(None, 1, None),), 'constraints': <GPy.core.parameterization.index_operations.ParameterIndexOperationsView object at 0x7f97ce48ff10>}, {'_offset': 0, '_param_index_ops': <GPy.core.parameterization.index_operations.ParameterIndexOperations object at 0x7f97ce48fb10>, '_size': 2}, (-inf, <weakref at 0x7f97ce495788; dead>, <bound method GPRegression._pass_through_notify_observers of <GPy.models.gp_regression.GPRegression object at 0x7f97ce48f0d0>>), (-100, <weakref at 0x7f97ce495b50; dead>, <bound method Tie._parameters_changed_notification of <GPy.core.parameterization.ties_and_remappings.Tie object at 0x7f97ce48fd90>>), {'0x7f97ce498500': [<weakref at 0x7f97ce495c58; dead>, ['0x7f97ce48f1d00x7f97ce498500']], '0x7f97ce48f1d0': [<weakref at 0x7f97ce8fab50; dead>, ['0x7f97ce48f1d00x7f97ce498500']]}, deque(['0x7f97ce48f1d00x7f97ce498500']), {'0x7f97ce48f1d00x7f97ce498500': [<GPy.kern._src.rbf.RBF object at 0x7f97ce48f1d0>, ObsAr([[ nan, nan, nan],
[ nan, nan, nan],
[ nan, nan, nan]])]}, {'0x7f97ce48f1d00x7f97ce498500': ObsAr([[ 666., 666., 666.],
[ 666., 666., 666.],
[ 666., 666., 666.]])}, {'0x7f97ce498ed8': [<weakref at 0x7f97ce495e10; dead>, ['0x7f97ce48f1d00x7f97ce498ed80x7f980b1ffdc0']], '0x7f97ce48f1d0': [<weakref at 0x7f97ce8fab50; dead>, ['0x7f97ce48f1d00x7f97ce498ed80x7f980b1ffdc0']]}, deque(['0x7f97ce48f1d00x7f97ce498ed80x7f980b1ffdc0']), {'0x7f97ce48f1d00x7f97ce498ed80x7f980b1ffdc0': [<GPy.kern._src.rbf.RBF object at 0x7f97ce48f1d0>, ObsAr([[ 666., 666., 666.],
[ 666., 666., 666.],
[ 666., 666., 666.]]), None]}, {'0x7f97ce498ed8': [<weakref at 0x7f97ce495e10; dead>, ['0x7f97ce48f1d00x7f97ce498ed80x7f980b1ffdc0']], '0x7f97ce48f1d0': [<weakref at 0x7f97ce8fab50; dead>, ['0x7f97ce48f1d00x7f97ce498ed80x7f980b1ffdc0']]}, deque(['0x7f97ce48f1d00x7f97ce498ed80x7f980b1ffdc0']), {'0x7f97ce48f1d00x7f97ce498ed80x7f980b1ffdc0': [<GPy.kern._src.rbf.RBF object at 0x7f97ce48f1d0>, ObsAr([[ 666., 666., 666.],
[ 666., 666., 666.],
[ 666., 666., 666.]]), None]}, {'0x7f97ce498ed8': [<weakref at 0x7f97ce495e10; dead>, ['0x7f97ce48f1d00x7f97ce498ed80x7f980b1ffdc0']], '0x7f97ce48f1d0': [<weakref at 0x7f97ce8fab50; dead>, ['0x7f97ce48f1d00x7f97ce498ed80x7f980b1ffdc0']]}, deque(['0x7f97ce48f1d00x7f97ce498ed80x7f980b1ffdc0']), {'0x7f97ce48f1d00x7f97ce498ed80x7f980b1ffdc0': [<GPy.kern._src.rbf.RBF object at 0x7f97ce48f1d0>, ObsAr([[ 666., 666., 666.],
[ 666., 666., 666.],
[ 666., 666., 666.]]), None]}, [(-100, <weakref at 0x7f97ce8faf70; dead>, <bound method Gaussian._parameters_changed_notification of <GPy.likelihoods.gaussian.Gaussian object at 0x7f97ce48f850>>), (-inf, <weakref at 0x7f97ce495788; dead>, <bound method GPRegression._pass_through_notify_observers of <GPy.models.gp_regression.GPRegression object at 0x7f97ce48f0d0>>)], set([]), [], <GPy.core.parameterization.index_operations.ParameterIndexOperationsView object at 0x7f97ce48fad0>, [(-inf, <weakref at 0x7f97ce8faf70; dead>, <bound method Gaussian._pass_through_notify_observers of <GPy.likelihoods.gaussian.Gaussian object at 0x7f97ce48f850>>)], <GPy.core.parameterization.index_operations.ParameterIndexOperationsView object at 0x7f97ce4ac050>, <bound method Tie._parameters_changed_notification of <GPy.core.parameterization.ties_and_remappings.Tie object at 0x7f97ce48fd90>>, <weakref at 0x7f97ce495b50; dead>, <bound method GPRegression._parameters_changed_notification of <GPy.models.gp_regression.GPRegression object at 0x7f97ce48f0d0>>, <weakref at 0x7f97ce495788; dead>, [(0, <weakref at 0x7f97ce495c00; dead>, <bound method Cacher.on_cache_changed of <GPy.util.caching.Cacher object at 0x7f97ce4ac110>>), (0, <weakref at 0x7f97ce495db8; dead>, <bound method Cacher.on_cache_changed of <GPy.util.caching.Cacher object at 0x7f97ce4ac190>>), (0, <weakref at 0x7f97ce495ba8; dead>, <bound method Cacher.on_cache_changed of <GPy.util.caching.Cacher object at 0x7f97ce4ac150>>), (0, <weakref at 0x7f97ce495ec0; dead>, <bound method Cacher.on_cache_changed of <GPy.util.caching.Cacher object at 0x7f97ce4ac210>>), (-100, <weakref at 0x7f97ce8fab50; dead>, <bound method RBF._parameters_changed_notification of <GPy.kern._src.rbf.RBF object at 0x7f97ce48f1d0>>), (-inf, <weakref at 0x7f97ce495788; dead>, <bound method GPRegression._pass_through_notify_observers of <GPy.models.gp_regression.GPRegression object at 0x7f97ce48f0d0>>)], set([]), [], <GPy.core.parameterization.index_operations.ParameterIndexOperationsView object at 0x7f97ce48f7d0>, [(-inf, <weakref at 0x7f97ce8fab50; dead>, <bound method RBF._pass_through_notify_observers of <GPy.kern._src.rbf.RBF object at 0x7f97ce48f1d0>>)], <GPy.core.parameterization.index_operations.ParameterIndexOperationsView object at 0x7f97ce48f710>, set([]), [], <GPy.core.parameterization.index_operations.ParameterIndexOperationsView object at 0x7f97ce48f490>, [(-inf, <weakref at 0x7f97ce8fab50; dead>, <bound method RBF._pass_through_notify_observers of <GPy.kern._src.rbf.RBF object at 0x7f97ce48f1d0>>)], <GPy.core.parameterization.index_operations.ParameterIndexOperationsView object at 0x7f97ce48ff10>, <bound method GPRegression._pass_through_notify_observers of <GPy.models.gp_regression.GPRegression object at 0x7f97ce48f0d0>>, <bound method Tie._parameters_changed_notification of <GPy.core.parameterization.ties_and_remappings.Tie object at 0x7f97ce48fd90>>, [<weakref at 0x7f97ce495c58; dead>, ['0x7f97ce48f1d00x7f97ce498500']], [<weakref at 0x7f97ce8fab50; dead>, ['0x7f97ce48f1d00x7f97ce498500']], [<GPy.kern._src.rbf.RBF object at 0x7f97ce48f1d0>, ObsAr([[ nan, nan, nan],
[ nan, nan, nan],
[ nan, nan, nan]])], ObsAr([[ 666., 666., 666.],
[ 666., 666., 666.],
[ 666., 666., 666.]]), [<weakref at 0x7f97ce495e10; dead>, ['0x7f97ce48f1d00x7f97ce498ed80x7f980b1ffdc0']], [<weakref at 0x7f97ce8fab50; dead>, ['0x7f97ce48f1d00x7f97ce498ed80x7f980b1ffdc0']], [<GPy.kern._src.rbf.RBF object at 0x7f97ce48f1d0>, ObsAr([[ 666., 666., 666.],
[ 666., 666., 666.],
[ 666., 666., 666.]]), None], [<weakref at 0x7f97ce495e10; dead>, ['0x7f97ce48f1d00x7f97ce498ed80x7f980b1ffdc0']], [<weakref at 0x7f97ce8fab50; dead>, ['0x7f97ce48f1d00x7f97ce498ed80x7f980b1ffdc0']], [<GPy.kern._src.rbf.RBF object at 0x7f97ce48f1d0>, ObsAr([[ 666., 666., 666.],
[ 666., 666., 666.],
[ 666., 666., 666.]]), None], [<weakref at 0x7f97ce495e10; dead>, ['0x7f97ce48f1d00x7f97ce498ed80x7f980b1ffdc0']], [<weakref at 0x7f97ce8fab50; dead>, ['0x7f97ce48f1d00x7f97ce498ed80x7f980b1ffdc0']], [<GPy.kern._src.rbf.RBF object at 0x7f97ce48f1d0>, ObsAr([[ 666., 666., 666.],
[ 666., 666., 666.],
[ 666., 666., 666.]]), None], (-inf, <weakref at 0x7f97ce495788; dead>, <bound method GPRegression._pass_through_notify_observers of <GPy.models.gp_regression.GPRegression object at 0x7f97ce48f0d0>>), (-100, <weakref at 0x7f97ce8faf70; dead>, <bound method Gaussian._parameters_changed_notification of <GPy.likelihoods.gaussian.Gaussian object at 0x7f97ce48f850>>), {'_offset': 2, '_param_index_ops': <GPy.core.parameterization.index_operations.ParameterIndexOperations object at 0x7f97ce48fb50>, '_size': 1}, {'_poc': [(-inf, <weakref at 0x7f97ce8faf70; dead>, <bound method Gaussian._pass_through_notify_observers of <GPy.likelihoods.gaussian.Gaussian object at 0x7f97ce48f850>>)]}, {'_offset': 2, '_param_index_ops': <GPy.core.parameterization.index_operations.ParameterIndexOperations object at 0x7f97ce48fb10>, '_size': 1}, (-inf, <weakref at 0x7f97ce495788; dead>, <bound method GPRegression._pass_through_notify_observers of <GPy.models.gp_regression.GPRegression object at 0x7f97ce48f0d0>>), (-100, <weakref at 0x7f97ce8fab50; dead>, <bound method RBF._parameters_changed_notification of <GPy.kern._src.rbf.RBF object at 0x7f97ce48f1d0>>), (0, <weakref at 0x7f97ce495ec0; dead>, <bound method Cacher.on_cache_changed of <GPy.util.caching.Cacher object at 0x7f97ce4ac210>>), (0, <weakref at 0x7f97ce495ba8; dead>, <bound method Cacher.on_cache_changed of <GPy.util.caching.Cacher object at 0x7f97ce4ac150>>), (0, <weakref at 0x7f97ce495db8; dead>, <bound method Cacher.on_cache_changed of <GPy.util.caching.Cacher object at 0x7f97ce4ac190>>), (0, <weakref at 0x7f97ce495c00; dead>, <bound method Cacher.on_cache_changed of <GPy.util.caching.Cacher object at 0x7f97ce4ac110>>), {'_offset': 1, '_param_index_ops': <GPy.core.parameterization.index_operations.ParameterIndexOperations object at 0x7f97ce48fb50>, '_size': 1}, {'_poc': [(-inf, <weakref at 0x7f97ce8fab50; dead>, <bound method RBF._pass_through_notify_observers of <GPy.kern._src.rbf.RBF object at 0x7f97ce48f1d0>>)]}, {'_offset': 1, '_param_index_ops': <GPy.core.parameterization.index_operations.ParameterIndexOperations object at 0x7f97ce48fb10>, '_size': 1}, {'_offset': 0, '_param_index_ops': <GPy.core.parameterization.index_operations.ParameterIndexOperations object at 0x7f97ce48fb50>, '_size': 1}, {'_poc': [(-inf, <weakref at 0x7f97ce8fab50; dead>, <bound method RBF._pass_through_notify_observers of <GPy.kern._src.rbf.RBF object at 0x7f97ce48f1d0>>)]}, {'_offset': 0, '_param_index_ops': <GPy.core.parameterization.index_operations.ParameterIndexOperations object at 0x7f97ce48fb10>, '_size': 1}, ['0x7f97ce48f1d00x7f97ce498500'], <weakref at 0x7f97ce495c58; dead>, ['0x7f97ce48f1d00x7f97ce498500'], <weakref at 0x7f97ce8fab50; dead>, {'observers': [(0, <weakref at 0x7f97ce495c00; dead>, <bound method Cacher.on_cache_changed of <GPy.util.caching.Cacher object at 0x7f97ce4ac110>>), (0, <weakref at 0x7f97ce495db8; dead>, <bound method Cacher.on_cache_changed of <GPy.util.caching.Cacher object at 0x7f97ce4ac190>>), (0, <weakref at 0x7f97ce495ba8; dead>, <bound method Cacher.on_cache_changed of <GPy.util.caching.Cacher object at 0x7f97ce4ac150>>), (0, <weakref at 0x7f97ce495ec0; dead>, <bound method Cacher.on_cache_changed of <GPy.util.caching.Cacher object at 0x7f97ce4ac210>>)]}, ['0x7f97ce48f1d00x7f97ce498ed80x7f980b1ffdc0'], <weakref at 0x7f97ce495e10; dead>, ['0x7f97ce48f1d00x7f97ce498ed80x7f980b1ffdc0'], ['0x7f97ce48f1d00x7f97ce498ed80x7f980b1ffdc0'], ['0x7f97ce48f1d00x7f97ce498ed80x7f980b1ffdc0'], ['0x7f97ce48f1d00x7f97ce498ed80x7f980b1ffdc0'], ['0x7f97ce48f1d00x7f97ce498ed80x7f980b1ffdc0'], <bound method GPRegression._pass_through_notify_observers of <GPy.models.gp_regression.GPRegression object at 0x7f97ce48f0d0>>, <bound method Gaussian._parameters_changed_notification of <GPy.likelihoods.gaussian.Gaussian object at 0x7f97ce48f850>>, <weakref at 0x7f97ce8faf70; dead>, [(-inf, <weakref at 0x7f97ce8faf70; dead>, <bound method Gaussian._pass_through_notify_observers of <GPy.likelihoods.gaussian.Gaussian object at 0x7f97ce48f850>>)], <bound method GPRegression._pass_through_notify_observers of <GPy.models.gp_regression.GPRegression object at 0x7f97ce48f0d0>>, <bound method RBF._parameters_changed_notification of <GPy.kern._src.rbf.RBF object at 0x7f97ce48f1d0>>, <bound method Cacher.on_cache_changed of <GPy.util.caching.Cacher object at 0x7f97ce4ac210>>, <bound method Cacher.on_cache_changed of <GPy.util.caching.Cacher object at 0x7f97ce4ac150>>, <bound method Cacher.on_cache_changed of <GPy.util.caching.Cacher object at 0x7f97ce4ac190>>, <bound method Cacher.on_cache_changed of <GPy.util.caching.Cacher object at 0x7f97ce4ac110>>, [(-inf, <weakref at 0x7f97ce8fab50; dead>, <bound method RBF._pass_through_notify_observers of <GPy.kern._src.rbf.RBF object at 0x7f97ce48f1d0>>)], [(-inf, <weakref at 0x7f97ce8fab50; dead>, <bound method RBF._pass_through_notify_observers of <GPy.kern._src.rbf.RBF object at 0x7f97ce48f1d0>>)], (-inf, <weakref at 0x7f97ce8faf70; dead>, <bound method Gaussian._pass_through_notify_observers of <GPy.likelihoods.gaussian.Gaussian object at 0x7f97ce48f850>>), (-inf, <weakref at 0x7f97ce8fab50; dead>, <bound method RBF._pass_through_notify_observers of <GPy.kern._src.rbf.RBF object at 0x7f97ce48f1d0>>), (-inf, <weakref at 0x7f97ce8fab50; dead>, <bound method RBF._pass_through_notify_observers of <GPy.kern._src.rbf.RBF object at 0x7f97ce48f1d0>>), <bound method Gaussian._pass_through_notify_observers of <GPy.likelihoods.gaussian.Gaussian object at 0x7f97ce48f850>>, <bound method RBF._pass_through_notify_observers of <GPy.kern._src.rbf.RBF object at 0x7f97ce48f1d0>>, <bound method RBF._pass_through_notify_observers of <GPy.kern._src.rbf.RBF object at 0x7f97ce48f1d0>>]
[110.515625, 110.51953125, 110.58984375, 110.58984375, 110.58984375, 110.58984375]
import gc
import numpy as np
import GPy
from sklearn.svm import SVR
import sys
import memory_profiler as mprof
model = sys.argv[1]
feats = np.full((3,3), 666)
labels = np.full((3, 1), 42)
def f():
for i in xrange(its):
if model == "gpy":
m = GPy.models.GPRegression(feats, labels)
elif model == "svm":
m = SVR(feats, labels.flatten())
#print gc.garbage
gc.set_debug(gc.DEBUG_SAVEALL)
feats[:, :] = np.nan
print gc.collect(2)
print gc.garbage
return
if model == 'svm':
its = 500000
elif model == 'gpy':
its = 3
mem_usage = mprof.memory_usage(f, timeout=10, interval=0.2)
print mem_usage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment