From d6b5ebd686aa04d45d40054fd07283106d03fbe6 Mon Sep 17 00:00:00 2001 From: Pierre Alexandre Tremblay Date: Thu, 16 Jul 2020 09:56:59 +0100 Subject: [PATCH] sorted problem of query in synthchaos example --- .../Examples/dataset/MLP-synth-control.scd | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/release-packaging/Examples/dataset/MLP-synth-control.scd b/release-packaging/Examples/dataset/MLP-synth-control.scd index 05abe19..7d832a5 100644 --- a/release-packaging/Examples/dataset/MLP-synth-control.scd +++ b/release-packaging/Examples/dataset/MLP-synth-control.scd @@ -28,12 +28,13 @@ 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, { - 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;}); + }, { //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;}); + }); }); }); };