Package classifiers :: Module g_class_centers
[frames] | no frames]

Module g_class_centers

source code

This computes centers for classes. You give it a classified.fiat file on the argument list, as obtained from *_classifier.py, and it produces a list of files, class names, and the feature vector at the center of each class.

To define the center, it takes the component-by-component median of the feature vector, including only data that are correctly classified.

Functions
 
process(f) source code
 
format(v) source code
Variables
  CLIP = 0.15
  __package__ = 'classifiers'

Imports: math, gpkavg, gpkmisc, Num, die, dictops, q_classifier_r