File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 426426 " batch_size = 8 # A batch size of 8\n " ,
427427 " \n " ,
428428 " def create_iterators(batch_size=8):\n " ,
429- " \"\"\" Heler function to create the iterators\"\"\"\n " ,
429+ " \"\"\" Helper function to create the iterators\"\"\"\n " ,
430430 " dataloaders = []\n " ,
431431 " for split in [train_list, validation_list, test_list]:\n " ,
432432 " dataloader = DataLoader(\n " ,
695695 " Similar to the training process function, we set up a function to evaluate a single batch. Here is what the eval_function does:\n " ,
696696 " \n " ,
697697 " * Sets model in eval mode.\n " ,
698- " * With torch.no_grad(), no gradients are calculated for any succeding steps.\n " ,
698+ " * With torch.no_grad(), no gradients are calculated for any succeeding steps.\n " ,
699699 " * Generates x and y from batch.\n " ,
700700 " * Performs a forward pass on the model to calculate y_pred based on model and x.\n " ,
701701 " * Returns y_pred and y.\n " ,
10021002 },
10031003 "nbformat" : 4 ,
10041004 "nbformat_minor" : 4
1005- }
1005+ }
You can’t perform that action at this time.
0 commit comments