PLSSVM - Parallel Least Squares Support Vector Machine  2.0.0
A Least Squares Support Vector Machine implementation using different backends.
parser_predict.hpp
Go to the documentation of this file.
1 
12 #ifndef PLSSVM_DETAIL_CMD_PARSER_PREDICT_HPP_
13 #define PLSSVM_DETAIL_CMD_PARSER_PREDICT_HPP_
14 #pragma once
15 
16 #include "plssvm/backend_types.hpp" // plssvm::backend_type
17 #include "plssvm/backends/SYCL/implementation_type.hpp" // plssvm::sycl::implementation_type
18 #include "plssvm/target_platforms.hpp" // plssvm::target_platform
19 
20 #include <iosfwd> // forward declare std::ostream
21 #include <string> // std::string
22 
23 namespace plssvm::detail::cmd {
24 
29  public:
36  parser_predict(int argc, char **argv);
37 
42 
45 
47  bool strings_as_labels{ false };
49  bool float_as_real_type{ false };
50 
52  std::string input_filename{};
54  std::string model_filename{};
56  std::string predict_filename{};
57 
60 };
61 
68 std::ostream &operator<<(std::ostream &out, const parser_predict &params);
69 
70 } // namespace plssvm::detail::cmd
71 
72 #endif // PLSSVM_DETAIL_CMD_PARSER_PREDICT_HPP_
Defines an enumeration holding all possible backends. Can also include backends not available on the ...
Class for encapsulating all necessary parameters for prediction; normally provided through command li...
Definition: parser_predict.hpp:28
sycl::implementation_type sycl_implementation_type
The SYCL implementation to use with --backend sycl: automatic (depending on the SYCL implementation d...
Definition: parser_predict.hpp:44
std::string model_filename
The name of the model file containing the support vectors and weights used for prediction.
Definition: parser_predict.hpp:54
bool strings_as_labels
true if std::string should be used as label type instead of the default type ìnt.
Definition: parser_predict.hpp:47
std::string performance_tracking_filename
If performance tracking has been enabled, provides the name of the file where the performance trackin...
Definition: parser_predict.hpp:59
std::string input_filename
The name of the data file to predict.
Definition: parser_predict.hpp:52
backend_type backend
The used backend: automatic (depending on the specified target_platforms), OpenMP,...
Definition: parser_predict.hpp:39
bool float_as_real_type
true if float should be used as real type instead of the default type double.
Definition: parser_predict.hpp:49
std::string predict_filename
The name of the file to write the predicted labels to.
Definition: parser_predict.hpp:56
parser_predict(int argc, char **argv)
Parse the command line arguments argv using cxxopts and set the predict parameters accordingly.
target_platform target
The target platform: automatic (depending on the used backend), CPUs or GPUs from NVIDIA,...
Definition: parser_predict.hpp:41
Defines an enumeration holding all possible SYCL implementations.
Namespace containing implementation details for the command line interface functionality....
Definition: core.hpp:46
std::ostream & operator<<(std::ostream &out, const parser_predict &params)
Output all predict parameters encapsulated by params to the given output-stream out.
implementation_type
Enum class for all possible SYCL implementation types.
Definition: implementation_type.hpp:24
target_platform
Enum class for all possible targets.
Definition: target_platforms.hpp:25
backend_type
Enum class for all possible backend types.
Definition: backend_types.hpp:30
Defines an enumeration holding all possible target platforms. Can also include targets not available ...