Chapter02.Model Representation(Machine Learning)

Chapter02.Model Representation(Machine Learning)提示提示:文章目录Chapter02.Model Representation(Machine Learning)1.Linear regression with one variable 线性回归算法1.1 Linear regression with one variable1.2 The meaning of the letter1.3 假设函数总结2. Cost Function 代价函数2.1
摘要由CSDN通过智能技术生成

Chapter02.Linear regression with one variable 线性回归算法(Machine Learning)

提示


提示:


2.1 Model Representation 模型描述


房价预测

在这里插入图片描述
在这里插入图片描述
Supervised Learning: Given the “right answer” for each example in the data.
每个例子都有一个正确的答案。
Regression Problem: Predict real-valued out put
可以预测一个具体的数值输出
Classification:Predict discrete-valued outputs
可以预测一个离散输出

The meaning of the letter
在这里插入图片描述
m: 训练样本数量
x’s: 输入变量/特征
y’s: 输出变量/目标变量
(x, y): 一个训练样本
(x(i),x(i)): 第ith 个训练样本,索引

x(i) to denote the “input” variables (living area in this example), also called input features

y(i) to denote the “output” or target variable that we are trying to predict (price).

(x(i), y(i)) is called a training example, and the dataset that we’ll be using to learn—a list of m training examples
(x(i), y(i)); i = 1, . . . , m is called a training set.

Note that the superscript “(i)” in the notation is simply an index into the training set, and has nothing to do with exponentiation.

X to denote the space of input values, and
Y to denote the space of output values.
In this example, X = Y = ℝ

To describe the supervised learning problem slightly more formally, our goal is, given a training set, to learn a function h : X → Y so that h(x) is a “good” predictor for the corresponding value of y.
For historical reasons, this function h is called a hypothesis.
Seen pictorially, the process is therefore like this:

假设函数
在这里插入图片描述

  • When the target variable that we’re trying to predict is continuous, such as in our housing example, we call the learning problem a regression problem.
  • When y can take on only a small number of discrete values (such as if, given the living area, we wanted to predict if a dwelling is a house or an apartment, say), we call it a classification problem

How do we represent h?
在这里插入图片描述
Libear regression with one variable 线性回归模型
Univariate linear regression 一元线性回归

2.2 Cost Function 代价函数

在这里插入图片描述
在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值