PLSSVM - Parallel Least Squares Support Vector Machine  2.0.0
A Least Squares Support Vector Machine implementation using different backends.
Namespaces | Functions
arff_parsing.hpp File Reference

Implements parsing functions for the ARFF file format. More...

#include "plssvm/detail/io/file_reader.hpp"
#include "plssvm/detail/operators.hpp"
#include "plssvm/detail/string_conversion.hpp"
#include "plssvm/detail/string_utility.hpp"
#include "plssvm/detail/utility.hpp"
#include "plssvm/exceptions/exceptions.hpp"
#include "fmt/format.h"
#include "fmt/os.h"
#include <cstddef>
#include <exception>
#include <set>
#include <string>
#include <string_view>
#include <tuple>
#include <utility>
#include <vector>
This graph shows which files directly or indirectly include this file:

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 label_type >
std::tuple< std::size_t, std::size_t, std::set< label_type >, std::size_t > plssvm::detail::io::parse_arff_header (const std::vector< std::string_view > &lines)
 Parse the ARFF file header, i.e., determine the number of features, the length of the ARRF header, whether the data set is annotated with labels and at which position the label is written in the data set. 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_arff_data (const file_reader &reader)
 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_arff_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 ARFF file filename. More...
 
template<typename real_type , typename label_type >
void plssvm::detail::io::write_arff_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 ARFF file filename. More...
 
template<typename real_type >
void plssvm::detail::io::write_arff_data (const std::string &filename, const std::vector< std::vector< real_type >> &data)
 Write the provided data to the ARFF file filename. More...
 

Detailed Description

Implements parsing functions for the ARFF file format.

Author
Alexander Van Craen
Marcel Breyer
License
This file is part of the PLSSVM project which is released under the MIT license. See the LICENSE.md file in the project root for full license information.