DataView.h File Reference
#include <shark/Data/Dataset.h>
#include <shark/Core/utility/functional.h>
#include <numeric>

Go to the source code of this file.

Classes

class  shark::DataView< DatasetType >
 Constant time Element-Lookup for Datasets. More...
 

Namespaces

 shark
 AbstractMultiObjectiveOptimizer.
 

Functions

template<class DatasetType , class IndexRange >
DataView< DatasetType > shark::subset (DataView< DatasetType > const &view, IndexRange const &indizes)
 creates a subset of a DataView with elements indexed by indices More...
 
template<class DatasetType >
DataView< DatasetType > shark::randomSubset (DataView< DatasetType > const &view, std::size_t size)
 creates a random subset of a DataView with given size More...
 
template<class DatasetType , class IndexRange >
DataView< DatasetType >::batch_type shark::subBatch (DataView< DatasetType > const &view, IndexRange const &indizes)
 Creates a batch given a set of indices. More...
 
template<class DatasetType >
DataView< DatasetType >::batch_type shark::randomSubBatch (DataView< DatasetType > const &view, std::size_t size)
 Creates a random batch of a given size. More...
 
template<class DatasetType >
DataView< DatasetType > shark::toView (DatasetType &set)
 Creates a View from a dataset. More...
 
template<class T >
DataView< T >::dataset_type shark::toDataset (DataView< T > const &view, std::size_t batchSize=DataView< T >::dataset_type::DefaultBatchSize)
 Creates a new dataset from a View. More...
 
template<class DatasetType >
std::size_t shark::numberOfClasses (DataView< DatasetType > const &view)
 
template<class DatasetType >
std::size_t shark::inputDimension (DataView< DatasetType > const &view)
 Return the input dimensionality of the labeled dataset represented by the view. More...
 
template<class DatasetType >
std::size_t shark::labelDimension (DataView< DatasetType > const &view)
 Return the label dimensionality of the labeled dataset represented by the view. More...
 
template<class DatasetType >
std::size_t shark::dataDimension (DataView< DatasetType > const &view)
 Return the dimensionality of the dataset represented by the view. More...