Package classifiers :: Module q_classifier_r :: Class classifier_desc
[frames] | no frames]

Class classifier_desc

source code


This is a thing that describes and generates classifiers.

Instance Methods
 
__init__(self, list_of_classes, fvdim, evaluator=None, ftrim=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
int
np(self)
Returns: The number of parameters required to define one class.
source code
int
npt(self)
Returns: The number of parameters required to define the classifier.
source code
the corresponding subclass of classifier.
unpack(self, prmvec, trainingset_name=None, uid=None)
Produce a classifier from a parameter vector.
source code
 
start(self, data)
Starting position for Markov Chain Monte Carlo.
source code
 
__str__(self)
str(x)
source code
 
__repr__(self)
str(x)
source code
 
typename(self)
Returns: a string that names the subclass - what kind of classifier_desc is it? @rtype str
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self, list_of_classes, fvdim, evaluator=None, ftrim=None)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

np(self)

source code 
Returns: int
The number of parameters required to define one class.

npt(self)

source code 
Returns: int
The number of parameters required to define the classifier.

unpack(self, prmvec, trainingset_name=None, uid=None)

source code 

Produce a classifier from a parameter vector.

Parameters:
  • prmvec (numpy.ndarray) - a vector of parameters that describe a classifier model.
Returns: the corresponding subclass of classifier.
the classifier.

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 

str(x)

Overrides: object.__repr__
(inherited documentation)

typename(self)

source code 
Returns:
a string that names the subclass - what kind of classifier_desc is it? @rtype str