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