![]() |
MeLOn
|
Class defining support vector machine for one class classification to be used in the MAiNGO solver. More...
#include <svm.h>
Private Member Functions | |
T | _decision_function (std::vector< T > input) override |
Decision function for one class support vector machine. More... | |
Additional Inherited Members | |
![]() | |
SupportVectorMachine () | |
Default Constructor. More... | |
SupportVectorMachine (std::string modelName) | |
Constructor. More... | |
SupportVectorMachine (std::string modelPath, std::string modelName) | |
Constructor. More... | |
SupportVectorMachine (std::shared_ptr< const SvmData > modelData) | |
Constructor. More... | |
void | get_fullspace_variables (size_t &variableNumber, std::vector< std::string > &variableNames, std::vector< std::pair< double, double >> &variableBounds) |
Creates variables for the full space formulation in MAiNGO. More... | |
T | calculate_prediction_full_space (std::vector< T > input, std::vector< T > internalVariables, std::vector< T > &constraints) |
Calculates prediction based on inputs and set constraints for fullspace formulation. More... | |
T | calculate_prediction_reduced_space (std::vector< T > input) |
Calculates prediction based on inputs in reduced space. More... | |
size_t | get_number_of_full_space_variables () |
Calculates the number of full space variables. More... | |
![]() | |
virtual | ~MelonModel ()=default |
Default destructor. More... | |
void | load_model (std::string modelName, MODEL_FILE_TYPE fileType) |
Loads new model from file. More... | |
void | load_model (std::string modelPath, std::string modelName, MODEL_FILE_TYPE fileType) |
Loads new model from file. More... | |
void | load_model (std::shared_ptr< const ModelData > modelData) |
Loads new model from file. More... | |
![]() | |
void | _set_data_object (std::shared_ptr< const ModelData > modelData) override |
Sets data object containing model parameters. More... | |
T | _calculate_prediction (std::vector< T > input, std::vector< T > internalVariables, const bool fullSpace, std::vector< T > &constraints) |
Calculates prediction. More... | |
void | _update_kernel () |
Loads kernel according to loaded internal parameters. More... | |
![]() | |
MelonModel (std::shared_ptr< ModelParserFactory > parserFactory) | |
Constructor. More... | |
template<typename RandomAccessIterator > | |
void | _set_constraints (std::vector< T > &constraints, std::vector< T > &constraintEvaluation, RandomAccessIterator &constraintValue) |
Sets constraints required for fullspace opimization. More... | |
template<typename RandomAccessIterator > | |
void | _set_constraints (std::vector< T > &constraints, T &constraintEvaluation, RandomAccessIterator &constraintValue) |
Sets constraints required for fullspace opimization. More... | |
![]() | |
std::shared_ptr< const SvmData > | _data |
std::unique_ptr< kernel::StationaryKernel< double, T > > | _kernel |
std::unique_ptr< Scaler< T > > | _inputScaler |
std::unique_ptr< Scaler< T > > | _outputScaler |
![]() | |
bool | _modelLoaded { false } |
std::shared_ptr< ModelParserFactory > | _parserFactory |
Class defining support vector machine for one class classification to be used in the MAiNGO solver.
|
overrideprivatevirtual |
Decision function for one class support vector machine.
[in] | input | is a vector containing the kernel evaluations for the the support vectors with the input. |
Implements melon::SupportVectorMachine< T >.