sorted problem of query in synthchaos example

nix
Pierre Alexandre Tremblay 6 years ago
parent ae74be947d
commit d6b5ebd686

@ -28,14 +28,15 @@ f.action = {arg x,y; //if trained, predict the point f.x f.y
entering = 0;
entry = entry + 1;
{d.value = 0;}.defer;
});
if (trained == 1, {
}, { //if not entering a point
if (trained == 1, { //if trained
input.setn(0, [f.x, f.y]);
mlp.predictPoint(input,output,0,{
output.getn(0,10,{
|x|va = x; b.set(\val, va); {a.value = va;}.defer;});
});
});
});
};
c = Button(w, Rect(730,240,50, 20)).states_([["train", Color.red, Color.white], ["trained", Color.white, Color.grey]]).action_{

Loading…
Cancel
Save