Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dnishiyama committed Apr 12, 2021
1 parent bccc3c4 commit ce09780
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion chars2vec/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,9 @@ def train_model(emb_dim, X_train, y_train, model_chars,
char_to_ix = {ch: i for i, ch in enumerate(model_chars)}
c2v_model = Chars2Vec(emb_dim, char_to_ix)

targets = [float(el) for el in y_train]
# TODO: https://github.com/IntuitionEngineeringTeam/chars2vec/issues/8
# targets = [float(el) for el in y_train]
targets = np.array(y_train)
c2v_model.fit(X_train, targets, max_epochs, patience, validation_split, batch_size)

return c2v_model

0 comments on commit ce09780

Please sign in to comment.