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
IIndexVectorthat provides access to the indices of the outputs that are contained in the sample
-
inline virtual ~IOutputSampling()¶
-
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
IOutputSamplingthat has been created
-
inline virtual ~IOutputSamplingFactory()¶
-
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
IOutputSamplingFactoryaccording to the specified configuration.- Parameters:
outputMatrix – A reference to an object of type
IOutputMatrixthat provides access to the ground truth of the training examples- Returns:
An unique pointer to an object of type
IOutputSamplingFactorythat has been created
-
inline virtual ~IOutputSamplingConfig()¶