WEEK2.2.1 多重特征量
多重特征量(变量)
前面所学的线性回归是一元的,即只有一个特征量x,考虑到预测房价这个模型,现实情况下需要多个变量。用

此时假设函数就会变成多元的形式。

定义

阅读材料
Multiple Features
Note: [7:25 -
Linear regression with multiple variables is also known as "multivariate linear regression".
We now introduce notation for equations where we can have any number of input variables.

The multivariable form of the hypothesis function accommodating these multiple features is as follows:
In order to develop intuition about this function, we can think about
Using the definition of matrix multiplication, our multivariable hypothesis function can be concisely represented as:

This is a vectorization of our hypothesis function for one training example; see the lessons on vectorization to learn more.
Remark: Note that for convenience reasons in this course we assume