Home | Trees | Indices | Help |
|
---|
|
|
|||
Inherited from |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
|
|||
_DEV__doc__ =
|
|||
trained_labels = StateVariable(enabled= True, doc= "Set of uni
|
|||
trained_nsamples = StateVariable(enabled= True, doc= "Number o
|
|||
trained_dataset = StateVariable(enabled= False, doc= "The data
|
|||
training_confusion = StateVariable(enabled= False, doc= "Confu
|
|||
predictions = StateVariable(enabled= True, doc= "Most recent s
|
|||
values = StateVariable(enabled= True, doc= "Internal classifie
|
|||
training_time = StateVariable(enabled= True, doc= "Time (in se
|
|||
predicting_time = StateVariable(enabled= True, doc= "Time (in
|
|||
feature_ids = StateVariable(enabled= False, doc= "Feature IDS
|
|||
_clf_internals = [] Describes some specifics about the classifier -- is that it is doing regression for instance.... |
|||
regression = Parameter(False, allowedtype= 'bool', doc= """Eit
|
|||
retrainable = Parameter(False, allowedtype= 'bool', doc= """Ei
|
|||
Inherited from |
|
|||
__trainednfeatures Stores number of features for which classifier was trained. If None -- it wasn't trained at all |
|
|||
Inherited from |
|
|
|
|
Functionality post training For instance -- computing confusion matrix :Parameters: dataset : Dataset Data which was used for training |
Virtual method to return feature_ids used while training Is not intended to be called anywhere but from _posttrain, thus classifier is assumed to be trained at this point |
Create full copy of the classifier. It might require classifier to be untrained first due to present SWIG bindings. TODO: think about proper re-implementation, without enrollment of deepcopy |
Train classifier on a dataset Shouldn't be overridden in subclasses unless explicitly needed to do so |
Predict classifier on data Shouldn't be overridden in subclasses unless explicitly needed to do so. Also subclasses trying to call super class's predict should call _predict if within _predict instead of predict() since otherwise it would loop |
Either classifier was already trained. MUST BE USED WITH CARE IF EVER |
|
Assign value of retrainable parameter If retrainable flag is to be changed, classifier has to be untrained. Also internal attributes such as _changedData, __changedData_isset, and __idhashes should be initialized if it becomes retrainable |
Check if given entry was changed from what known prior. If so -- store only the ones needed for retrainable beastie |
Helper to avoid check if data was changed actually changed Useful if just some aspects of classifier were changed since its previous training. For instance if dataset wasn't changed but only classifier parameters, then kernel matrix does not have to be computed. Words of caution: classifier must be previously trained, results always should first be compared to the results on not 'retrainable' classifier (without calling retrain). Some additional checks are enabled if debug id 'CHECK_RETRAIN' is enabled, to guard against obvious mistakes.
|
Helper to avoid check if data was changed actually changed Useful if classifier was (re)trained but with the same data (so just parameters were changed), so that it could be repredicted easily (on the same data as before) without recomputing for instance train/test kernel matrix. Should be used with caution and always compared to the results on not 'retrainable' classifier. Some additional checks are enabled if debug id 'CHECK_RETRAIN' is enabled, to guard against obvious mistakes.
|
|
_DEV__doc__
|
trained_labels
|
trained_nsamples
|
trained_dataset
|
training_confusion
|
predictions
|
values
|
training_time
|
predicting_time
|
feature_ids
|
regression
|
retrainable
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Apr 23 23:09:17 2012 | http://epydoc.sourceforge.net |