File partition_sampling_bi_stratified_example_wise.hpp¶
-
class IExampleWiseStratifiedBiPartitionSamplingConfig¶
- #include <partition_sampling_bi_stratified_example_wise.hpp>
Defines an interface for all classes that allow to configure a method for partitioning the available training examples into a training set and a holdout set using stratification, where distinct label vectors are treated as individual classes.
Subclassed by ExampleWiseStratifiedBiPartitionSamplingConfig
Public Functions
-
inline virtual ~IExampleWiseStratifiedBiPartitionSamplingConfig()¶
-
virtual float32 getHoldoutSetSize() const = 0¶
Returns the fraction of examples that are included in the holdout set.
- Returns:
The fraction of examples that are included in the holdout set
-
virtual IExampleWiseStratifiedBiPartitionSamplingConfig &setHoldoutSetSize(float32 holdoutSetSize) = 0¶
Sets the fraction of examples that should be included in the holdout set.
- Parameters:
holdoutSetSize – The fraction of examples that should be included in the holdout set, e.g. a value of 0.6 corresponds to 60 % of the available examples. Must be in (0, 1)
- Returns:
A reference to an object of type
IExampleWiseStratifiedBiPartitionSamplingConfig
that allows further configuration of the method for partitioning the available training examples into a training set and a holdout set
-
inline virtual ~IExampleWiseStratifiedBiPartitionSamplingConfig()¶
-
class ExampleWiseStratifiedBiPartitionSamplingConfig : public IPartitionSamplingConfig, public IExampleWiseStratifiedBiPartitionSamplingConfig¶
- #include <partition_sampling_bi_stratified_example_wise.hpp>
Allows to configure a method for partitioning the available training examples into a training set and a holdout set using stratification, where distinct label vectors are treated as individual classes.
Public Functions
-
ExampleWiseStratifiedBiPartitionSamplingConfig()¶
-
virtual float32 getHoldoutSetSize() const override¶
Returns the fraction of examples that are included in the holdout set.
- Returns:
The fraction of examples that are included in the holdout set
-
virtual IExampleWiseStratifiedBiPartitionSamplingConfig &setHoldoutSetSize(float32 holdoutSetSize) override¶
Sets the fraction of examples that should be included in the holdout set.
- Parameters:
holdoutSetSize – The fraction of examples that should be included in the holdout set, e.g. a value of 0.6 corresponds to 60 % of the available examples. Must be in (0, 1)
- Returns:
A reference to an object of type
IExampleWiseStratifiedBiPartitionSamplingConfig
that allows further configuration of the method for partitioning the available training examples into a training set and a holdout set
-
virtual std::unique_ptr<IPartitionSamplingFactory> createPartitionSamplingFactory() const override¶
Creates and returns a new object of type
IPartitionSamplingFactory
according to the specified configuration.- Returns:
An unique pointer to an object of type
IPartitionSamplingFactory
that has been created
-
ExampleWiseStratifiedBiPartitionSamplingConfig()¶