我是靠谱客的博主 听话水蜜桃,最近开发中收集的这篇文章主要介绍coursera机器学习公开课笔记4: linear-regression-with-multiple-variables,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

Multiple Features

Note: [7:25 - θT θ T is a 1 by (n+1) matrix and not an (n+1) by 1 matrix]

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.

x(i)jx(i)mn=value of feature j in the ith training example=the input (features) of the ith training example=the number of training examples=the number of features x j ( i ) = value of feature  j  in the  i t h  training example x ( i ) = the input (features) of the  i t h  training example m = the number of training examples n = the number of features

The multivariable form of the hypothesis function accommodating these multiple features is as follows:
hθ(x)=θ0+θ1x1+θ2x2+θ3x3++θnxn h θ ( x ) = θ 0 + θ 1 x 1 + θ 2 x 2 + θ 3 x 3 + ⋯ + θ n x n

In order to develop intuition about this function, we can think about θ0 θ 0 as the basic price of a house, θ1 θ 1 as the price per square meter, θ2 θ 2 as the price per floor, etc. x1 x 1 will be the number of square meters in the house, x2 x 2 the number of floors, etc.

Using the definition of matrix multiplication, our multivariable hypothesis function can be concisely represented as :

hθ(x)=[θ0θ1...θn]x0x1xn=θTx h θ ( x ) = [ θ 0 θ 1 . . . θ n ] [ x 0

最后

以上就是听话水蜜桃为你收集整理的coursera机器学习公开课笔记4: linear-regression-with-multiple-variables的全部内容,希望文章能够帮你解决coursera机器学习公开课笔记4: linear-regression-with-multiple-variables所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(34)

评论列表共有 0 条评论

立即
投稿
返回
顶部