Skip to content

Commit

Permalink
feat: import torch and numpy
Browse files Browse the repository at this point in the history
  • Loading branch information
Bjarten committed Dec 30, 2018
1 parent bae0775 commit b345d0b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pytorchtools.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import numpy as np
import torch

class EarlyStopping:
"""Early stops the training if validation loss dosen't improve after a given patience."""
def __init__(self,patience=3):
Expand Down

0 comments on commit b345d0b

Please sign in to comment.