diff --git a/examples/JUCE/regression_synth/Source/MainComponent.cpp b/examples/JUCE/regression_synth/Source/MainComponent.cpp index 4031a855acb9d1f84a8a4db9e9cdc3bba699768c..91629a50ec51a30017b659b109333108f4ec93ce 100644 --- a/examples/JUCE/regression_synth/Source/MainComponent.cpp +++ b/examples/JUCE/regression_synth/Source/MainComponent.cpp @@ -329,7 +329,7 @@ public: if (KeyPress::isKeyCurrentlyDown(KeyPress::spaceKey)) { std::vector<double> input = normaliseMouseSpace(_event.position.roundToInt(), drawingArea); - trainingExample<double> example; + trainingExample example; example.input = { input[0], input[1] }; example.output = { modulationFrequency, modulationDepth, centreFrequency, resonance }; trainingSet.push_back(example); @@ -424,8 +424,8 @@ private: /*** MACHINE LEARNING ***/ // Rapid regression - regression<double> rapidRegression; - std::vector<trainingExample<double> > trainingSet; + regression rapidRegression; + std::vector<trainingExample> trainingSet; // Program state bool trained;