From 7a2e9ffa034f20a19838208d2dbe1abe6759c998 Mon Sep 17 00:00:00 2001 From: Niko Date: Wed, 19 Jul 2023 12:33:16 +0200 Subject: [PATCH] fixing the parameters is working --- ActiveBOWeb/src/components/RosBar.vue | 4 ++++ ActiveBOWeb/src/store/PolicyStore.js | 3 +++ 2 files changed, 7 insertions(+) diff --git a/ActiveBOWeb/src/components/RosBar.vue b/ActiveBOWeb/src/components/RosBar.vue index 5613ac3..8cb2b19 100644 --- a/ActiveBOWeb/src/components/RosBar.vue +++ b/ActiveBOWeb/src/components/RosBar.vue @@ -117,6 +117,10 @@ state_subscriber.subscribe((msg) => { rlstore.setCurrentEpisode(msg.current_episode); rlstore.setBestReward(msg.best_reward); rlstore.setLastUserReward(msg.last_user_reward); + + if (msg.current_episode === 1) { + pstore.resetWeights_Fixed(); + } }); // RL Service + Feedback Subscriber diff --git a/ActiveBOWeb/src/store/PolicyStore.js b/ActiveBOWeb/src/store/PolicyStore.js index c09636d..e41c867 100644 --- a/ActiveBOWeb/src/store/PolicyStore.js +++ b/ActiveBOWeb/src/store/PolicyStore.js @@ -40,5 +40,8 @@ export const usePStore = defineStore("Policy Store", { setTrigger() { this.trigger = !this.trigger; }, + resetWeights_Fixed() { + this.weights_fixed = Array(this.nr_weights).fill(false); + }, }, });