Gaia
|
SVMPredict applier class. More...
#include <svmpredict.h>
Public Member Functions | |
SVMPredict (const Transformation &transfo) | |
virtual Point * | mapPoint (const Point *p) const |
Ownership of resulting point is handed to caller of this function. | |
virtual DataSet * | mapDataSet (const DataSet *dataset) const |
Provides a default function that maps a whole dataset but which can be overriden in derived classes to provide a more efficient implementation. | |
![]() | |
Applier (const Transformation &transfo) | |
void | checkLayout (const PointLayout &layout) const |
Check that the given layout is the same as the one that was used during the analysis part of this transformation. More... | |
void | checkLayout (const DataSet *dataset) const |
Check that the given dataset has the same layout as the one that was used during the analysis part of this transformation. More... | |
Protected Member Functions | |
Point * | svmPredict (const Point *p, Point *result, const struct svm_model *model, const Region ®ion, DescriptorLengthType classLType, int classIdx, DescriptorLengthType classProbLType, int classProbIdx) const |
struct svm_model * | loadModel () const |
![]() | |
void | transferHistory (const DataSet *original, DataSet *destination) const |
This method tranfers the transformation history from the original dataset to the one being created, and adds itself at the end of the history. | |
void | addPointsNoLayoutCheck (DataSet *dataset, const QVector< Point * > &points) const |
Adds the given points to a DataSet without checking for the layout to be correct. More... | |
Protected Attributes | |
QStringList | _classMapping |
QString | _className |
QStringList | _descriptorNames |
QByteArray | _modelData |
bool | _probability |
struct svm_model * | _model |
int * | _cmap |
![]() | |
Transformation | _transfo |
SVMPredict applier class.
Predicts the class of a point using a given SVM model.