We can do multiple linear regression on the same data by making a slight modification in the declaration of weights and placeholders. In the case of multiple linear regression, as each feature has different value ranges, normalization becomes essential. Here is the code for multiple linear regression on the Boston house price dataset, using all the 13 input features.
House price estimation-multiple linear regression
How to do it...
Here is how we proceed with the recipe:
- The first step is to import all the packages that we will need:
import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
- We need to normalize the feature data since the data ranges of all the features are varied. We define a normalize...