create_sample

probly.representation.sample.create_sample = <flextype.singledispatch.Flexdispatch object>

Create a ListSample from a sequence of samples.

Parameters:
  • samples – The predictions to create the sample from.

  • weights – The (optional) weights for each sample.

  • sample_axis – The axis along which samples are organized.

  • kwargs – Parameters for sample creation.

Returns:

The created ListSample.

Examples using probly.representation.sample.create_sample

Plotting binary credal sets on an interval

Plotting binary credal sets on an interval

Plotting credal sets on the simplex

Plotting credal sets on the simplex

Plotting credal sets on a spider (radar) chart

Plotting credal sets on a spider (radar) chart

Convex credal set

Convex credal set

Discrete credal set

Discrete credal set

Working with samples

Working with samples

Second order: a sample of distributions

Second order: a sample of distributions