mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-10 20:42:39 +02:00
Fixed naming to standardized PEP8
This commit is contained in:
parent
b3eeacd956
commit
aac4f6a237
7 changed files with 15 additions and 328 deletions
|
|
@ -2,6 +2,7 @@
|
|||
# Licensed under the BSD 3-clause license (see LICENSE.txt)
|
||||
|
||||
from gp_regression import GPRegression
|
||||
from gp_classification import GPClassification
|
||||
from sparse_gp_regression import SparseGPRegression
|
||||
from sparse_gp_classification import SparseGPClassification
|
||||
from fitc_classification import FITCClassification
|
||||
|
|
|
|||
|
|
@ -7,11 +7,11 @@ from ..core import GP
|
|||
from .. import likelihoods
|
||||
from .. import kern
|
||||
|
||||
class GP_classification(GP):
|
||||
class GPClassification(GP):
|
||||
"""
|
||||
Gaussian Process classification
|
||||
|
||||
This is a thin wrapper around the models.GP class, with a set of sensible defalts
|
||||
This is a thin wrapper around the models.GP class, with a set of sensible defaults
|
||||
|
||||
:param X: input observations
|
||||
:param Y: observed values
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
|
||||
|
||||
import numpy as np
|
||||
from ..core import sparse_GP
|
||||
from ..core import SparseGP
|
||||
from .. import likelihoods
|
||||
from .. import kern
|
||||
from ..likelihoods import likelihood
|
||||
|
||||
class sparse_GP_classification(sparse_GP):
|
||||
class SparseGPClassification(SparseGP):
|
||||
"""
|
||||
sparse Gaussian Process model for classification
|
||||
|
||||
|
|
@ -43,5 +43,5 @@ class sparse_GP_classification(sparse_GP):
|
|||
else:
|
||||
assert Z.shape[1]==X.shape[1]
|
||||
|
||||
sparse_GP.__init__(self, X, likelihood, kernel, Z=Z, normalize_X=normalize_X)
|
||||
SparseGP.__init__(self, X, likelihood, kernel, Z=Z, normalize_X=normalize_X)
|
||||
self._set_params(self._get_params())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue