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 determine the lowest validation loss:
Make a prediction:
Train a predictor using Predict instead, and obtain the mean squared loss on the test set: