SG++
sgpp::datadriven::ARFFTools Class Reference

Class that provides functionality to read ARFF files. More...

#include <ARFFTools.hpp>

Static Public Member Functions

static Dataset readARFF (const std::string &filename)
 Reads an ARFF file. More...
 
static Dataset readARFFFromString (const std::string &content)
 
static void readARFFSize (const std::string &filename, size_t &numberInstances, size_t &dimension)
 Reads the size of an ARFF file. More...
 
static void readARFFSizeFromString (const std::string &content, size_t &numberInstances, size_t &dimension)
 

Detailed Description

Class that provides functionality to read ARFF files.

Member Function Documentation

Dataset sgpp::datadriven::ARFFTools::readARFF ( const std::string &  filename)
static

Reads an ARFF file.

Parameters
filenamefilename of the file to be read
Returns
ARFF as Dataset

References dataset, sgpp::datadriven::Dataset::getData(), sgpp::datadriven::Dataset::getTargets(), and readARFFSize().

Referenced by hpx_main(), main(), and sgpp::datadriven::ArffFileSampleProvider::readFile().

void sgpp::datadriven::ARFFTools::readARFFSize ( const std::string &  filename,
size_t &  numberInstances,
size_t &  dimension 
)
static

Reads the size of an ARFF file.

Parameters
filenamefilename of the file to be read
[out]numberInstancesnumber of instances in the dataset
[out]dimensionnumber of dimensions in the dataset

Referenced by readARFF().

void sgpp::datadriven::ARFFTools::readARFFSizeFromString ( const std::string &  content,
size_t &  numberInstances,
size_t &  dimension 
)
static

Referenced by readARFFFromString().


The documentation for this class was generated from the following files: