From 60ff1dcdb6c9b1bbc709fcec82bde17734a4fc1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Costa?= Date: Thu, 25 Nov 2021 20:37:02 +0000 Subject: [PATCH] fix: corrected typo in WindowGRU partial_fit Simply fixing the small typo that prevents the WindowGRU partial_fit from completing --- nilmtk_contrib/disaggregate/WindowGRU.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nilmtk_contrib/disaggregate/WindowGRU.py b/nilmtk_contrib/disaggregate/WindowGRU.py index 2bf9950..184621e 100644 --- a/nilmtk_contrib/disaggregate/WindowGRU.py +++ b/nilmtk_contrib/disaggregate/WindowGRU.py @@ -46,7 +46,7 @@ def partial_fit(self, train_main, train_appliances, do_preprocessing=True, curre mains = train_main.reshape((-1,self.sequence_length,1)) app_reading = app_df.reshape((-1,1)) filepath = self.file_prefix + "-{}-epoch{}.h5".format( - "_".join(appliance_name.split()), + "_".join(app_name.split()), current_epoch, ) checkpoint = ModelCheckpoint(filepath,monitor='val_loss',verbose=1,save_best_only=True,mode='min')