find_reps
Methods for the find_reps module in hetgpy
docstring for find_reps
- find_reps(X, Z, return_Zlist=True, rescale=False, normalize=False, inputBounds=None, use_torch=False)[source]
Prepare data for use with
mleHomGPandmleHetGPIn particular to find replicated observations
- Parameters:
X (array_like) – matrix of design locations, one point per row
Z (array_like) – vector of observations at
Xreturn_Zlist (bool) – to return Zlist, see below
rescale (bool) – if
True, the inputs are rescaled to the unit hypercubenormalize (bool) – if
True, the outputs are centered and normalizedinputBounds (array_like) – optional matrix of known boundaries in original input space, of size 2 times X.shape[1]. If not provided, and
rescale == True, it is estimated from the data.
- Returns:
dict – dictionary of outputs
type – explain types
out –
dictionary of
X0matrix with unique designs locations, one point per rowZ0vector of averaged observations atX0multnumber of replicates atX0Zvector with all observations, sorted according toX0Zlistoptional list, each element corresponds to observations at a design inX0inputBoundsoptional matrix, to rescale back to the original input spaceoutputStatsoptional vector, with mean and variance of the original outputs.
References
Binois et. al (2018)
Examples
>>> from hetgpy.data import mcycle >>> from hetgpy.hetGP import hetGP >>> X = mcycle['times'] >>> Z = mcycle['accel']
>>> model = hetGP() >>> out = model.find_reps(X, Z) >>> print(out)