From 627cf9c86c7afbb01531fc4ea5879feca82abfee Mon Sep 17 00:00:00 2001 From: Zhenwen Dai Date: Thu, 29 May 2014 10:13:16 +0100 Subject: [PATCH] developing split kernel --- GPy/kern/__init__.py | 1 + GPy/kern/_src/independent_outputs.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/GPy/kern/__init__.py b/GPy/kern/__init__.py index 27e056b4..85c6cf4d 100644 --- a/GPy/kern/__init__.py +++ b/GPy/kern/__init__.py @@ -14,6 +14,7 @@ from _src.ODE_UYC import ODE_UYC from _src.ODE_st import ODE_st from _src.ODE_t import ODE_t from _src.poly import Poly +from _src.splitKern import SplitKern # TODO: put this in an init file somewhere #I'm commenting this out because the files were not added. JH. Remember to add the files before commiting diff --git a/GPy/kern/_src/independent_outputs.py b/GPy/kern/_src/independent_outputs.py index 64314197..f07db692 100644 --- a/GPy/kern/_src/independent_outputs.py +++ b/GPy/kern/_src/independent_outputs.py @@ -22,7 +22,7 @@ def index_to_slices(index): """ #contruct the return structure - ind = np.asarray(index,dtype=np.int64) + ind = np.asarray(index,dtype=np.int) ret = [[] for i in range(ind.max()+1)] #find the switchpoints