-
Notifications
You must be signed in to change notification settings - Fork 254
Open
Description
ml-class/mlclass-ex1/ex1_multi.m
Line 153 in 0b06b73
price = [1 1650 3] * theta; |
The size and number of bedrooms should be scaled with the previously computed mean mu
and standard deviation sigma
.
From Andrew Ng's exercise sheet:
Implementation Note: When normalizing the features, it is important
to store the values used for normalization - the mean value and the stan-
dard deviation used for the computations. After learning the parameters
from the model, we often want to predict the prices of houses we have not
seen before. Given a new x value (living room area and number of bed-
rooms), we must rst normalize x using the mean and standard deviation
that we had previously computed from the training set.
Metadata
Metadata
Assignees
Labels
No labels