SampleFactory¶ class probly.representation.sample.SampleFactory(*args, **kwargs)[source]¶ Bases: Protocol, Generic Protocol for the creation of samples. __call__(samples: Iterable[T], /, *, sample_axis: SampleAxis = 'auto') → S[source]¶ Create a sample from the given predictions. Parameters: samples – The predictions to create the sample from. sample_axis – The dimension along which samples are organized. Returns: The created sample.