Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
rapid-mix
RAPID-MIX_API
Commits
93ebd16a
Commit
93ebd16a
authored
Sep 29, 2017
by
Michael Zbyszyński
Browse files
some notes from meeting with Fabian
parent
23411c24
Changes
1
Show whitespace changes
Inline
Side-by-side
src/machineLearning/trainingData.h
View file @
93ebd16a
...
...
@@ -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 */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment