![]() |
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 file format. More...
#include "plssvm/detail/assert.hpp"#include "plssvm/detail/io/file_reader.hpp"#include "plssvm/detail/string_conversion.hpp"#include "plssvm/detail/utility.hpp"#include "plssvm/exceptions/exceptions.hpp"#include "fmt/compile.h"#include "fmt/format.h"#include "fmt/os.h"#include <algorithm>#include <cstddef>#include <exception>#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 | |
| std::size_t | plssvm::detail::io::parse_libsvm_num_features (const std::vector< std::string_view > &lines, const std::size_t skipped_lines=0) |
Parse the maximum number of features per data point given in lines, where the first skipped_lines are skipped. More... | |
| template<typename real_type , typename label_type > | |
| std::tuple< std::size_t, std::size_t, std::vector< std::vector< real_type > >, std::vector< label_type > > | plssvm::detail::io::parse_libsvm_data (const file_reader &reader, const std::size_t skipped_lines=0) |
Parse all data points and potential label using the file reader, ignoring all empty lines and lines starting with an #. If no labels are found, returns an empty vector. More... | |
| template<typename real_type , typename label_type , bool has_label> | |
| void | plssvm::detail::io::write_libsvm_data_impl (const std::string &filename, const std::vector< std::vector< real_type >> &data, const std::vector< label_type > &label) |
Write the provided data and labels to the LIBSVM file filename. More... | |
| template<typename real_type , typename label_type > | |
| void | plssvm::detail::io::write_libsvm_data (const std::string &filename, const std::vector< std::vector< real_type >> &data, const std::vector< label_type > &label) |
Write the provided data and labels to the LIBSVM file filename. More... | |
| template<typename real_type > | |
| void | plssvm::detail::io::write_libsvm_data (const std::string &filename, const std::vector< std::vector< real_type >> &data) |
Write the provided data to the LIBSVM file filename. More... | |
Implements parsing functions for the LIBSVM file format.