mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-09 12:02:38 +02:00
from functools import reduce for Py3 compat
This commit is contained in:
parent
358488cf5d
commit
e0d0f2e633
4 changed files with 4 additions and 0 deletions
|
|
@ -5,6 +5,7 @@ import numpy as np
|
|||
import itertools
|
||||
from ...util.caching import Cache_this
|
||||
from .kern import CombinationKernel
|
||||
from functools import reduce
|
||||
|
||||
class Add(CombinationKernel):
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ from ...core.parameterization.parameterized import Parameterized
|
|||
from .kernel_slice_operations import KernCallsViaSlicerMeta
|
||||
from ...util.caching import Cache_this
|
||||
from GPy.core.parameterization.observable_array import ObsAr
|
||||
from functools import reduce
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ from GPy.core.parameterization.transformations import NegativeLogexp, Logistic
|
|||
from GPy.core.parameterization.parameterized import Parameterized
|
||||
from GPy.core.parameterization.param import Param
|
||||
from GPy.core.parameterization.index_operations import ParameterIndexOperations
|
||||
from functools import reduce
|
||||
|
||||
class ArrayCoreTest(unittest.TestCase):
|
||||
def setUp(self):
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ from GPy.kern._src.static import Bias, White
|
|||
from GPy.examples.dimensionality_reduction import mrd_simulation
|
||||
from GPy.core.parameterization.variational import NormalPosterior
|
||||
from GPy.models.gp_regression import GPRegression
|
||||
from functools import reduce
|
||||
|
||||
def toy_model():
|
||||
X = np.linspace(0,1,50)[:, None]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue