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
RapidLib
Commits
f698ede4
Commit
f698ede4
authored
Nov 22, 2016
by
Joseph Larralde
Browse files
update main.cpp
parent
d255442c
Changes
1
Show whitespace changes
Inline
Side-by-side
RapidAPI/RapidAPI/main.cpp
View file @
f698ede4
...
...
@@ -12,7 +12,9 @@ int main(int argc, const char * argv[]) {
regression
myNN
;
classification
myKnn
;
// gmm classification uses the first element of trainingExample.output as a label
gmmClassification
myGmm
;
// gmm regression uses trainingExample.output as output examples
gmmRegression
myGmr
;
std
::
vector
<
trainingExample
>
trainingSet
;
...
...
@@ -38,16 +40,14 @@ int main(int argc, const char * argv[]) {
regression
myNNfromFile
;
myNNfromFile
.
readJSON
(
filepath
);
std
::
vector
<
double
>
inputVec
=
{
2.0
,
44.2
};
// std::cout << "before: " << myNN.process(inputVec)[0] << std::endl;
// std::cout << "from string: " << myNNfromString.process(inputVec)[0] << std::endl;
// std::cout << "from file: " << myNNfromFile.process(inputVec)[0] << std::endl;
// std::vector<double> out = myGmm.process(inputVec);
// std::cout << "GMM : " << out[0] << std::endl;
// std::cout << out.size() << std::endl;
std
::
vector
<
double
>
inputVec
=
{
2.0
,
44.2
};
std
::
cout
<<
"before: "
<<
myNN
.
process
(
inputVec
)[
0
]
<<
std
::
endl
;
std
::
cout
<<
"from string: "
<<
myNNfromString
.
process
(
inputVec
)[
0
]
<<
std
::
endl
;
std
::
cout
<<
"from file: "
<<
myNNfromFile
.
process
(
inputVec
)[
0
]
<<
std
::
endl
;
std
::
cout
<<
"GMM : "
<<
myGmm
.
process
(
inputVec
)[
0
]
<<
std
::
endl
;
std
::
cout
<<
"GMR : "
<<
myGmr
.
process
(
inputVec
)[
0
]
<<
std
::
endl
;
inputVec
=
{
0.2
,
0.7
};
std
::
cout
<<
"GMM : "
<<
myGmm
.
process
(
inputVec
)[
0
]
<<
std
::
endl
;
std
::
cout
<<
"GMR : "
<<
myGmr
.
process
(
inputVec
)[
0
]
<<
std
::
endl
;
...
...
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