Skip to Content
Python机器学习基础教程
book

Python机器学习基础教程

by Andreas C. Müller, Sarah Guido
January 2018
Intermediate to advanced
301 pages
8h 54m
Chinese
Posts & Telecom Press
Content preview from Python机器学习基础教程
全书总结
281
def fit(self, X, y=None):
# fit应该只接受Xy作为参数
# 即使你的模型是无监督的,你也需要接受一个y参数!
# 下面是模型拟合的代码
print("fitting the model right here")
# fit返回self
return self
def transform(self, X):
# transform只接受X作为参数
# X应用某种变换
X_transformed = X + 1
return X_transformed
实现一个分类器或回归器的方法是类似的,你只需要从 ClassifierMixin RegressorMixin
继承,而不是 TransformerMixin。此外,你还要实现 predict,而不必实现 transform
从上面的例子中可以看出,实现你自己的估计器需要很少的代码,随着时间的推移,大部
scikit-learn 用户都会构建出一组自定义模型。
8.5
 下一步怎么走
本书对机器学习进行了介绍,并让你成为一名高效的从业者。但是,如果你想要进一步提
高机器学习技能,下面是一些关于书籍和更专业的资源的建议,以便你进一步深入研究。
8.5.1
 理论
在本书中,我们试图直观地解释大多数常见机器学习算法的工作原理,而不要求你在数学或
计算机科学方面具有坚实的基础。但是,我们讨论的许多模型都使用了概率论、线性代数和
最优化方面的理论。虽然没有必要理解这些算法的所有实现细节,但我们认为,了解算法背 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

数据驱动力:企业数据分析实战

数据驱动力:企业数据分析实战

Carl Anderson
Python应用开发指南

Python应用开发指南

Posts & Telecom Press, Ninad Sathaye
管理Kubernetes

管理Kubernetes

Brendan Burns, Craig Tracey

Publisher Resources

ISBN: 9787115475619