一共有三个部分:Supervised Machine Learning: Regression and Classification,Advanced Learning Algorithms,Unsupervised Learning, Recommenders, Reinforcement
逻辑回归的代价函数 7.1 Cost function for logistic regression_哔哩哔哩_bilibili
Introduction
AGI即Artificial general intelligence的简写,人工通用智能
AGI源于AI,但是由于主流AI研究逐渐走向某一领域的智能化(如机器视觉、语音输入等),因此为了与它们相区分,增加了general
学习算法最常用两个类型就是监督学习、无监督学习。
监督学习是指,我们将教计算机如何去完成任务,
而在无监督学习中,我们打算让它自己进行学习。
数据集“正确答案”
这个“房价预测”例子是一种特殊类型的监督学习,regression
另一种监督学习的类型“classification”
学习算法可能会找到一些边界,通过数据拟合出boundary
怎么处理无限多个特征,甚至怎么存储这些特 征都存在问题,你电脑的内存肯定不够用。我们以后会讲一个算法,叫支持向量机,里面有一个巧妙的数学技巧,能让计算机处理无限多个特征。想象一下,我没有写下这两种和右边的三种特征,而是在一个无限长的列表里面,一直写一直写不停的写,写下无限多个特征,
1 - 4 - Unsupervised Learning
we call it unsupervised because we're not trying to supervise the algorithm.
针对数据集,无监督学习就能判断出数据有两个不同的聚集簇。
这是一个,那是另一个,二者不同。是的,无监督学习算法可能会把这些数据分成两个不同
的簇。所以叫做聚类算法(clustering algorithm)。
what's cool is that this clustering algorithm figures out on his own which words suggest, that certain articles are in the same group.
some other types of unsupervised learning algorithms.
anomaly detection异常检测,用于 金融系统中的欺诈检测 fraud detection in the financial system,
dimensionality reduction降维.
The most widely used tool by machine learning and data science practitioners today is the
Jupyter Notebooks .
Linear Regression Model
监督学习过程完整的流程
the first model of this course, Linear Regression Model.
线性回归模型是一种特殊的监督学习模型,叫做回归模型
Linear regression is one example of a regression model.
why use linear func.?
sometimes you want to fit more complex non-linear functions as well, like a curve
But since this linear function is relatively simple and easy to work with, let's use a line as a foundation that will eventually help you to get to more complex models that are non-linear.
cost func.
the cost function will tell us how well the model is doing so that we can try to get
it to do better.
the squared error cost function is by far the most commonly used one for linear regression and for that matter, for all regression problems where it seems to give good results for many applications.
3D表面图
contour plot等高线图
github上有源码,用jupyter打开lab的文件
week1下的work文件夹里的la