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.
|
CLIP = 0.15
|
|
__package__ = ' classifiers '
|
Imports:
math,
gpkavg,
gpkmisc,
Num,
die,
dictops,
q_classifier_r