|
|
|
|
@ -6,7 +6,9 @@ var input = Buffer.alloc(s,2);
|
|
|
|
|
var output = Buffer.alloc(s,10);
|
|
|
|
|
var maxIter = 1000;
|
|
|
|
|
var learnRate = 0.01;
|
|
|
|
|
var mlp = FluidMLPRegressor(s,[6],1,maxIter,learnRate);
|
|
|
|
|
var momentum = 0.5;
|
|
|
|
|
var validation = 0.1;
|
|
|
|
|
var mlp = FluidMLPRegressor(s,[6],1,maxIter,learnRate,momentum,1,validation);
|
|
|
|
|
var entry = 0;
|
|
|
|
|
|
|
|
|
|
~inData = FluidDataSet(s,\indata);
|
|
|
|
|
@ -52,10 +54,14 @@ d = Button(w, Rect(730,10,50, 20)).states_([["entry", Color.white, Color.grey],
|
|
|
|
|
};
|
|
|
|
|
StaticText(w,Rect(732,260,50,20)).string_("Error:");
|
|
|
|
|
e = TextField(w,Rect(730,280,50,20)).string_(0.asString);
|
|
|
|
|
StaticText(w,Rect(732,150,50,20)).string_("rate:");
|
|
|
|
|
g = TextField(w,Rect(730,170,50,20)).string_(learnRate.asString).action_{|in|learnRate = in.value;};
|
|
|
|
|
StaticText(w,Rect(732,190,50,20)).string_("maxIter:");
|
|
|
|
|
h = TextField(w,Rect(730,210,50,20)).string_(maxIter.asString).action_{|in|maxIter = in.value;};
|
|
|
|
|
StaticText(w,Rect(732,70,50,20)).string_("rate:");
|
|
|
|
|
TextField(w,Rect(730,90,50,20)).string_(learnRate.asString).action_{|in|learnRate = in.value;learnRate.postln;};
|
|
|
|
|
StaticText(w,Rect(732,110,50,20)).string_("momentum:");
|
|
|
|
|
TextField(w,Rect(730,130,50,20)).string_(momentum.asString).action_{|in|momentum = in.value;momentum.postln;};
|
|
|
|
|
StaticText(w,Rect(732,150,50,20)).string_("maxIter:");
|
|
|
|
|
TextField(w,Rect(730,170,50,20)).string_(maxIter.asString).action_{|in|maxIter = in.value;maxIter.postln;};
|
|
|
|
|
StaticText(w,Rect(732,190,50,20)).string_("validation:");
|
|
|
|
|
TextField(w,Rect(730,210,50,20)).string_(validation.asString).action_{|in|validation = in.value;validation.postln;};
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
//2- the synth (CAREFUL - LOUD!)
|
|
|
|
|
|