fixing the parameters is working
This commit is contained in:
parent
446666f387
commit
7a2e9ffa03
@ -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
|
||||
|
@ -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);
|
||||
},
|
||||
},
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user