fixing the parameters is working

This commit is contained in:
Niko Feith 2023-07-19 12:33:16 +02:00
parent 446666f387
commit 7a2e9ffa03
2 changed files with 7 additions and 0 deletions

View File

@ -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

View File

@ -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);
},
},
});