Skip to content

Commit

Permalink
Update linear_regression.rst (#50)
Browse files Browse the repository at this point in the history
At the Training code section, cost_function is called incorrectly (arguments). You could also explain why normalization is important to prevent overflowing.
  • Loading branch information
David Paarup authored and bfortuner committed Jan 15, 2019
1 parent 053393e commit 4f4629d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/linear_regression.rst
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ Before training we need to initializing our weights (set default values), set ou
weight,bias = update_weights(radio, sales, weight, bias, learning_rate)

#Calculate cost for auditing purposes
cost = cost_function(features, targets, weights)
cost = cost_function(radio, sales, weight, bias)
cost_history.append(cost)

# Log Progress
Expand Down

0 comments on commit 4f4629d

Please sign in to comment.