Skip to content
Snippets Groups Projects
Commit d59022aa authored by Michael Zbyszyński's avatar Michael Zbyszyński
Browse files

adjusting to templated class alias

parent 5cc56129
Branches
No related merge requests found
......@@ -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;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment