smash.Samples#

class smash.Samples(data=None)[source]#

Represents the generated samples result.

See also

smash.factory.generate_samples

Generate a multiple set of variables.

Notes

This class may have additional attributes not listed here depending on the specific names provided in the argument problem in the smash.factory.generate_samples method.

Attributes:
generatorstr

The generator used to generate the samples.

n_sampleint

The number of generated samples.

Methods

iterslice([by])

Iterate on the Samples object by slices.

slice(end[, start])

Slice the Samples object.

to_dataframe()

Convert the Samples object to a pandas.DataFrame.

to_numpy([axis])

Convert the Samples object to a numpy.ndarray.