mlrl.common.cython.output_sampling module¶
@author: Michael Rapp (michael.rapp.ml@gmail.com)
- class mlrl.common.cython.output_sampling.OutputSamplingWithoutReplacementConfig¶
Bases:
objectAllows to configure a method for sampling outputs without replacement.
- get_num_samples() int¶
Returns the number of outputs that are included in a sample.
- Returns:
The number of outputs that are included in a sample
- set_num_samples(num_samples: int) OutputSamplingWithoutReplacementConfig¶
Sets the number of outputs that should be included in a sample.
- Parameters:
num_samples – The number of outputs that should be included in a sample. Must be at least 1
- Returns:
An OutputSamplingWithoutReplacementConfig that allows further configuration of the sampling method