Skip to content

Feature scaling missing #5

@davidglavas

Description

@davidglavas

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions