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

Module g_class_centers

source code

This computes centers for classes. You give it a file on the argument list, as obtained from *, 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.

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

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