File output_sampling.hpp

class IOutputSampling
#include <output_sampling.hpp>

Defines an interface for all classes that implement a method for sampling outputs.

Public Functions

inline virtual ~IOutputSampling()
virtual const IIndexVector &sample() = 0

Creates and returns a sample of the available outputs.

Returns:

A reference to an object of type IIndexVector that provides access to the indices of the outputs that are contained in the sample

class IOutputSamplingFactory
#include <output_sampling.hpp>

Defines an interface for all factories that allow to create objects of type IOutputSampling.

Public Functions

inline virtual ~IOutputSamplingFactory()
virtual std::unique_ptr<IOutputSampling> create() const = 0

Creates and returns a new object of type IOutputSampling.

Returns:

An unique pointer to an object of type IOutputSampling that has been created

class IOutputSamplingConfig
#include <output_sampling.hpp>

Defines an interface for all classes that allow to configure a method for sampling outputs.

Subclassed by NoOutputSamplingConfig, OutputSamplingWithoutReplacementConfig, RoundRobinOutputSamplingConfig

Public Functions

inline virtual ~IOutputSamplingConfig()
virtual std::unique_ptr<IOutputSamplingFactory> createOutputSamplingFactory(const IOutputMatrix &outputMatrix) const = 0

Creates and returns a new object of type IOutputSamplingFactory according to the specified configuration.

Parameters:

outputMatrix – A reference to an object of type IOutputMatrix that provides access to the ground truth of the training examples

Returns:

An unique pointer to an object of type IOutputSamplingFactory that has been created