Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
wesyoung committed Jun 28, 2018
1 parent 8bd0e73 commit 0b79559
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion constants.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os

BATCH_SIZE = os.getenv('BATCH_SIZE', 8)
BATCH_SIZE = os.getenv('BATCH_SIZE', 256)
MAX_STRING_LEN = 255
MODEL = os.getenv('MODEL', 'model.h5')
WEIGHTS = os.getenv('WEIGHTS', 'weights.h5')
3 changes: 3 additions & 0 deletions predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@

from constants import MAX_STRING_LEN, MODEL, WEIGHTS, BATCH_SIZE

BATCH_SIZE = int(BATCH_SIZE)
MAX_STRING_LEN = int(MAX_STRING_LEN)


def predict(i):
tokenizer = Tokenizer(filters='\t\n', char_level=True, lower=True)
Expand Down
4 changes: 2 additions & 2 deletions train.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
BATCH_SIZE = int(BATCH_SIZE)
MAX_STRING_LEN = int(MAX_STRING_LEN)

NEURONS = os.getenv('TF_NEURONS', 128) # g00gle.com 256?
EMBEDDED_DIM = 300
NEURONS = os.getenv('TF_NEURONS', 128)
EMBEDDED_DIM = 500


def train(csv_file):
Expand Down

0 comments on commit 0b79559

Please sign in to comment.