Skip to content

Commit

Permalink
i
Browse files Browse the repository at this point in the history
  • Loading branch information
jshtaway committed Oct 23, 2018
1 parent 17ed954 commit 6777e6e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions word_based.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -507,10 +507,10 @@
" jsondict['model'] = modellist\n",
" jsondict['loss'][int(epoch)] = float(loss)\n",
" jsondict['sequences'][int(epoch)] = generate_seq(os.path.join(filepath,filename), tokenizer, 50, seed.seed_text, 50)\n",
" print(epochs, ': ', jsondict['sequences'][int(epoch)])\n",
" print(epoch, ': ', jsondict['sequences'][int(epoch)])\n",
" #-- Write JSON file -- --- ----\n",
" with open(jsonFile, 'w+') as fp:\n",
" json.dump(datetime, fp)"
" json.dump(jsondict, fp)"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions word_based.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,8 +377,8 @@ def jsonify_the_old_style_file(filepath = '.'):
jsondict['model'] = modellist
jsondict['loss'][int(epoch)] = float(loss)
jsondict['sequences'][int(epoch)] = generate_seq(os.path.join(filepath,filename), tokenizer, 50, seed.seed_text, 50)
print(epochs, ': ', jsondict['sequences'][int(epoch)])
print(epoch, ': ', jsondict['sequences'][int(epoch)])
#-- Write JSON file -- --- ----
with open(jsonFile, 'w+') as fp:
json.dump(datetime, fp)
json.dump(jsondict, fp)

0 comments on commit 6777e6e

Please sign in to comment.