smash.SampleResult.to_numpy#

SampleResult.to_numpy(axis=0)[source]#

Convert the SampleResult object to a numpy.ndarray.

The attribute arrays are stacked along a user-specified axis of the resulting array.

Parameters:
axisint, default 0

The axis along which the generated samples of each Model parameter/state will be joined.

Returns:
resnumpy.ndarray

The SampleResult object as a numpy.ndarray.