-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #214 from TeamEpochGithub/162-ref-shorten-import-p…
…ath-lengths 162 | Shorten imports, reworked folders
- Loading branch information
Showing
58 changed files
with
150 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
"""The epochalyst package. | ||
"""The epochalyst package.""" | ||
|
||
It consists of the following modules: | ||
- `logging`: The logging module contains the classes and methods to log the pipeline. | ||
- `pipeline`: The pipeline module contains the classes and methods to create a pipeline for the model. | ||
""" | ||
from .ensemble import EnsemblePipeline | ||
from .model import ModelPipeline | ||
|
||
__all__ = [ | ||
"ModelPipeline", | ||
"EnsemblePipeline", | ||
] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
"""Caching module for epochalyst.""" | ||
|
||
from .cacher import CacheArgs, Cacher | ||
|
||
__all__ = ["Cacher", "CacheArgs"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
"""Module for core logging functionality.""" | ||
"""Logging module, contains Logger class for logging messages to console and file.""" | ||
|
||
from .logger import Logger | ||
|
||
__all__ = ["Logger"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
"""Module containing training functionality for the epochalyst package.""" | ||
|
||
from .pretrain_block import PretrainBlock | ||
from .torch_trainer import TorchTrainer, TrainValidationDataset | ||
from .training import TrainingPipeline | ||
from .training_block import TrainingBlock | ||
|
||
__all__ = [ | ||
"PretrainBlock", | ||
"TrainingBlock", | ||
"TorchTrainer", | ||
"TrainingPipeline", | ||
"TrainValidationDataset", | ||
] |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
"""Module containing implementation for augmentations.""" | ||
|
||
from epochalyst.training.augmentation.image_augmentations import CutMix, MixUp | ||
from epochalyst.training.augmentation.time_series_augmentations import ( | ||
AddBackgroundNoiseWrapper, | ||
CutMix1D, | ||
EnergyCutmix, | ||
Mirror1D, | ||
MixUp1D, | ||
RandomAmplitudeShift, | ||
RandomPhaseShift, | ||
SubtractChannels, | ||
) | ||
|
||
__all__ = [ | ||
"CutMix", | ||
"MixUp", | ||
"CutMix1D", | ||
"MixUp1D", | ||
"Mirror1D", | ||
"EnergyCutmix", | ||
"RandomPhaseShift", | ||
"RandomAmplitudeShift", | ||
"SubtractChannels", | ||
"AddBackgroundNoiseWrapper", | ||
] |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
"""Module for reusable models or wrappers.""" | ||
|
||
from .timm import Timm | ||
|
||
__all__ = [ | ||
"Timm", | ||
] |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
...pipeline/model/training/utils/__init__.py → epochalyst/training/utils/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
"""Module with utility functions for training.""" | ||
|
||
from .get_dependencies import _get_onnxrt, _get_openvino | ||
from .recursive_repr import recursive_repr | ||
from .tensor_functions import batch_to_device | ||
|
||
__all__ = [ | ||
"_get_onnxrt", | ||
"_get_openvino", | ||
"batch_to_device", | ||
"recursive_repr", | ||
] |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
"""Module containing transformation functions for the model pipeline.""" | ||
|
||
from .transformation import TransformationPipeline | ||
from .transformation_block import TransformationBlock | ||
|
||
__all__ = [ | ||
"TransformationPipeline", | ||
"TransformationBlock", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.