Merge pull request #557 from SheffieldML/devel

Paramz 0.8 update
This commit is contained in:
Max Zwiessele 2017-10-02 11:27:43 +01:00 committed by GitHub
commit 9f3778a801
8 changed files with 40 additions and 11240 deletions

11260
CHANGELOG.md

File diff suppressed because it is too large Load diff

View file

@ -18,7 +18,7 @@ from .util import normalizer
# backwards compatibility
import sys
backwards_compatibility = ['lists_and_dicts', 'observable_array', 'ties_and_remappings', 'index_operations']
backwards_compatibility = ['lists_and_dicts', 'observable_array', 'index_operations']
for bc in backwards_compatibility:
sys.modules['GPy.core.parameterization.{!s}'.format(bc)] = getattr(core.parameterization, bc)

View file

@ -1 +1 @@
__version__ = "1.8.0"
__version__ = "1.8.1"

View file

@ -6,4 +6,4 @@ from .parameterized import Parameterized
from . import transformations
from paramz.core import lists_and_dicts, index_operations, observable_array, observable
from paramz import ties_and_remappings, ObsAr
from paramz import ObsAr

View file

@ -3,7 +3,7 @@ environment:
secure: 8/ZjXFwtd1S7ixd7PJOpptupKKEDhm2da/q3unabJ00=
COVERALLS_REPO_TOKEN:
secure: d3Luic/ESkGaWnZrvWZTKrzO+xaVwJWaRCEP0F+K/9DQGPSRZsJ/Du5g3s4XF+tS
gpy_version: 1.8.0
gpy_version: 1.8.1
matrix:
- PYTHON_VERSION: 2.7
MINICONDA: C:\Miniconda-x64

View file

@ -41,8 +41,8 @@ For all Kerns the first parameter ``input_dim`` corresponds to the
dimension of the input space, and the following parameters stand for
the parameterization of the kernel.
You have to call ``super(<class_name>, self).__init__(input_dim,
name)`` to make sure the input dimension and name of the kernel are
You have to call ``super(<class_name>, self).__init__(input_dim, active_dims,
name)`` to make sure the input dimension (and possible dimension restrictions using active_dims) and name of the kernel are
stored in the right place. These attributes are available as
``self.input_dim`` and ``self.name`` at runtime. Parameterization is
done by adding :py:class:`~GPy.core.parameterization.param.Param`
@ -53,8 +53,8 @@ your code. The parameters have to be added by calling
:py:class:`~GPy.core.parameterization.param.Param` objects as
arguments::
def __init__(self,input_dim,variance=1.,lengthscale=1.,power=1.):
super(RationalQuadratic, self).__init__(input_dim, 'rat_quad')
def __init__(self,input_dim,variance=1.,lengthscale=1.,power=1.,active_dims=None):
super(RationalQuadratic, self).__init__(input_dim, active_dims, 'rat_quad')
assert input_dim == 1, "For this kernel we assume input_dim=1"
self.variance = Param('variance', variance)
self.lengthscale = Param('lengtscale', lengthscale)

View file

@ -1,5 +1,5 @@
[bumpversion]
current_version = 1.8.0
current_version = 1.8.1
tag = True
commit = True

View file

@ -150,7 +150,7 @@ setup(name = 'GPy',
py_modules = ['GPy.__init__'],
test_suite = 'GPy.testing',
setup_requires = ['numpy>=1.7'],
install_requires = ['numpy>=1.7', 'scipy>=0.16', 'six', 'paramz>=0.7.4'],
install_requires = ['numpy>=1.7', 'scipy>=0.16', 'six', 'paramz>=0.8.3'],
extras_require = {'docs':['sphinx'],
'optional':['mpi4py',
'ipython>=4.0.0',