Skip to content

Commit

Permalink
Merge pull request #14 from achaiah/WIP
Browse files Browse the repository at this point in the history
Wip
  • Loading branch information
achaiah committed Sep 24, 2020
2 parents 5849be5 + 199895e commit 6786d42
Show file tree
Hide file tree
Showing 40 changed files with 4,574 additions and 11 deletions.
1 change: 1 addition & 0 deletions pywick/callbacks/CSVLogger.py
Expand Up @@ -7,6 +7,7 @@

from . import Callback

__all__ = ['CSVLogger']

class CSVLogger(Callback):
"""
Expand Down
2 changes: 2 additions & 0 deletions pywick/callbacks/EarlyStopping.py
@@ -1,5 +1,7 @@
from . import Callback

__all__ = ['EarlyStopping']

class EarlyStopping(Callback):
"""
Early Stopping to terminate training early under certain conditions
Expand Down
1 change: 1 addition & 0 deletions pywick/callbacks/ExperimentLogger.py
Expand Up @@ -6,6 +6,7 @@

from . import Callback

__all__ = ['ExperimentLogger']

class ExperimentLogger(Callback):
"""
Expand Down
3 changes: 3 additions & 0 deletions pywick/callbacks/History.py
@@ -1,5 +1,8 @@
from . import Callback

__all__ = ['History']


class History(Callback):
"""
Callback that records events into a `History` object.
Expand Down
2 changes: 2 additions & 0 deletions pywick/callbacks/LRScheduler.py
Expand Up @@ -2,6 +2,8 @@

from . import Callback

__all__ = ['LRScheduler']


class LRScheduler(Callback):
"""
Expand Down
3 changes: 3 additions & 0 deletions pywick/callbacks/ModelCheckpoint.py
Expand Up @@ -8,6 +8,9 @@
from . import Callback


__all__ = ['ModelCheckpoint']


class ModelCheckpoint(Callback):
"""
Model Checkpoint to save model weights during training. 'Best' is determined by minimizing the value found under monitored_log_key in the logs
Expand Down
1 change: 1 addition & 0 deletions pywick/callbacks/OneCycleLRScheduler.py
Expand Up @@ -11,6 +11,7 @@
from . import Callback
import torch

__all__ = ['OnceCycleLRScheduler']

class OneCycleLR(torch.optim.lr_scheduler.StepLR):
r"""Sets the learning rate of each parameter group according to the
Expand Down
3 changes: 3 additions & 0 deletions pywick/callbacks/ReduceLROnPlateau.py
@@ -1,5 +1,8 @@
from . import Callback

__all__ = ['ReduceLROnPlateau']


class ReduceLROnPlateau(Callback):
"""
Reduce the learning rate if the train or validation loss plateaus
Expand Down
2 changes: 2 additions & 0 deletions pywick/callbacks/SimpleModelCheckpoint.py
Expand Up @@ -5,6 +5,8 @@

from . import Callback

__all__ = ['SimpleModelCheckpoint']


class SimpleModelCheckpoint(Callback):
"""
Expand Down
3 changes: 3 additions & 0 deletions pywick/callbacks/TQDM.py
@@ -1,6 +1,9 @@
from tqdm import tqdm
from . import Callback

__all__ = ['TQDM']


class TQDM(Callback):

def __init__(self):
Expand Down
3 changes: 2 additions & 1 deletion pywick/callbacks/__init__.py
Expand Up @@ -14,6 +14,7 @@
from .LambdaCallback import *
from .LRScheduler import *
from .ModelCheckpoint import *
from .OneCycleLRScheduler import *
from .ReduceLROnPlateau import *
from .SimpleModelCheckpoint import *
from .TQDM import *
from .TQDM import *

0 comments on commit 6786d42

Please sign in to comment.