example use in a skill:
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.
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.