yat
0.14.5pre
|
Class for ranking rows in a matrix, using a Score and a target vector. More...
#include <yat/classifier/InputRanker.h>
Public Member Functions | |
InputRanker (const MatrixLookup &, const Target &, const statistics::Score &) | |
InputRanker (const MatrixLookupWeighted &, const Target &, const statistics::Score &) | |
const std::vector< size_t > & | id (void) const |
const std::vector< size_t > & | rank (void) const |
double | score (size_t rank) const |
Class for ranking rows in a matrix, using a Score and a target vector.
theplu::yat::classifier::InputRanker::InputRanker | ( | const MatrixLookup & | , |
const Target & | , | ||
const statistics::Score & | |||
) |
Constructor taking data, target, a Score object and vector defining what samples to use (default is to use all samples)
theplu::yat::classifier::InputRanker::InputRanker | ( | const MatrixLookupWeighted & | , |
const Target & | , | ||
const statistics::Score & | |||
) |
Constructor taking data, target, a Score object and vector defining what samples to use (default is to use all samples)
const std::vector<size_t>& theplu::yat::classifier::InputRanker::id | ( | void | ) | const |
highest ranked gene is ranked as number zero
const std::vector<size_t>& theplu::yat::classifier::InputRanker::rank | ( | void | ) | const |
highest ranked gene is ranked as number zero
double theplu::yat::classifier::InputRanker::score | ( | size_t | rank | ) | const |
rank | should be a number in range [0,N-1] where N is number of inputs in data matrix. "score(0)" will gives the score of the feature that had the highest score. |