forked from Seanny123/da-rnn
-
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.
refactored everything to be functional
- Loading branch information
Showing
2 changed files
with
154 additions
and
131 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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import typing | ||
import collections | ||
|
||
import numpy as np | ||
|
||
|
||
class TrainConfig(typing.NamedTuple): | ||
T: int | ||
train_size: int | ||
batch_size: int | ||
loss_func: typing.Callable | ||
|
||
|
||
class TrainData(typing.NamedTuple): | ||
feats: np.ndarray | ||
targs: np.ndarray | ||
|
||
|
||
DaRnnNet = collections.namedtuple("DaRnnNet", ["encoder", "decoder", "enc_opt", "dec_opt"]) |