This is the base class for all kinds of classifers.
|
|
__init__(self,
typename,
models,
info=None,
trainingset_name=None,
uid=None,
cdesc=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
source code
|
|
|
|
add_model(self,
classname,
model)
Add a class to an existing classifier. |
source code
|
|
|
|
|
|
|
|
|
|
P(self,
datum,
whichclass=None)
Determine the probability of being in each class. |
source code
|
|
|
|
|
|
|
logPw(self,
datum,
whichclass,
constrain)
Determine the probability of datum being in
whichclass. |
source code
|
|
|
|
logPv(self,
datum)
Determine the probability of being in each class. |
source code
|
|
|
|
bestc(self,
datum)
Determine the best class for a datum. |
source code
|
|
|
|
|
|
|
|
|
|
| list_wrong_classifications(self,
classdata) |
source code
|
|
|
|
|
|
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__setattr__,
__sizeof__,
__subclasshook__
|