battle programmers alliance
Would you like to react to this message? Create an account in a few clicks or log in to continue.

battle programmers allianceLog in

the LivinGrimoire Artificial General Intelligence software design pattern forum

descriptionbetter learnability module Emptybetter learnability module

more_horiz
example use in a skill:

Code:

package AXJava;

import LivinGrimoire.DiSkillV2;

public class D2Nyaa extends DiSkillV2 {
    private AXLMorseCode AXLmorse = new AXLMorseCode();
    private AXLNeuroSama AXLns = new AXLNeuroSama();
    private AXLHub axlHub = new AXLHub(AXLns,AXLmorse);
    private AXLearnability learn = new AXLearnability(1);

    public D2Nyaa() {
        learn.defcons.add("bad girl");
    }

    @Override
    public void input(String ear, String skin, String eye) {
        if(ear == ""){return;}
        if(learn.mutateAlg(ear)){
            axlHub.cycleDecoration();
        };
        String result = axlHub.decorate(ear);
        learn.pendAlgWithoutConfirmation();
        this.outAlg = this.diSkillUtils.simpleVerbatimAlgorithm("decorated",result);
    }
}


you should check out the AXLearnability class.
in this example after trying an algorithm, (tolerance amount of) negative reinforcement triggers an algorithmic/behavior shift.
I wrote this test on the fly, but I am very pleased with the results and potential of the learnability the module gives.

descriptionbetter learnability module EmptyRe: better learnability module

more_horiz
here how the main code looks like

Code:

        Chobits c1 = new Chobits();
        c1.addSkill(new D2Nyaa());
        http://c1.addSkill(new DiHelloWorld());
        c1.think("hey","","");
        c1.think("bad girl","","");
        System.out.println(c1.think("hello","",""));
        c1.think("bad girl","","");
        System.out.println(c1.think("hey","",""));
        System.out.println(c1.think("","",""));
        System.out.println(c1.think("","",""));
        c1.think("bad girl","","");
        System.out.println(c1.think("1","",""));
        System.out.println(c1.think("2","",""));
        System.out.println(c1.think("3","",""));
        System.out.println(c1.think("4","",""));
        System.out.println(c1.think("hello","",""));
        c1.think("bad girl","","");
        System.out.println(c1.think("hey","",""));
privacy_tip Permissions in this forum:
You cannot reply to topics in this forum
power_settings_newLogin to reply