From 3f62e49708e75defd7482a81f4cfd5f7bc4f5dcc Mon Sep 17 00:00:00 2001 From: Daniel Bourke Date: Thu, 3 Feb 2022 10:07:24 +1000 Subject: [PATCH] Update helper_functions.py --- helper_functions.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/helper_functions.py b/helper_functions.py index 7b83a36..344090c 100644 --- a/helper_functions.py +++ b/helper_functions.py @@ -8,10 +8,10 @@ import matplotlib.pyplot as plt from torch import nn # Plot linear data or training and test and predictions (optional) -def plot_predictions(train_data=X_train, - train_labels=y_train, - test_data=X_test, - test_labels=y_test, +def plot_predictions(train_data, + train_labels, + test_data, + test_labels, predictions=None): """ Plots linear training data and test data and compares predictions.