PLSSVM - Parallel Least Squares Support Vector Machine
2.0.0
A Least Squares Support Vector Machine implementation using different backends.
|
Implements parsing functions for the LIBSVM model file. More...
#include "plssvm/data_set.hpp"
#include "plssvm/detail/assert.hpp"
#include "plssvm/detail/logger.hpp"
#include "plssvm/detail/utility.hpp"
#include "plssvm/parameter.hpp"
#include "fmt/compile.h"
#include "fmt/format.h"
#include "fmt/os.h"
#include <algorithm>
#include <cstddef>
#include <map>
#include <memory>
#include <numeric>
#include <set>
#include <sstream>
#include <string>
#include <string_view>
#include <tuple>
#include <utility>
#include <vector>
Go to the source code of this file.
Namespaces | |
plssvm | |
The main namespace containing all public API functions. | |
plssvm::detail | |
Namespace containing implementation details. Should not directly be used by users. | |
plssvm::detail::io | |
Namespace containing implementation details for the IO related functions. Should not directly be used by users. | |
Functions | |
template<typename real_type , typename label_type , typename size_type > | |
std::tuple< plssvm::parameter, real_type, std::vector< label_type >, std::size_t > | plssvm::detail::io::parse_libsvm_model_header (const std::vector< std::string_view > &lines) |
Parse the LIBSVM model file header. More... | |
template<typename real_type , typename label_type > | |
std::vector< label_type > | plssvm::detail::io::write_libsvm_model_header (fmt::ostream &out, const plssvm::parameter ¶ms, const real_type rho, const data_set< real_type, label_type > &data) |
Write the LIBSVM model file header to out . More... | |
template<typename real_type , typename label_type > | |
void | plssvm::detail::io::write_libsvm_model_data (const std::string &filename, const plssvm::parameter ¶ms, const real_type rho, const std::vector< real_type > &alpha, const data_set< real_type, label_type > &data) |
Write the LIBSVM model to the file filename . More... | |
Implements parsing functions for the LIBSVM model file.