Skip to content
Snippets Groups Projects
Commit 67fe847e authored by tomrink's avatar tomrink
Browse files

snapshot...

parent 7364d828
No related branches found
No related tags found
No related merge requests found
...@@ -584,8 +584,8 @@ class IcingIntensityNN: ...@@ -584,8 +584,8 @@ class IcingIntensityNN:
self.test_loss.reset_states() self.test_loss.reset_states()
self.test_accuracy.reset_states() self.test_accuracy.reset_states()
for abi_tst, temp_tst, lbfp_tst in self.test_dataset: for data0, label in self.test_dataset:
ds = tf.data.Dataset.from_tensor_slices((abi_tst, temp_tst, lbfp_tst)) ds = tf.data.Dataset.from_tensor_slices((data0, label))
ds = ds.batch(BATCH_SIZE) ds = ds.batch(BATCH_SIZE)
for mini_batch_test in ds: for mini_batch_test in ds:
self.predict(mini_batch_test) self.predict(mini_batch_test)
...@@ -599,8 +599,8 @@ class IcingIntensityNN: ...@@ -599,8 +599,8 @@ class IcingIntensityNN:
self.build_evaluation() self.build_evaluation()
self.do_training() self.do_training()
def run_restore(self, matchup_dict, ckpt_dir): def run_restore(self, filename, ckpt_dir, train_dict=None, valid_dict=None):
self.setup_pipeline(None, None, matchup_dict) self.setup_pipeline(filename, train_idxs=train_dict, test_idxs=valid_dict)
self.build_model() self.build_model()
self.build_training() self.build_training()
self.build_evaluation() self.build_evaluation()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment