91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

這是一份Sklearn的實戰(zhàn)教程,可以在jupyter notebook 打開。

資源截圖

代碼片段和文件信息

import?numpy?as?np


def?linear_data_sample(N=40?rseed=0?m=3?b=-2):
????rng?=?np.random.RandomState(rseed)

????x?=?10?*?rng.rand(N)
????dy?=?m?/?2?*?(1?+?rng.rand(N))
????y?=?m?*?x?+?b?+?dy?*?rng.randn(N)

????return?(x?y?dy)


def?linear_data_sample_big_errs(N=40?rseed=0?m=3?b=-2):
????rng?=?np.random.RandomState(rseed)

????x?=?10?*?rng.rand(N)
????dy?=?m?/?2?*?(1?+?rng.rand(N))
????dy[20:25]?*=?10
????y?=?m?*?x?+?b?+?dy?*?rng.randn(N)

????return?(x?y?dy)


def?sample_light_curve(phased=True):
????from?astroML.datasets?import?fetch_LINEAR_sample
????data?=?fetch_LINEAR_sample()
????t?y?dy?=?data[18525697].T

????if?phased:
????????P_best?=?0.580313015651
????????t?/=?P_best

????return?(t?y?dy)
????

def?sample_light_curve_2(phased=True):
????from?astroML.datasets?import?fetch_LINEAR_sample
????data?=?fetch_LINEAR_sample()
????t?y?dy?=?data[10022663].T

????if?phased:
????????P_best?=?0.61596079804
????????t?/=?P_best

????return?(t?y?dy)
????

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2017-12-02?04:17??notebooks\
?????文件????????5379??2017-12-02?04:17??notebooks\01-Preliminaries.ipynb
?????文件??????233129??2017-12-02?04:17??notebooks\02.1-Machine-Learning-Intro.ipynb
?????文件?????1362535??2017-12-02?04:17??notebooks\02.2-Basic-Principles.ipynb
?????文件??????207955??2017-12-02?04:17??notebooks\03.1-Classification-SVMs.ipynb
?????文件??????329061??2017-12-02?04:17??notebooks\03.2-Regression-Forests.ipynb
?????文件??????258214??2017-12-02?04:17??notebooks\04.1-Dimensionality-PCA.ipynb
?????文件?????1418373??2017-12-02?04:17??notebooks\04.2-Clustering-KMeans.ipynb
?????文件??????183574??2017-12-02?04:17??notebooks\04.3-Density-GMM.ipynb
?????文件??????281183??2017-12-02?04:17??notebooks\05-Validation.ipynb
?????目錄???????????0??2017-12-02?04:17??notebooks\fig_code\
?????文件?????????980??2017-12-02?04:17??notebooks\fig_code\data.py
?????文件????????8603??2017-12-02?04:17??notebooks\fig_code\figures.py
?????文件????????2301??2017-12-02?04:17??notebooks\fig_code\helpers.py
?????文件?????????735??2017-12-02?04:17??notebooks\fig_code\linear_regression.py
?????文件????????4970??2017-12-02?04:17??notebooks\fig_code\ML_flow_chart.py
?????文件????????1175??2017-12-02?04:17??notebooks\fig_code\sgd_separator.py
?????文件???????11549??2017-12-02?04:17??notebooks\fig_code\svm_gui.py
?????文件?????????179??2017-12-02?04:17??notebooks\fig_code\__init__.py
?????目錄???????????0??2017-12-02?04:17??notebooks\images\
?????文件????????7712??2017-12-02?04:17??notebooks\images\data-layout.png
?????文件???????18270??2017-12-02?04:17??notebooks\images\iris_setosa.jpg
?????文件???????21783??2017-12-02?04:17??notebooks\images\iris_versicolor.jpg
?????文件???????62056??2017-12-02?04:17??notebooks\images\iris_virginica.jpg
?????文件????????2188??2017-12-02?04:17??notebooks\Index.ipynb
?????文件?????????963??2017-12-02?04:17??notebooks\URL.ipynb

評論

共有 條評論

相關(guān)資源