mirror of
https://github.com/mrdbourke/pytorch-deep-learning.git
synced 2026-11-27 06:07:09 +00:00
Update helper_functions.py
This commit is contained in:
1 parent
63014eadb1
commit
3f62e49708
1 file changed
+4
-4
+4
-4
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user