Historical Map  1.0
Plugin for automatic extraction of old forest from historical map
 All Classes Namespaces Files Functions Variables
Public Member Functions | Public Attributes | List of all members
HistoricalMap.gmm_ridge.GMMR Class Reference
Collaboration diagram for HistoricalMap.gmm_ridge.GMMR:
Collaboration graph

Public Member Functions

def __init__
 
def learn
 
def predict
 
def compute_inverse_logdet
 
def BIC
 
def cross_validation
 

Public Attributes

 ni
 Get information from the data. More...
 
 prop
 
 mean
 
 cov
 
 Q
 
 L
 
 tau
 

Detailed Description

Definition at line 95 of file gmm_ridge.py.

Constructor & Destructor Documentation

def HistoricalMap.gmm_ridge.GMMR.__init__ (   self)

Definition at line 96 of file gmm_ridge.py.

Member Function Documentation

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 
)

Definition at line 179 of file gmm_ridge.py.

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.

Member Data Documentation

HistoricalMap.gmm_ridge.GMMR.cov

Definition at line 100 of file gmm_ridge.py.

HistoricalMap.gmm_ridge.GMMR.L

Definition at line 102 of file gmm_ridge.py.

HistoricalMap.gmm_ridge.GMMR.mean

Definition at line 99 of file gmm_ridge.py.

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

Definition at line 98 of file gmm_ridge.py.

HistoricalMap.gmm_ridge.GMMR.Q

Definition at line 101 of file gmm_ridge.py.

HistoricalMap.gmm_ridge.GMMR.tau

Definition at line 103 of file gmm_ridge.py.


The documentation for this class was generated from the following file: