统计

顺序统计量

mars.tensor.amin

Return the minimum of a tensor or minimum along an axis.

mars.tensor.amax

Return the maximum of an array or maximum along an axis.

mars.tensor.nanmin

Return minimum of a tensor or minimum along an axis, ignoring any NaNs.

mars.tensor.nanmax

Return the maximum of an array or maximum along an axis, ignoring any NaNs.

mars.tensor.ptp

Range of values (maximum - minimum) along an axis.

均值和方差

mars.tensor.average

Compute the weighted average along the specified axis.

mars.tensor.mean

Compute the arithmetic mean along the specified axis.

mars.tensor.std

Compute the standard deviation along the specified axis.

mars.tensor.var

Compute the variance along the specified axis.

mars.tensor.nanmean

Compute the arithmetic mean along the specified axis, ignoring NaNs.

mars.tensor.nanstd

Compute the standard deviation along the specified axis, while ignoring NaNs.

mars.tensor.nanvar

Compute the variance along the specified axis, while ignoring NaNs.

相关性

mars.tensor.corrcoef

Return Pearson product-moment correlation coefficients.

mars.tensor.cov

Estimate a covariance matrix, given data and weights.

直方图

mars.tensor.histogram

Compute the histogram of a set of data.

mars.tensor.histogram_bin_edges

Function to calculate only the edges of the bins used by the histogram function.

mars.tensor.digitize

Return the indices of the bins to which each value in input tensor belongs.