WeightedDataset.h File Reference

Go to the source code of this file.

Classes

struct  shark::WeightedDataPair< DataType, WeightType >
 Input-Label pair of data. More...
 
struct  shark::WeightedDataBatch< DataBatchType, WeightBatchType >
 
struct  shark::Batch< WeightedDataPair< DataType, WeightType > >
 
struct  shark::BatchTraits< WeightedDataBatch< DataType, WeightType > >
 
class  shark::WeightedUnlabeledData< DataT >
 Weighted data set for unsupervised learning. More...
 
class  shark::WeightedLabeledData< InputT, LabelT >
 Weighted data set for supervised learning. More...
 

Namespaces

 shark
 AbstractMultiObjectiveOptimizer.
 

Functions

template<class D1 , class W1 , class D2 , class W2 >
void shark::swap (WeightedDataPair< D1, W1 > &&p1, WeightedDataPair< D2, W2 > &&p2)
 
template<class D1 , class W1 , class D2 , class W2 >
void shark::swap (WeightedDataBatch< D1, W1 > &p1, WeightedDataBatch< D2, W2 > &p2)
 
template<class T >
std::ostream & shark::operator<< (std::ostream &stream, const WeightedUnlabeledData< T > &d)
 brief Outstream of elements for weighted data. More...
 
template<class DataRange , class WeightRange >
boost::disable_if< boost::is_arithmetic< WeightRange >, WeightedUnlabeledData< typename boost::range_value< DataRange >::type > >::type shark::createUnlabeledDataFromRange (DataRange const &data, WeightRange const &weights, std::size_t batchSize=0)
 creates a weighted unweighted data object from two ranges, representing data and weights More...
 
template<class T , class U >
std::ostream & shark::operator<< (std::ostream &stream, const WeightedLabeledData< T, U > &d)
 brief Outstream of elements for weighted labeled data. More...
 
std::size_t shark::numberOfClasses (WeightedUnlabeledData< unsigned int > const &labels)
 
std::vector< std::size_t > shark::classSizes (WeightedUnlabeledData< unsigned int > const &labels)
 Returns the number of members of each class in the dataset. More...
 
template<class InputType >
std::size_t shark::dataDimension (WeightedUnlabeledData< InputType > const &dataset)
 Return the dimnsionality of points of a weighted dataset. More...
 
template<class InputType , class LabelType >
std::size_t shark::inputDimension (WeightedLabeledData< InputType, LabelType > const &dataset)
 Return the input dimensionality of a weighted labeled dataset. More...
 
template<class InputType , class LabelType >
std::size_t shark::labelDimension (WeightedLabeledData< InputType, LabelType > const &dataset)
 Return the label/output dimensionality of a labeled dataset. More...
 
template<class InputType >
std::size_t shark::numberOfClasses (WeightedLabeledData< InputType, unsigned int > const &dataset)
 Return the number of classes (highest label value +1) of a classification dataset with unsigned int label encoding. More...
 
template<class InputType , class LabelType >
std::vector< std::size_t > shark::classSizes (WeightedLabeledData< InputType, LabelType > const &dataset)
 Returns the number of members of each class in the dataset. More...
 
template<class InputType >
double shark::sumOfWeights (WeightedUnlabeledData< InputType > const &dataset)
 Returns the total sum of weights. More...
 
template<class InputType , class LabelType >
double shark::sumOfWeights (WeightedLabeledData< InputType, LabelType > const &dataset)
 Returns the total sum of weights. More...
 
template<class InputType >
RealVector shark::classWeight (WeightedLabeledData< InputType, unsigned int > const &dataset)
 Computes the cumulative weight of every class. More...
 
template<class InputRange , class LabelRange , class WeightRange >
boost::disable_if< boost::is_arithmetic< WeightRange >, WeightedLabeledData< typename boost::range_value< InputRange >::type, typename boost::range_value< LabelRange >::type >>::type shark::createLabeledDataFromRange (InputRange const &inputs, LabelRange const &labels, WeightRange const &weights, std::size_t batchSize=0)
 creates a weighted unweighted data object from two ranges, representing data and weights More...
 
template<class InputType , class LabelType >
WeightedLabeledData< InputType, LabelType > shark::bootstrap (LabeledData< InputType, LabelType > const &dataset, std::size_t bootStrapSize=0)
 Creates a bootstrap partition of a labeled dataset and returns it using weighting. More...
 
template<class InputType >
WeightedUnlabeledData< InputTypeshark::bootstrap (UnlabeledData< InputType > const &dataset, std::size_t bootStrapSize=0)
 Creates a bootstrap partition of an unlabeled dataset and returns it using weighting. More...