Session Ready
Exercise

Defining a cost function

You're well on your way to answering your research question about predicting high school students' final grades. As you've defined all your variables, your next step is to define your cost function.

You've decided to minimize your Mean Squared Error as a way of optimizing your model.

Instructions
100 XP
  • Define your cost function as Mean Squared Error (MSE).
  • Use the Gradient Descent Optimizer with a learning rate of 0.0001.
  • Set train to minimize MSE loss.