File output_sampling_without_replacement.hpp

class IOutputSamplingWithoutReplacementConfig
#include <output_sampling_without_replacement.hpp>

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

Subclassed by OutputSamplingWithoutReplacementConfig

Public Functions

inline virtual ~IOutputSamplingWithoutReplacementConfig()
virtual uint32 getNumSamples() const = 0

Returns the number of outputs that are included in a sample.

Returns:

The number of outputs that are included in a sample

virtual IOutputSamplingWithoutReplacementConfig &setNumSamples(uint32 numSamples) = 0

Sets the number of outputs that should be included in a sample.

Parameters:

numSamples – The number of outputs that should be included in a sample. Must be at least 1

Returns:

A reference to an object of type IOutputSamplingWithoutReplacementConfig that allows further configuration of the sampling method

class OutputSamplingWithoutReplacementConfig : public IOutputSamplingConfig, public IOutputSamplingWithoutReplacementConfig
#include <output_sampling_without_replacement.hpp>

Allows to configure a method for sampling outputs without replacement.

Public Functions

OutputSamplingWithoutReplacementConfig()
virtual uint32 getNumSamples() const override

Returns the number of outputs that are included in a sample.

Returns:

The number of outputs that are included in a sample

virtual IOutputSamplingWithoutReplacementConfig &setNumSamples(uint32 numSamples) override

Sets the number of outputs that should be included in a sample.

Parameters:

numSamples – The number of outputs that should be included in a sample. Must be at least 1

Returns:

A reference to an object of type IOutputSamplingWithoutReplacementConfig that allows further configuration of the sampling method

virtual std::unique_ptr<IOutputSamplingFactory> createOutputSamplingFactory(const IOutputMatrix &outputMatrix) const override

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

Private Members

uint32 numSamples_