From 93ebd16a2beb860c51ea632da71fa7b2c561d6e4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michael=20Zbyszy=C5=84ski?= <m.zbyszynski@gold.ac.uk>
Date: Fri, 29 Sep 2017 10:33:06 +0100
Subject: [PATCH] some notes from meeting with Fabian

---
 src/machineLearning/trainingData.h | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/src/machineLearning/trainingData.h b/src/machineLearning/trainingData.h
index 614f967..e9c12eb 100644
--- a/src/machineLearning/trainingData.h
+++ b/src/machineLearning/trainingData.h
@@ -37,12 +37,22 @@ namespace rapidmix {
         struct phrase {
             uint32_t uniqueId;
             std::string label; //TODO: Need to work this with templates
-            std::vector<std::string> columnNames;
+            std::vector<std::string> columnNames; //equal to the number of inputs
             std::vector<element> elements;
+            
+            void addElement (const std::vector<double> &input, const std::vector<double> &output)
+            {
+                
+            }
         };
         
         std::vector<phrase> trainingSet;
         
+        //TODO: Deleting phrases (last or by label)
+        //Design ideas to make phrase building stateless:
+        //phrase& createNewPhrase();
+        //addElementToPhrase();
+        
         /** Create a new phrase that can be recorded into. Returns phrase id */
         uint32_t startRecording(); //FIXME: this should go away. -MZ
         
@@ -71,7 +81,6 @@ namespace rapidmix {
         std::vector<std::string> getColumnNames();
         void setColumnNames(const std::vector<std::string> &columnNames);
         
-        
         /** Get a JSON representation of the data set in the form of a styled string */
         std::string getJSON();
         /** Write a JSON version of the training set to specified file path */
-- 
GitLab