SparseData.h File Reference
#include <shark/Core/DLLSupport.h>
#include <shark/Core/utility/KeyValuePair.h>
#include <shark/Data/Dataset.h>
#include <fstream>

Go to the source code of this file.

Namespaces

 shark
 AbstractMultiObjectiveOptimizer.
 

Functions

SHARK_EXPORT_SYMBOL void shark::importSparseData (LabeledData< RealVector, unsigned int > &dataset, std::istream &stream, unsigned int highestIndex=0, std::size_t batchSize=LabeledData< RealVector, unsigned int >::DefaultBatchSize)
 Import classification data from a sparse data (libSVM) file. More...
 
SHARK_EXPORT_SYMBOL void shark::importSparseData (LabeledData< RealVector, RealVector > &dataset, std::istream &stream, unsigned int highestIndex=0, std::size_t batchSize=LabeledData< RealVector, RealVector >::DefaultBatchSize)
 Import regression data from a sparse data (libSVM) file. More...
 
SHARK_EXPORT_SYMBOL void shark::importSparseData (LabeledData< CompressedRealVector, unsigned int > &dataset, std::istream &stream, unsigned int highestIndex=0, std::size_t batchSize=LabeledData< RealVector, unsigned int >::DefaultBatchSize)
 Import classification data from a sparse data (libSVM) file. More...
 
SHARK_EXPORT_SYMBOL void shark::importSparseData (LabeledData< CompressedRealVector, RealVector > &dataset, std::istream &stream, unsigned int highestIndex=0, std::size_t batchSize=LabeledData< RealVector, RealVector >::DefaultBatchSize)
 Import regression data from a sparse data (libSVM) file. More...
 
SHARK_EXPORT_SYMBOL void shark::importSparseData (LabeledData< RealVector, unsigned int > &dataset, std::string fn, unsigned int highestIndex=0, std::size_t batchSize=LabeledData< RealVector, unsigned int >::DefaultBatchSize)
 Import classification data from a sparse data (libSVM) file. More...
 
SHARK_EXPORT_SYMBOL void shark::importSparseData (LabeledData< RealVector, RealVector > &dataset, std::string fn, unsigned int highestIndex=0, std::size_t batchSize=LabeledData< RealVector, RealVector >::DefaultBatchSize)
 Import regression data from a sparse data (libSVM) file. More...
 
SHARK_EXPORT_SYMBOL void shark::importSparseData (LabeledData< CompressedRealVector, unsigned int > &dataset, std::string fn, unsigned int highestIndex=0, std::size_t batchSize=LabeledData< RealVector, unsigned int >::DefaultBatchSize)
 Import classification data from a sparse data (libSVM) file. More...
 
SHARK_EXPORT_SYMBOL void shark::importSparseData (LabeledData< CompressedRealVector, RealVector > &dataset, std::string fn, unsigned int highestIndex=0, std::size_t batchSize=LabeledData< RealVector, RealVector >::DefaultBatchSize)
 Import regression data from a sparse data (libSVM) file. More...
 
template<typename InputType >
void shark::exportSparseData (LabeledData< InputType, unsigned int > const &dataset, std::ostream &stream, bool oneMinusOne=true, bool sortLabels=false)
 Export classification data to sparse data (libSVM) format. More...
 
template<typename InputType >
void shark::exportSparseData (LabeledData< InputType, unsigned int > const &dataset, const std::string &fn, bool oneMinusOne=true, bool sortLabels=false, bool append=false)
 Export classification data to sparse data (libSVM) format. More...
 
template<typename InputType >
void shark::exportSparseData (LabeledData< InputType, RealVector > const &dataset, std::ostream &stream)
 Export regression data to sparse data (libSVM) format. More...
 
template<typename InputType >
void shark::exportSparseData (LabeledData< InputType, RealVector > const &dataset, const std::string &fn, bool append=false)
 Export regression data to sparse data (libSVM) format. More...