diff --git a/word_based.ipynb b/word_based.ipynb index 3a61558..7c3d539 100644 --- a/word_based.ipynb +++ b/word_based.ipynb @@ -184,7 +184,7 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": 13, "metadata": {}, "outputs": [], "source": [ @@ -255,7 +255,7 @@ " #-- Fit model -- ---- --- --- --- ---- --- --- ---- --- --- --- --- --- --- --- --- \n", " history_callback = modelFit(model, modelName, X, y, seq_length, batch_size, epochs, results_path)\n", " loss_history = history_callback.history\n", - " with open(results_path.rstrip('/').lstrip('/') + f'/{modelName}_loss_history.txt', 'w+') as f:\n", + " with open(results_path.rstrip('/').lstrip('/') + f'/loss_history_{modelName}.txt', 'w+') as f:\n", " f.write(str(loss_history))" ] }, diff --git a/word_based.py b/word_based.py index a76809c..cf366c5 100644 --- a/word_based.py +++ b/word_based.py @@ -165,7 +165,7 @@ def defineModel(vocab_size, seq_length, modelList, length, input_shape): return model, modelName -# In[7]: +# In[13]: def trainModelComplete(results_path): @@ -235,7 +235,7 @@ def trainModelComplete(results_path): #-- Fit model -- ---- --- --- --- ---- --- --- ---- --- --- --- --- --- --- --- --- history_callback = modelFit(model, modelName, X, y, seq_length, batch_size, epochs, results_path) loss_history = history_callback.history - with open(results_path.rstrip('/').lstrip('/') + f'/{modelName}_loss_history.txt', 'w+') as f: + with open(results_path.rstrip('/').lstrip('/') + f'/loss_history_{modelName}.txt', 'w+') as f: f.write(str(loss_history))