mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-30 14:35:15 +02:00
help choleskies along a little
This commit is contained in:
parent
25cebf790c
commit
5edf464efa
2 changed files with 18 additions and 98 deletions
|
|
@ -5,6 +5,8 @@ import numpy
|
|||
from numpy.lib.function_base import vectorize
|
||||
from .lists_and_dicts import IntArrayDict
|
||||
from functools import reduce
|
||||
from transformations import Transformation
|
||||
from priors import Prior
|
||||
|
||||
def extract_properties_to_index(index, props):
|
||||
prop_index = dict()
|
||||
|
|
@ -144,6 +146,7 @@ class ParameterIndexOperations(object):
|
|||
return prop_index
|
||||
|
||||
def add(self, prop, indices):
|
||||
#assert isinstance(prop, (Transformation, Prior)), "invalid key"
|
||||
self._properties[prop] = combine_indices(self._properties[prop], indices)
|
||||
|
||||
def remove(self, prop, indices):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue