• 大小: 16.38MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-08-05
  • 语言: Python
  • 标签: python  

资源简介

python预测分析核心算法(含大量实例代码) 在学习和研究机器学习的时候,面临令人眼花缭乱的算法,机器学习新手往往会不知 所措。本书从算法和 Python 语言实现的角度,帮助读者认识机器学习。 本书专注于两类核心的“算法族”,即惩罚线性回归和集成方法,并通过代码实例来 展示所讨论的算法的使用原则。全书共分为 7 章,详细讨论了预测模型的两类核心算法、 预测模型的构建、惩罚线性回归和集成方法的具体应用和实现。 本书主要针对想提高机器学习技能的 Python 开发人员,帮助他们解决某一特定的项 目或是提升相关的技能

资源截图

代码片段和文件信息

__author__ = ‘mike_bowles‘
import pandas as pd
from pandas import Dataframe
import matplotlib.pyplot as plot

target_url = (“http://archive.ics.uci.edu/ml/machine-“
              “learning-databases/abalone/abalone.data“)
#read abalone data
abalone = pd.read_csv(target_urlheader=None prefix=“V“)
abalone.columns = [‘Sex‘ ‘Length‘ ‘Diameter‘ ‘Height‘
                   ‘Whole weight‘ ‘Shucked weight‘
                   ‘Viscera weight‘ ‘Shell weight‘ ‘Rings‘]

#calculate correlation matrix
corMat = Dataframe(abalone.iloc[:1:9].corr())
#print correlation matrix
print(corMat)

#visualize correlations using heatmap
plot.pcolor(corMat)
plot.show()


 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-11-21 11:12  python预测分析核心算法(含代码)\
     目录           0  2017-11-15 19:13  python预测分析核心算法(含代码)\python_mechina_learning——code\
     目录           0  2017-11-15 19:13  python预测分析核心算法(含代码)\python_mechina_learning——code\python_mechina_learning\
     目录           0  2017-11-15 19:13  python预测分析核心算法(含代码)\python_mechina_learning——code\python_mechina_learning\.ipynb_checkpoints\
     文件          72  2017-02-27 11:42  python预测分析核心算法(含代码)\python_mechina_learning——code\python_mechina_learning\.ipynb_checkpoints\Chapter02-checkpoint.ipynb
     目录           0  2017-11-15 19:13  python预测分析核心算法(含代码)\python_mechina_learning——code\python_mechina_learning\01\
     文件          73  2015-02-26 11:58  python预测分析核心算法(含代码)\python_mechina_learning——code\python_mechina_learning\01\chapter01.txt
     目录           0  2017-11-21 09:39  python预测分析核心算法(含代码)\python_mechina_learning——code\python_mechina_learning\02\
     文件         684  2015-02-26 11:58  python预测分析核心算法(含代码)\python_mechina_learning——code\python_mechina_learning\02\abaloneCorrHeat.py
     文件        1136  2015-02-26 11:58  python预测分析核心算法(含代码)\python_mechina_learning——code\python_mechina_learning\02\abaloneCorrMat.txt
     文件        1481  2015-02-26 11:58  python预测分析核心算法(含代码)\python_mechina_learning——code\python_mechina_learning\02\abaloneParallelPlot.py
     文件        1679  2015-02-26 11:58  python预测分析核心算法(含代码)\python_mechina_learning——code\python_mechina_learning\02\abaloneSummary.py
     文件        2325  2015-02-26 11:58  python预测分析核心算法(含代码)\python_mechina_learning——code\python_mechina_learning\02\abaloneSummaryOutput.txt
     文件       24592  2015-02-26 11:58  python预测分析核心算法(含代码)\python_mechina_learning——code\python_mechina_learning\02\chapter02.zip
     文件        1617  2015-02-26 11:58  python预测分析核心算法(含代码)\python_mechina_learning——code\python_mechina_learning\02\corrCalc.py
     文件         769  2015-02-26 11:58  python预测分析核心算法(含代码)\python_mechina_learning——code\python_mechina_learning\02\corrPlot.py
     文件         620  2015-02-26 11:58  python预测分析核心算法(含代码)\python_mechina_learning——code\python_mechina_learning\02\glassCorrHeatMap.py
     文件        1174  2015-02-26 11:58  python预测分析核心算法(含代码)\python_mechina_learning——code\python_mechina_learning\02\glassParallelPlot.py
     文件         984  2015-02-26 11:58  python预测分析核心算法(含代码)\python_mechina_learning——code\python_mechina_learning\02\glassSummary.py
     文件        1672  2015-02-26 11:58  python预测分析核心算法(含代码)\python_mechina_learning——code\python_mechina_learning\02\glassSummary.txt
     文件         768  2015-02-26 11:58  python预测分析核心算法(含代码)\python_mechina_learning——code\python_mechina_learning\02\linePlots.py
     文件         624  2015-02-26 11:58  python预测分析核心算法(含代码)\python_mechina_learning——code\python_mechina_learning\02\outputRocksVMinesContents.txt
     文件         526  2015-02-26 11:58  python预测分析核心算法(含代码)\python_mechina_learning——code\python_mechina_learning\02\outputSummaryStats.txt
     文件         538  2015-02-26 11:58  python预测分析核心算法(含代码)\python_mechina_learning——code\python_mechina_learning\02\pandasReadSummarize.py
     文件        1431  2015-02-26 11:58  python预测分析核心算法(含代码)\python_mechina_learning——code\python_mechina_learning\02\pandasReadSummarizeOutput.txt
     文件         756  2015-02-26 11:58  python预测分析核心算法(含代码)\python_mechina_learning——code\python_mechina_learning\02\qqplotAttribute.py
     文件        1181  2015-02-26 11:58  python预测分析核心算法(含代码)\python_mechina_learning——code\python_mechina_learning\02\rockVmineContents.py
     文件         608  2015-02-26 11:58  python预测分析核心算法(含代码)\python_mechina_learning——code\python_mechina_learning\02\rockVmineSummaries.py
     文件           0  2017-11-21 09:39  python预测分析核心算法(含代码)\python_mechina_learning——code\python_mechina_learning\02\rVMSummaryStats.py
     文件         541  2015-02-26 11:58  python预测分析核心算法(含代码)\python_mechina_learning——code\python_mechina_learning\02\sampleCorrHeatMap.py
     文件        1435  2015-02-26 11:58  python预测分析核心算法(含代码)\python_mechina_learning——code\python_mechina_learning\02\targetCorr.py
............此处省略73个文件信息

评论

共有 条评论