Search in sources :

Example 1 with Default

use of nars.nar.Default 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);
}
Also used : QVis(nars.rl.example.QVis) Default(nars.nar.Default) NAR(nars.NAR)

Example 2 with Default

use of nars.nar.Default in project narchy by automenta.

the class RasterHierarchy method main.

public static void main(String[] args) {
    // RasterHierarchy rh = new RasterHierarchy(8, 640, 480, 12, 2);
    // RasterHierarchy rh = new RasterHierarchy(3, 640, 480, 5, 2);
    nar = new Default();
    // NARSwing swing = new NARSwing(nar);
    RasterHierarchy rh = new RasterHierarchy(6, 800, 600, 16, 1.619f);
    if (rh != null)
        rh.process();
}
Also used : Default(nars.nar.Default)

Aggregations

Default (nars.nar.Default)2 NAR (nars.NAR)1 QVis (nars.rl.example.QVis)1