Download.h File Reference
#include <shark/Core/DLLSupport.h>
#include <shark/Data/Dataset.h>
#include <shark/Data/SparseData.h>
#include <shark/Data/Csv.h>
#include <sstream>

Go to the source code of this file.

Namespaces

 shark
 AbstractMultiObjectiveOptimizer.
 

Functions

SHARK_EXPORT_SYMBOL std::pair< std::string, std::string > shark::splitUrl (std::string const &url)
 Split a URL into its domain and resource parts. More...
 
SHARK_EXPORT_SYMBOL std::string shark::download (std::string const &url, unsigned short port=80)
 Download a document with the HTTP protocol. More...
 
template<class InputType , class LabelType >
void shark::downloadSparseData (LabeledData< InputType, LabelType > &dataset, std::string const &url, unsigned short port=80, unsigned int highestIndex=0, std::size_t batchSize=LabeledData< RealVector, unsigned int >::DefaultBatchSize)
 Download and import a sparse data (libSVM) file. More...
 
template<class InputType , class LabelType >
void shark::downloadFromMLData (LabeledData< InputType, LabelType > &dataset, std::string const &name, std::size_t batchSize=LabeledData< RealVector, unsigned int >::DefaultBatchSize)
 Download a data set from mldata.org. More...
 
template<class InputType >
void shark::downloadCsvData (LabeledData< InputType, unsigned int > &dataset, std::string const &url, LabelPosition lp, char separator=',', char comment='#', unsigned short port=80, std::size_t maximumBatchSize=LabeledData< RealVector, RealVector >::DefaultBatchSize)
 Download and import a dense data (CSV) file for classification. More...
 
template<class InputType >
void shark::downloadCsvData (LabeledData< InputType, RealVector > &dataset, std::string const &url, LabelPosition lp, std::size_t numberOfOutputs=1, char separator=',', char comment='#', unsigned short port=80, std::size_t maximumBatchSize=LabeledData< RealVector, RealVector >::DefaultBatchSize)
 Download and import a dense data (CSV) file for regression. More...