Skip to content
This repository has been archived by the owner on Nov 21, 2023. It is now read-only.

Commit

Permalink
Removes the tf.train.Saver().save(), causes to save the wrong checkpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
AFAgarap committed Oct 29, 2017
1 parent cea5c9a commit 6e63f1d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions models/gru_softmax/gru_softmax.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,6 @@ def train(self, checkpoint_path, log_path, model_name, epochs, train_data, train

print('EOF -- Testing done at step {}'.format(step))

saver.save(sess=sess, save_path=os.path.join(checkpoint_path, model_name), global_step=step)

@staticmethod
def predict(batch_size, cell_size, dropout_rate, num_classes, test_data, test_size, checkpoint_path, result_path):
"""Classifies the data whether there is an intrusion or none
Expand Down
2 changes: 0 additions & 2 deletions models/gru_svm/gru_svm.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,6 @@ def train(self, checkpoint_path, log_path, model_name, epochs, train_data, train

print('EOF -- Testing done at step {}'.format(step))

saver.save(sess=sess, save_path=os.path.join(checkpoint_path, model_name), global_step=step)

@staticmethod
def predict(batch_size, cell_size, dropout_rate, num_classes, test_data, test_size, checkpoint_path, result_path):
"""Classifies the data whether there is an intrusion or none
Expand Down
2 changes: 0 additions & 2 deletions models/svm/svm.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,6 @@ def train(self, checkpoint_path, log_path, model_name, epochs, result_path, trai

print('EOF -- Testing done at step {}'.format(step))

saver.save(sess, checkpoint_path + model_name, global_step=step)

@staticmethod
def predict(batch_size, num_classes, test_data, test_size, checkpoint_path, result_path):
"""Classifies the data whether there is an intrusion or none
Expand Down

0 comments on commit 6e63f1d

Please sign in to comment.