As far as I am aware I have built my model however I am getting this error when I try to check it:
TypeError Traceback (most recent call last)
<ipython-input-75-480afcf9bc78> in <module>()
1 # RUN THIS CELL TO TEST YOUR MODEL. DO NOT MODIFY CONTENTS.
2 # Test model by checking how well the model generalizes using the test set.
----> 3 loss, mae, mse = model.evaluate(test_dataset, test_labels , verbose=2)
4
5 print("Testing set Mean Abs Error: {:5.2f} expenses".format(mae))
TypeError: evaluate() got an unexpected keyword argument 'verbose'
model = tf.estimator.LinearRegressor(feature_columns=feature_columns)
just before your error. The documentation for this model’s evaluate() method does not list verbose as a keyword argument, hence the error. However, the tf.keras.Sequential model you used earlier does support this usage.