Regression with Neural Networks
Regression from Numeric Data
Train a predictor that predicts the median value of properties in a neighborhood of Boston, given some features of the neighborhood.
First, obtain the training and validation data:
Define a net that returns a scalar:
Train the net and return both the trained net and the lowest validation loss:
Train a predictor using Predict
instead, and obtain the mean squared loss on the test set: