Skip to content

Commit

Permalink
Remove workaround as #112 is fixed now
Browse files Browse the repository at this point in the history
  • Loading branch information
ottonemo committed Nov 29, 2017
1 parent b5df830 commit 5184dd3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions examples/word_language_model/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,7 @@ def on_epoch_end(self, net, **kwargs):
def my_train_split(X, y):
# Return (corpus.train, corpus.valid) in case the network
# is fitted using net.fit(corpus.train).
#
# TODO: remove dummy y values once #112 is fixed.
#
import numpy as np
return X, corpus.valid, np.zeros(len(X)), np.zeros(len(corpus.valid))
return X, corpus.valid, None, None

net = Net(
module=RNNModel,
Expand Down

0 comments on commit 5184dd3

Please sign in to comment.