ArraySummary#
- class treescope.ndarray_adapters.ArraySummary[source]#
Bases:
objectSummary of the contents of an array.
Any of the attributes of this summary can be None to indicate that the corresponding statistic is not applicable to the array (either because of dtype or because there are no finite values).
- Variables:
finite_mean (float | None) – The mean of the finite values in the array.
finite_stddev (float | None) – The standard deviation of the finite values in the array.
finite_min (float | None) – The minimum of the finite values in the array.
finite_max (float | None) – The maximum of the finite values in the array.
count_zero (int | None) – The number of zero values in the array.
count_nonzero (float | None) – The number of nonzero values in the array.
count_nan (float | None) – The number of NaN values in the array.
count_posinf (float | None) – The number of positive infinity values in the array.
count_neginf (float | None) – The number of negative infinity values in the array.
Methods
__init__(finite_mean, finite_stddev, ...)Attributes
finite_meanfinite_stddevfinite_minfinite_maxcount_zerocount_nonzerocount_nancount_posinfcount_neginf