欧美三区_成人在线免费观看视频_欧美极品少妇xxxxⅹ免费视频_a级毛片免费播放_鲁一鲁中文字幕久久_亚洲一级特黄

python

系統 1900 0

MinMaxScaler.fit_transform()

            
              Init signature: MinMaxScaler(feature_range=(0, 1), copy=True)
Docstring:     
Transforms features by scaling each feature to a given range.

This estimator scales and translates each feature individually such
that it is in the given range on the training set, e.g. between
zero and one.

The transformation is given by::

    X_std = (X - X.min(axis=0)) / (X.max(axis=0) - X.min(axis=0))
    X_scaled = X_std * (max - min) + min

where min, max = feature_range.

The transformation is calculated as::

    X_scaled = scale * X + min - X.min(axis=0) * scale
    where scale = (max - min) / (X.max(axis=0) - X.min(axis=0))

This transformation is often used as an alternative to zero mean,
unit variance scaling.

Read more in the :ref:`User Guide 
              
                `.

Parameters
----------
feature_range : tuple (min, max), default=(0, 1)
    Desired range of transformed data.

copy : boolean, optional, default True
    Set to False to perform inplace row normalization and avoid a
    copy (if the input is already a numpy array).

Attributes
----------
min_ : ndarray, shape (n_features,)
    Per feature adjustment for minimum. Equivalent to
    ``min - X.min(axis=0) * self.scale_``

scale_ : ndarray, shape (n_features,)
    Per feature relative scaling of the data. Equivalent to
    ``(max - min) / (X.max(axis=0) - X.min(axis=0))``

    .. versionadded:: 0.17
       *scale_* attribute.

data_min_ : ndarray, shape (n_features,)
    Per feature minimum seen in the data

    .. versionadded:: 0.17
       *data_min_*

data_max_ : ndarray, shape (n_features,)
    Per feature maximum seen in the data

    .. versionadded:: 0.17
       *data_max_*

data_range_ : ndarray, shape (n_features,)
    Per feature range ``(data_max_ - data_min_)`` seen in the data

    .. versionadded:: 0.17
       *data_range_*

Examples
--------
>>> from sklearn.preprocessing import MinMaxScaler
>>> data = [[-1, 2], [-0.5, 6], [0, 10], [1, 18]]
>>> scaler = MinMaxScaler()
>>> print(scaler.fit(data))
MinMaxScaler(copy=True, feature_range=(0, 1))
>>> print(scaler.data_max_)
[ 1. 18.]
>>> print(scaler.transform(data))
[[0.   0.  ]
 [0.25 0.25]
 [0.5  0.5 ]
 [1.   1.  ]]
>>> print(scaler.transform([[2, 2]]))
[[1.5 0. ]]

See also
--------
minmax_scale: Equivalent function without the estimator API.

Notes
-----
NaNs are treated as missing values: disregarded in fit, and maintained in
transform.

For a comparison of the different scalers, transformers, and normalizers,
see :ref:`examples/preprocessing/plot_all_scaling.py

                
                  `.
File:           c:\users\huawei\appdata\local\programs\python\python36\lib\site-packages\sklearn\preprocessing\data.py
Type:           type
Subclasses:     

                
              
            
          

參考文章: 有關StandardScaler的transform和fit_transform方法
https://www.jianshu.com/p/2a635d9e894d


更多文章、技術交流、商務合作、聯系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號聯系: 360901061

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對您有幫助就好】

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長會非常 感謝您的哦!!!

發表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 天天影视插插插 | 男人的午夜影院 | 欧美一级精品 | 香蕉国产人午夜视频在线观看 | 男女啪啪免费视频 | 免费观看性欧美大片无片 | 91白丝制服被啪到喷水在线 | 国产高清精品在线 | 免费国产精品视频在线 | 国产成人精品一区二区三区四区 | 国产成人精品在线观看 | 久久99久久99精品免观看不卡 | 欧美精品观看 | 精品视频免费观看 | 日本三级一区 | 国产成人18黄网站免费网站 | 黄色片特级 | 99热这里只有免费国产精品 | 超级碰在线视频 | 丁香婷婷久久久综合精品国产 | 国产亚洲福利 | 哥斯拉大战金刚2在线观看免费完整版 | 久草在线草a免费线看 | 黄色片免费在线 | 日本黄色视 | 日韩日b视频 | 在线播放国产一区二区三区 | 欧美午夜在线 | 国产福利不卡一区二区三区 | 国产视频三区 | 麻豆专区一区二区三区四区五区 | 黑人操亚洲人 | 亚洲无线 | 在线a人片免费观看国产 | 午夜精品在线播放 | av天天看 | 国产色网 | 亚洲欧洲精品成人久久奇米网 | 最新久久免费视频 | 日韩精品一区在线观看 | 亚洲欧美在线视频免费 |