#include <multiclassdistribution.h>
Inheritance diagram for CLUS::MulticlassDistribution:
Public Member Functions | |
MulticlassDistribution (int NoClasses) | |
virtual | ~MulticlassDistribution (void) |
virtual void | Infer (const double *cdata, const int *ddata, double *result) |
Infer will use data to produce noClasses normalized probabilities into result. | |
virtual void | MultiplicativeInfer (const double *cdata, const int *ddata, double *result) |
MultiplicativeInfer uses data to produce probabilities and multiplies these probabilities with the ones in result. | |
virtual void | StartLearning (void) |
Initialize the sufficient statistics that are maintained. | |
virtual void | LearnSample (const double *cdata, const int *ddata, int classLabel, double weightSample=1.0) |
Update the sufficient statistics according to the current input. | |
virtual void | LearnSample (const double *cdata, const int *ddata, double classProbabilities, double weightSample=1.0) |
Update the sufficient statistics according to the current input. | |
virtual void | StopLearning (void) |
Uses the sufficient statistics to compute estimates of the parameters of the distribution. | |
virtual double | PValueStatisticalTest (void) |
Returns the log of p-value=1-cdf of the apropriate statistical test. | |
void | SaveToStream (ostream &output) |
virtual bool | IsClassLabelAbsent (int index) |
Protected Attributes | |
int | noClasses |
the number of classes the predicted variable has | |
double | statisticalTest |
the value of the test that is usually computed during StopLearning |
The methods are virtual since not only one subclass is used in any given tree and is easier to let the virtual function mechanism kick in.
Definition at line 48 of file multiclassdistribution.h.
|
Definition at line 57 of file multiclassdistribution.h. |
|
Definition at line 60 of file multiclassdistribution.h. |
|
Infer will use data to produce noClasses normalized probabilities into result.
Reimplemented in CLUS::MulticlassContinuousDistribution< T_Distribution >. Definition at line 66 of file multiclassdistribution.h. |
|
Reimplemented in CLUS::MulticlassContinuousDistribution< T_Distribution >. Definition at line 144 of file multiclassdistribution.h. |
|
Update the sufficient statistics according to the current input. Should be used if the class label cannot be determined with certainty.
Definition at line 109 of file multiclassdistribution.h. |
|
Update the sufficient statistics according to the current input. Should be used if the class label is known for sure.
Reimplemented in CLUS::MulticlassContinuousDistribution< T_Distribution >. Definition at line 96 of file multiclassdistribution.h. |
|
MultiplicativeInfer uses data to produce probabilities and multiplies these probabilities with the ones in result.
Reimplemented in CLUS::MulticlassContinuousDistribution< T_Distribution >. Definition at line 75 of file multiclassdistribution.h. |
|
Returns the log of p-value=1-cdf of the apropriate statistical test. In other words it returns the probability that randomly (no correlations between input and classlabel) we do as well. The smaller the p-value the more predictive the distribution. The criterion depends on the distribution. This function should be called only after StopLearning Reimplemented in CLUS::MulticlassContinuousDistribution< T_Distribution >. Definition at line 125 of file multiclassdistribution.h. |
|
Definition at line 130 of file multiclassdistribution.h. |
|
Initialize the sufficient statistics that are maintained.
Reimplemented in CLUS::MulticlassContinuousDistribution< T_Distribution >. Definition at line 84 of file multiclassdistribution.h. |
|
Uses the sufficient statistics to compute estimates of the parameters of the distribution.
Reimplemented in CLUS::MulticlassContinuousDistribution< T_Distribution >. Definition at line 116 of file multiclassdistribution.h. |
|
|
the value of the test that is usually computed during StopLearning
Definition at line 55 of file multiclassdistribution.h. |