use of nars.rl.example.QVis in project narchy by automenta.
the class ALEAgent method initNARS.
protected void initNARS() {
this.nar = new NAR(new Default(3000, 10, 3).setInternalExperience(null));
int memoryCyclesPerFrame = 2;
nar.param.duration.set(memoryCyclesPerFrame * 3);
nar.setCyclesPerFrame(memoryCyclesPerFrame);
nar.param.outputVolume.set(0);
nar.param.executionThreshold.set(0.65);
nar.param.shortTermMemoryHistory.set(3);
nar.input("schizo(I)!");
QLAgent agent = new QLAgent(nar, "a", "<be --> good>", this);
agent.ql.brain.setEpsilon(0.1);
mi = new QVis(agent);
/*agent.add(new ShapePerception(new Supplier<BufferedImage>() {
@Override
public BufferedImage get() {
return buffer;
}
}));*/
// agent.add(new AEPerception("AE", 0.25f, 64).setLearningRate(0.1));
// agent.add(new ALEFeaturePerception(0.75f));
agent.add(new AEALEFeaturePerception(0.75f));
Video.themeInvert();
// NARSwing s = new NARSwing(nar);
}