PLSSVM - Parallel Least Squares Support Vector Machine  2.0.0
A Least Squares Support Vector Machine implementation using different backends.
Public Member Functions | Public Attributes | List of all members
plssvm::detail::cmd::parser_scale Class Reference

Class for encapsulating all necessary parameters for scaling a data set; normally provided through command line arguments. More...

#include <parser_scale.hpp>

Public Member Functions

 parser_scale (int argc, char **argv)
 Parse the command line arguments argv using cxxopts and set the scale parameters accordingly. More...
 

Public Attributes

double lower { -1.0 }
 The lower bound of the scaled data values.
 
double upper { +1.0 }
 The upper bound of the scaled data values.
 
file_format_type format { file_format_type::libsvm }
 The file type (currently either LIBSVM or ARFF) to which the scaled data should be written to.
 
bool strings_as_labels { false }
 true if std::string should be used as label type instead of the default type ìnt.
 
bool float_as_real_type { false }
 true if float should be used as real type instead of the default type double.
 
std::string input_filename {}
 The name of the data file to scale.
 
std::string scaled_filename {}
 The name of the scaled data file to save.
 
std::string save_filename {}
 The name of the file where the scaling factors are saved.
 
std::string restore_filename {}
 The name of the file from which the scaling factors should be restored.
 
std::string performance_tracking_filename {}
 If performance tracking has been enabled, provides the name of the file where the performance tracking results are saved to. If the filename is empty, the results are dumped to stdout instead.
 

Detailed Description

Class for encapsulating all necessary parameters for scaling a data set; normally provided through command line arguments.

Constructor & Destructor Documentation

◆ parser_scale()

plssvm::detail::cmd::parser_scale::parser_scale ( int  argc,
char **  argv 
)

Parse the command line arguments argv using cxxopts and set the scale parameters accordingly.

If no scaled filename is given, the scaled data is directly output to the terminal (the default behavior of LIBSVM).

Parameters
[in]argcthe number of passed command line arguments
[in]argvthe command line arguments

The documentation for this class was generated from the following file: