add walk through dir

This commit is contained in:
Daniel Bourke committed 2022-07-22 14:05:38 +10:00
1 parent cea2703f82
commit bf2b959c74
1 file changed
+1 -1
+1 -1
View File
@@ -33,7 +33,7 @@ def walk_through_dir(dir_path):
name of each subdirectory
"""
for dirpath, dirnames, filenames in os.walk(dir_path):
print(f"There are {len(dirnames)} directories and {len(filenames)} images in '{dirpath}'.")
print(f"There are {len(dirnames)} directories and {len(filenames)} images in '{dirpath}'.")
def plot_decision_boundary(model: torch.nn.Module, X: torch.Tensor, y: torch.Tensor):
"""Plots decision boundaries of model predicting on X in comparison to y.