Definition at line 95 of file gmm_ridge.py.
def HistoricalMap.gmm_ridge.GMMR.__init__ |
( |
|
self | ) |
|
def HistoricalMap.gmm_ridge.GMMR.BIC |
( |
|
self, |
|
|
|
x, |
|
|
|
y, |
|
|
|
tau = None |
|
) |
| |
Computes the Bayesian Information Criterion of the model
Definition at line 186 of file gmm_ridge.py.
def HistoricalMap.gmm_ridge.GMMR.compute_inverse_logdet |
( |
|
self, |
|
|
|
c, |
|
|
|
tau |
|
) |
| |
def HistoricalMap.gmm_ridge.GMMR.cross_validation |
( |
|
self, |
|
|
|
x, |
|
|
|
y, |
|
|
|
tau, |
|
|
|
v = 5 |
|
) |
| |
Function that computes the cross validation accuracy for the value tau of the regularization
Input:
x : the training samples
y : the labels
tau : a range of values to be tested
v : the number of fold
Output:
err : the estimated error with cross validation for all tau's value
Definition at line 219 of file gmm_ridge.py.
def HistoricalMap.gmm_ridge.GMMR.learn |
( |
|
self, |
|
|
|
x, |
|
|
|
y |
|
) |
| |
Function that learns the GMM with ridge regularizationb from training samples
Input:
x : the training samples
y : the labels
Output:
the mean, covariance and proportion of each class, as well as the spectral decomposition of the covariance matrix
Definition at line 105 of file gmm_ridge.py.
def HistoricalMap.gmm_ridge.GMMR.predict |
( |
|
self, |
|
|
|
xt, |
|
|
|
tau = None , |
|
|
|
proba = None |
|
) |
| |
Function that predict the label for sample xt using the learned model
Inputs:
xt: the samples to be classified
Outputs:
y: the class
K: the decision value for each class
Definition at line 143 of file gmm_ridge.py.
HistoricalMap.gmm_ridge.GMMR.cov |
HistoricalMap.gmm_ridge.GMMR.L |
HistoricalMap.gmm_ridge.GMMR.mean |
HistoricalMap.gmm_ridge.GMMR.ni |
Get information from the data.
Initialization
Definition at line 97 of file gmm_ridge.py.
HistoricalMap.gmm_ridge.GMMR.prop |
HistoricalMap.gmm_ridge.GMMR.Q |
HistoricalMap.gmm_ridge.GMMR.tau |
The documentation for this class was generated from the following file: