def inverse_transform(self, X):
"""Undo the scaling of X according to feature_range.
Parameters
----------
X : array-like with shape [n_samples, n_features]
Input data that will be transformed.
"""
check_is_fitted(self, 'scale_')
X = check_array(X, copy=self.copy, accept_sparse="csc", ensure_2d=False)
X -= self.min_
X /= self.scale_
return X
MinMaxScaler.py 文件源码
python
阅读 22
收藏 0
点赞 0
评论 0
评论列表
文章目录