tensorly.tenalg
.higher_order_moment¶
-
higher_order_moment
(tensor, order)[source]¶ Computes the Higher-Order Momemt
- Parameters
- tensor2D-tensor – or ND-tensor
matrix of size (n_samples, n_features) or tensor of size(n_samples, D1, …, DN)
- orderint
order of the higher-order moment to compute
- Returns
- tensormoment
if tensor is a matrix of size (n_samples, n_features), tensor of size (n_features, )*order