Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
8fc2f436
Commit
8fc2f436
authored
Nov 16, 2013
by
Davis King
Browse files
Fixed grammar/confusing sentence.
parent
e8b77f0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
examples/multiclass_classification_ex.cpp
examples/multiclass_classification_ex.cpp
+3
-3
No files found.
examples/multiclass_classification_ex.cpp
View file @
8fc2f436
...
@@ -178,7 +178,7 @@ void generate_data (
...
@@ -178,7 +178,7 @@ void generate_data (
m
(
0
)
=
2
*
radius
*
rnd
.
get_random_double
()
-
radius
;
m
(
0
)
=
2
*
radius
*
rnd
.
get_random_double
()
-
radius
;
m
(
1
)
=
sign
*
sqrt
(
radius
*
radius
-
m
(
0
)
*
m
(
0
));
m
(
1
)
=
sign
*
sqrt
(
radius
*
radius
-
m
(
0
)
*
m
(
0
));
// add this sample to our set of
samples we will run k-mean
s
// add this sample to our set of
training sample
s
samples
.
push_back
(
m
);
samples
.
push_back
(
m
);
labels
.
push_back
(
1
);
labels
.
push_back
(
1
);
}
}
...
@@ -193,7 +193,7 @@ void generate_data (
...
@@ -193,7 +193,7 @@ void generate_data (
m
(
0
)
=
2
*
radius
*
rnd
.
get_random_double
()
-
radius
;
m
(
0
)
=
2
*
radius
*
rnd
.
get_random_double
()
-
radius
;
m
(
1
)
=
sign
*
sqrt
(
radius
*
radius
-
m
(
0
)
*
m
(
0
));
m
(
1
)
=
sign
*
sqrt
(
radius
*
radius
-
m
(
0
)
*
m
(
0
));
// add this sample to our set of
samples we will run k-mean
s
// add this sample to our set of
training sample
s
samples
.
push_back
(
m
);
samples
.
push_back
(
m
);
labels
.
push_back
(
2
);
labels
.
push_back
(
2
);
}
}
...
@@ -212,7 +212,7 @@ void generate_data (
...
@@ -212,7 +212,7 @@ void generate_data (
m
(
0
)
+=
25
;
m
(
0
)
+=
25
;
m
(
1
)
+=
25
;
m
(
1
)
+=
25
;
// add this sample to our set of
samples we will run k-mean
s
// add this sample to our set of
training sample
s
samples
.
push_back
(
m
);
samples
.
push_back
(
m
);
labels
.
push_back
(
3
);
labels
.
push_back
(
3
);
}
}
...
...
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