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 6777e6e commit 3b59b19
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions word_based.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -443,10 +443,10 @@
" import os, ast, json, re, seed\n",
" datetime = {}\n",
" #-- Determine JSON file name -- \n",
" jsonFile = 'Alldata.json'; i = '0'\n",
" jsonFile = f'{filepath}/Alldata.json'; i = '0'\n",
" while os.path.isfile(jsonFile):\n",
" i = str(int(i)+1)\n",
" jsonFile = f\"Alldata{i}.json\"\n",
" jsonFile = f\"{filepath}/Alldata{i}.json\"\n",
" \n",
" for filename in os.listdir(filepath):\n",
" #wi_01_6.7077__2018-10-22_09-29.hdf5\n",
Expand Down Expand Up @@ -493,11 +493,11 @@
"#wi_76_0.0010__51_LSTM_256_True_Dense_256_relu_Dropout_0.2__LSTM_128_True_Dense_128_relu_Dropout_0.2__LSTM_64_False_Dense_64_relu_Flatten___Dense_2830_softmax.hdf\n",
"def jsonify_the_old_style_file(filepath = '.'):\n",
" import seed, re, os, json\n",
" jsonFile = 'Alldata.json'; i = '0'\n",
" jsonFile = filepath + '/Alldata.json'; i = '0'\n",
" #-- Determine JSON file name -- \n",
" while os.path.isfile(jsonFile):\n",
" i = str(int(i)+1)\n",
" jsonFile = f\"Alldata{i}.json\"\n",
" jsonFile = f\"{filepath}/Alldata{i}.json\"\n",
" tokenizer = filepath + '/toke_51_LSTM_256_True_Dense_256_relu_Dropout_0.2__LSTM_128_True_Dense_128_relu_Dropout_0.2__LSTM_64_False_Dense_64_relu_Flatten___Dense_2830_softmax.pkl'\n",
" jsondict = {'sequences': ['no_data']*112, 'model':None, 'loss': ['no_data']*112}\n",
" for filename in os.listdir(filepath):\n",
Expand Down
8 changes: 4 additions & 4 deletions word_based.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,10 +316,10 @@ def json_create(filepath = '.'):
import os, ast, json, re, seed
datetime = {}
#-- Determine JSON file name --
jsonFile = 'Alldata.json'; i = '0'
jsonFile = f'{filepath}/Alldata.json'; i = '0'
while os.path.isfile(jsonFile):
i = str(int(i)+1)
jsonFile = f"Alldata{i}.json"
jsonFile = f"{filepath}/Alldata{i}.json"

for filename in os.listdir(filepath):
#wi_01_6.7077__2018-10-22_09-29.hdf5
Expand Down Expand Up @@ -363,11 +363,11 @@ def json_create(filepath = '.'):
#wi_76_0.0010__51_LSTM_256_True_Dense_256_relu_Dropout_0.2__LSTM_128_True_Dense_128_relu_Dropout_0.2__LSTM_64_False_Dense_64_relu_Flatten___Dense_2830_softmax.hdf
def jsonify_the_old_style_file(filepath = '.'):
import seed, re, os, json
jsonFile = 'Alldata.json'; i = '0'
jsonFile = filepath + '/Alldata.json'; i = '0'
#-- Determine JSON file name --
while os.path.isfile(jsonFile):
i = str(int(i)+1)
jsonFile = f"Alldata{i}.json"
jsonFile = f"{filepath}/Alldata{i}.json"
tokenizer = filepath + '/toke_51_LSTM_256_True_Dense_256_relu_Dropout_0.2__LSTM_128_True_Dense_128_relu_Dropout_0.2__LSTM_64_False_Dense_64_relu_Flatten___Dense_2830_softmax.pkl'
jsondict = {'sequences': ['no_data']*112, 'model':None, 'loss': ['no_data']*112}
for filename in os.listdir(filepath):
Expand Down

0 comments on commit 3b59b19

Please sign in to comment.