mirror of
https://github.com/rasbt/LLMs-from-scratch.git
synced 2026-04-10 12:33:42 +00:00
Use test mode arg in ch07 (#713)
This commit is contained in:
committed by
GitHub
parent
8b3e4b24b0
commit
ddbaf0d83e
@@ -175,7 +175,7 @@ def main(test_mode=False):
|
||||
val_data = data[train_portion + test_portion:]
|
||||
|
||||
# Use very small subset for testing purposes
|
||||
if args.test_mode:
|
||||
if test_mode:
|
||||
train_data = train_data[:10]
|
||||
val_data = val_data[:10]
|
||||
test_data = test_data[:10]
|
||||
|
||||
Reference in New Issue
Block a user