lite
new_predutilGPsep_lite(gpsep, nn, XX)
¶
Utility function that allocates and calculates useful vectors and matrices for prediction; used by predGPsep_lite and dmus2GP.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
gpsep |
GPsep
|
The GPsep object. |
required |
nn |
int
|
The number of predictive locations. |
required |
XX |
ndarray
|
The predictive locations. |
required |
Returns:
Name | Type | Description |
---|---|---|
tuple |
tuple
|
A tuple containing k, ktKi, and ktKik. |
Source code in spotpython/gp/lite.py
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
|
new_predutil_generic_lite(n, Ki, nn, k)
¶
Generic utility function for prediction.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
n |
int
|
The number of data points. |
required |
Ki |
ndarray
|
The inverse covariance matrix. |
required |
nn |
int
|
The number of predictive locations. |
required |
k |
ndarray
|
The covariance matrix between training and predictive locations. |
required |
Returns:
Name | Type | Description |
---|---|---|
tuple |
tuple
|
A tuple containing ktKi and ktKik. |
Source code in spotpython/gp/lite.py
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
|
predGPsep_lite(gpsep, m, nn, XX, lite_in, nonug_in, mean_out, Sigma_out, df_out, llik_out)
¶
Perform a lite prediction using the GPsep model.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
gpsep |
GPsep
|
The GPsep object. |
required |
m |
int
|
The number of input dimensions. |
required |
nn |
int
|
The number of predictive locations. |
required |
XX |
ndarray
|
The predictive locations. |
required |
lite_in |
bool
|
Flag to indicate whether to use lite prediction. |
required |
nonug_in |
bool
|
Flag to indicate whether to use nugget. |
required |
mean_out |
ndarray
|
The output mean. |
required |
Sigma_out |
ndarray
|
The output covariance matrix. |
required |
df_out |
ndarray
|
The output degrees of freedom. |
required |
llik_out |
ndarray
|
The output log-likelihood. |
required |
Returns:
Name | Type | Description |
---|---|---|
tuple |
tuple
|
A tuple containing the mean, Sigma (or s2), df, and llik. |
Source code in spotpython/gp/lite.py
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
|