yat
0.20.3pre
|
Class for In Group Proportions (IGP) More...
#include <yat/classifier/IGP.h>
Public Member Functions | |
IGP (const MatrixLookup &, const Target &) | |
IGP (const MatrixLookup &, const Target &, const Distance &) | |
virtual | ~IGP () |
const utility::Vector & | score (void) const |
Class for In Group Proportions (IGP)
IGP is defined to be the proportion of samples in a group whose nearest neighbours are also in the same group.
Distance should model concept Distance (but support for weighted iterators is not required).
theplu::yat::classifier::IGP< Distance >::IGP | ( | const MatrixLookup & | data, |
const Target & | target | ||
) |
Constructor taking the training data and the target vector and as input.
theplu::yat::classifier::IGP< Distance >::IGP | ( | const MatrixLookup & | data, |
const Target & | target, | ||
const Distance & | dist | ||
) |
Constructor taking the training data, the target vector and the distance measure as input.
|
virtual |
Destrucutor
const utility::Vector & theplu::yat::classifier::IGP< Distance >::score | ( | void | ) | const |