PLSSVM - Parallel Least Squares Support Vector Machine
2.0.0
A Least Squares Support Vector Machine implementation using different backends.
|
Class for encapsulating all necessary parameters for prediction; normally provided through command line arguments. More...
#include <parser_predict.hpp>
Public Member Functions | |
parser_predict (int argc, char **argv) | |
Parse the command line arguments argv using cxxopts and set the predict parameters accordingly. More... | |
Public Attributes | |
backend_type | backend { backend_type::automatic } |
The used backend: automatic (depending on the specified target_platforms), OpenMP, CUDA, HIP, OpenCL, or SYCL. | |
target_platform | target { target_platform::automatic } |
The target platform: automatic (depending on the used backend), CPUs or GPUs from NVIDIA, AMD, or Intel. | |
sycl::implementation_type | sycl_implementation_type { sycl::implementation_type::automatic } |
The SYCL implementation to use with --backend sycl : automatic (depending on the SYCL implementation defined during the CMake configuration), hipsycl, or dpcpp. | |
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 predict. | |
std::string | model_filename {} |
The name of the model file containing the support vectors and weights used for prediction. | |
std::string | predict_filename {} |
The name of the file to write the predicted labels to. | |
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. | |
Class for encapsulating all necessary parameters for prediction; normally provided through command line arguments.
plssvm::detail::cmd::parser_predict::parser_predict | ( | int | argc, |
char ** | argv | ||
) |
Parse the command line arguments argv
using cxxopts
and set the predict parameters accordingly.
If no output filename is given, uses the input filename and appends a ".predict". The output file is than saved in the current working directory.
[in] | argc | the number of passed command line arguments |
[in] | argv | the command line arguments |