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
d771596f
"git@developer.sourcefind.cn:OpenDAS/d2go.git" did not exist on "baded43268a09625027228cdfd3d32c37e97083f"
Commit
d771596f
authored
May 04, 2014
by
Davis King
Browse files
Clarified spec and also slightly improved usability
parent
d9d6fa12
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
dlib/svm/svm_multiclass_linear_trainer.h
dlib/svm/svm_multiclass_linear_trainer.h
+2
-1
dlib/svm/svm_multiclass_linear_trainer_abstract.h
dlib/svm/svm_multiclass_linear_trainer_abstract.h
+2
-0
No files found.
dlib/svm/svm_multiclass_linear_trainer.h
View file @
d771596f
...
@@ -263,7 +263,8 @@ namespace dlib
...
@@ -263,7 +263,8 @@ namespace dlib
)
)
{
{
learn_nonnegative_weights
=
value
;
learn_nonnegative_weights
=
value
;
prior
=
trained_function_type
();
if
(
learns_nonnegative_weights
)
prior
=
trained_function_type
();
}
}
void
set_c
(
void
set_c
(
...
...
dlib/svm/svm_multiclass_linear_trainer_abstract.h
View file @
d771596f
...
@@ -175,6 +175,8 @@ namespace dlib
...
@@ -175,6 +175,8 @@ namespace dlib
/*!
/*!
ensures
ensures
- #learns_nonnegative_weights() == value
- #learns_nonnegative_weights() == value
- if (value == true) then
- #has_prior() == false
!*/
!*/
void
set_prior
(
void
set_prior
(
...
...
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