sklearn.utils.sparsefuncs.incr_mean_variance_axis(X, axis, last_mean, last_var, last_n)
[source]
Compute incremental mean and variance along an axix on a CSR or CSC matrix.
last_mean, last_var are the statistics computed at the last step by this function. Both must be initialized to 0arrays of the proper size, i.e. the number of features in X. last_n is the number of samples encountered until now.
Parameters: 


Returns: 

NaNs are ignored in the algorithm.
© 2007–2018 The scikitlearn developers
Licensed under the 3clause BSD License.
http://scikitlearn.org/stable/modules/generated/sklearn.utils.sparsefuncs.incr_mean_variance_axis.html