# 需要导入模块: from sklearn.utils import sparsefuncs [as 别名]# 或者: from sklearn.utils.sparsefuncs importmean_variance_axis[as 别名]def_tolerance(X, rtol):"""Compute absolute tolerance from the relative tolerance"""ifrtol ==0.0:returnrtolifsp.issparse(X): variances =mean_variance_axis...