Page MenuHomec4science

costs.py
No OneTemporary

File Metadata

Created
Sun, Feb 23, 21:06

costs.py

# -*- 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