《机器学习实战》--资料下载和运行环境

本书推荐理由:附带代码,便于理解机器学习算法。包含书籍与代码下载链接,推荐学习步骤,从阅读理解算法到实践修改代码,观看吴恩达课程,深入理论学习。配置代码运行环境,包括选择Anaconda或Miniconda,安装jupyter。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

《机器学习实战》–资料下载和运行环境

1. 推荐理由

优点:有配套代码,便于理解算法。
缺点:编写与2012年,没有近几年的新发展。不过作为入门,足够了。

2. 书籍下载地址

机器学习实战 PDF超清晰中文+英文版+随书源码(真正清晰版)(需要优快云币)
https://download.youkuaiyun.com/download/wrj19860202/10501911

3. 代码下载地址

3.1 推荐jupyter版本

使用jupyter notebook整理的peter的《机器学习实战》代码,加了注释,代码也稍做修改。
https://github.com/TingNie/Machine-learning-in-action

3.2 作者发布的python版本

英文原版的官方网站有本书配套的Python代码:
https://www.manning.com/books/machine-learning-in-action

4. 推荐如下方法学习

(1)阅读并理解中文PDF中的某个算法。
(2)运行下载 的 jupyter notebook 代码,并分析结果。
(3)尝试修改程序,观察运行结果的变化,并进行分析。
(4)观看网课视频。
特别推荐 网易云课堂–>吴恩达的机器学习课程
不仅概念清晰易懂,还讲解常用的实战经验
https://study.163.com/course/introduction/1004570029.htm
(5)阅读更多理论书籍。
这本书没有晦涩的理论推导。(这个算优点还是缺点呢?)
如果想理解算法背后的理论,推荐周志华老师的西瓜书(《机器学习》清华大学出版社 周志华著)。
https://book.douban.com/review/9849485/
如果觉得西瓜书啃不动,推荐配套的南瓜书以及其论坛,那里有热心前辈答疑解惑。
https://github.com/datawhalechina/pumpkin-book

5. 配置代码运行环境

5.0 选择 Anoconda 还是 Miniconda ?

(1) 如果电脑硬盘空间足够大(3G以上),推荐使用Anoconda,功能强大。
(2) 如果电脑硬盘不够大(500M左右),推荐使用Miniconda,顾名思义它是Anoconda的mini版本,裁剪版本,只有最基础的一些包,没有自带Jupyter。
还需要再安装jupyter才能运行我们书中的代码。

推荐使用 jupyter 运行 python代码,方便一边修改代码,一边观察实验结果,利于理解算法原理。(也可以尝试用Spyder运行*.py文件)

通过Miniconda 安装 jupyter。
详情可以参考:Jupyter Notebook介绍、安装及使用教程

5.1 下载Miniconda

官方下载地址:https://docs.conda.io/en/latest/miniconda.html
在这里插入图片描述

5.2 安装并运行Miniconda

安装Miniconda之后,在Windows开始菜单中,打开Anaconda2文件夹,双击Anaconda Prompt,会弹出一个命令行窗口。
在这里插入图片描述

在这里插入图片描述

5.3 在conda内安装 jupyter

在conda的命令行内依次运行如下命令:

#配置conda 清华镜像
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/

#配置清华PyPI镜像(如?法运?,将pip版本升级到>=10.0.0)
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
	
# 安装 jupyter
conda install jupyter

5.4 运行《机器学习实战》代码

在conda命令行界面,cd进入到 《机器学习实战》代码所在目录“Machine-learning-in-action-master”,然后再执行“jupyter notebook”命令,会弹出一个浏览器页面。

在浏览器页面中打开k-Nearest Neighbor文件夹,双击knn.ipynb,这是第二章的实例。
尝试运行,可以得到下图所示的运行结果。
尝试修改程序,观察运行结果是否符合预期。
在这里插入图片描述

机器学习是一门多领域交叉学科,涉及概率论、统计学、逼近论、凸分析、算法复杂度理论等多门学科。它专门研究计算机怎样模拟或实现人类的学习行为,以获取新的知识或技能,重新组织已有的知识结构使之不断改善自身的性能。机器学习是人工智能的核心,是使计算机具有智能的根本途径。 随着统计学的发展,统计学习在机器学习中占据了重要地位,支持向量机(SVM)、决策树随机森林等算法的提出发展,使得机器学习能够更好地处理分类、回归聚类等任务。进入21世纪,深度学习成为机器学习领域的重要突破,采用多层神经网络模型,通过大量数据强大的计算能力来训练模型,在计算机视觉、自然语言处理语音识别等领域取得了显著的成果。 机器学习算法在各个领域都有广泛的应用,包括医疗保健、金融、零售电子商务、智能交通、生产制造等。例如,在医疗领域,机器学习技术可以帮助医生识别医疗影像,辅助诊断疾病,预测病情发展趋势,并为患者提供个性化的治疗方案。在金融领域,机器学习模型可以分析金融数据,识别潜在风险,预测股票市场的走势等。 未来,随着传感器技术计算能力的提升,机器学习将在自动驾驶、智能家居等领域发挥更大的作用。同时,随着物联网技术的普及,机器学习将助力智能家居设备实现更加智能化个性化的功能。在工业制造领域,机器学习也将实现广泛应用,如智能制造、工艺优化质量控制等。 总之,机器学习是一门具有广阔应用前景深远影响的学科,它将持续推动人工智能技术的发展,为人类社会的进步做出重要贡献。
Machine Learning in Action is unique book that blends the foundational theories of machine learning with the practical realities of building tools for everyday data analysis. You'll use the flexible Python programming language to build programs that implement algorithms for data classification, forecasting, recommendations, and higher-level features like summarization and simplification. About the Book A machine is said to learn when its performance improves with experience. Learning requires algorithms and programs that capture data and ferret out the interesting or useful patterns. Once the specialized domain of analysts and mathematicians, machine learning is becoming a skill needed by many. Machine Learning in Action is a clearly written tutorial for developers. It avoids academic language and takes you straight to the techniques you'll use in your day-to-day work. Many (Python) examples present the core algorithms of statistical data processing, data analysis, and data visualization in code you can reuse. You'll understand the concepts and how they fit in with tactical tasks like classification, forecasting, recommendations, and higher-level features like summarization and simplification. Readers need no prior experience with machine learning or statistical processing. Familiarity with Python is helpful. What's InsideA no-nonsense introduction Examples showing common ML tasks Everyday data analysis Implementing classic algorithms like Apriori and Adaboos =================================== Table of ContentsPART 1 CLASSIFICATION Machine learning basics Classifying with k-Nearest Neighbors Splitting datasets one feature at a time: decision trees Classifying with probability theory: naïve Bayes Logistic regression Support vector machines Improving classification with the AdaBoost meta algorithm PART 2 FORECASTING NUMERIC VALUES WITH REGRESSION Predicting numeric values: regression Tree-based regression PART 3 UNSUPERVISED LEARNING Grouping unlabeled items using k-means clustering Association analysis with the Apriori algorithm Efficiently finding frequent itemsets with FP-growth PART 4 ADDITIONAL TOOLS Using principal component analysis to simplify data Simplifying data with the singular value decomposition Big data and MapReduce
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值