You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 19, 2020. It is now read-only.
What would you like to submit? (put an 'x' inside the bracket that applies)
question
bug report
feature request
Issue description
Hy,
I am currently working on the QLearning Animat sample. When running test1 with 256 states, 8 sensors and 4 actions everything works. After reducing the sensors to 4 and the states to 16 the learning will not succeed, even if I change the number of iterations to 1000. Can somebody explain, why this is not working? I attached the changed code, maybe this will help.
Best regards :)
...qLearning=newQLearning(16,4,newTabuSearchExploration(4,newEpsilonGreedyExploration(explorationRate)));
...
private int GetStateNumber(intx,inty){intc1=(map[y-1,x]!=0)?1:0;intc2=(map[y,x+1]!=0)?1:0;intc3=(map[y+1,x]!=0)?1:0;intc4=(map[y,x-1]!=0)?1:0;returnc1|(c2<<1)|(c3<<2)|(c4<<3);}