IterableSampler¶
- class probly.representer.sampler.IterableSampler(predictor: IterablePredictor[In, Out], sample_factory: SampleFactory[Out, S] = <flextype.singledispatch.Flexdispatch object>, sample_axis: int = -1)[source]¶
Bases:
Representer[Any,In,Out,S],Generic[In,Out,S]A sampler that creates representations from ensemble predictions.
Initialize the ensemble sampler.
- Parameters:
predictor – The ensemble predictor.
sample_factory – Factory to create the sample.
sample_axis – The axis along which samples are organized.
- predict(*args: In.args, **kwargs: In.kwargs) R[source]¶
Predict the representation for a given input.
- represent(*args: In.args, **kwargs: In.kwargs) S[source]¶
Sample from the ensemble predictor for a given input.
- sample_factory: SampleFactory¶