mirror of
https://github.com/mrdbourke/pytorch-deep-learning.git
synced 2026-11-27 06:07:09 +00:00
add walk through dir
This commit is contained in:
1 parent
cea2703f82
commit
bf2b959c74
1 file changed
+1
-1
+1
-1
@@ -33,7 +33,7 @@ def walk_through_dir(dir_path):
|
|||||||
name of each subdirectory
|
name of each subdirectory
|
||||||
"""
|
"""
|
||||||
for dirpath, dirnames, filenames in os.walk(dir_path):
|
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):
|
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.
|
"""Plots decision boundaries of model predicting on X in comparison to y.
|
||||||
|
|||||||
Reference in new issue
Block a user