Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102755838
costs.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Feb 23, 21:06
Size
390 B
Mime Type
text/x-python
Expires
Tue, Feb 25, 21:06 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24421673
Attached To
rTZUCT ML_Project1
costs.py
View Options
# -*- coding: utf-8 -*-
"""Function used to compute the loss."""
def
compute_loss
(
y
,
tx
,
w
):
"""Calculate the loss.
You can calculate the loss using mse or mae.
"""
# ***************************************************
# INSERT YOUR CODE HERE
# TODO: compute loss by MSE / MAE
# ***************************************************
raise
NotImplementedError
Event Timeline
Log In to Comment