-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-Authored-By: James Widdicombe <j.y.widdicombe@gmail.com>
- Loading branch information
1 parent
08c0f30
commit d84cf96
Showing
7 changed files
with
74 additions
and
48 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
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,4 +1,5 @@ | ||
from zookeeper.hparam import HParams | ||
from zookeeper.preprocessing import Preprocessing | ||
from zookeeper.cli import build_train, cli | ||
|
||
__all__ = ["build_train", "cli", "HParams"] | ||
__all__ = ["build_train", "cli", "HParams", "Preprocessing"] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import abc | ||
|
||
|
||
class Preprocessing(abc.ABC): | ||
decoders = None | ||
kwargs = {} | ||
|
||
def __init__(self, features=None): | ||
self.features = features | ||
|
||
@abc.abstractmethod | ||
def inputs(self, data, training): | ||
raise NotImplementedError("Must be implemented in subclasses.") | ||
|
||
@abc.abstractmethod | ||
def outputs(self, data, training): | ||
raise NotImplementedError("Must be implemented in subclasses.") |
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