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
0c3952d5
"...git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "5dda1735fda047f4242d28f91e6e457b9760d52d"
Commit
0c3952d5
authored
Apr 28, 2013
by
Davis King
Browse files
Minor changes to avoid compiler warnings from visual studio.
parent
758856df
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
tools/python/src/cca.cpp
tools/python/src/cca.cpp
+1
-1
tools/python/src/svm_c_trainer.cpp
tools/python/src/svm_c_trainer.cpp
+1
-1
tools/python/src/vector.cpp
tools/python/src/vector.cpp
+1
-1
No files found.
tools/python/src/cca.cpp
View file @
0c3952d5
...
@@ -48,7 +48,7 @@ matrix<double,0,1> apply_cca_transform (
...
@@ -48,7 +48,7 @@ matrix<double,0,1> apply_cca_transform (
const
sparse_vect
&
v
const
sparse_vect
&
v
)
)
{
{
pyassert
(
max_index_plus_one
(
v
)
<=
m
.
nr
(),
"Invalid Inputs"
);
pyassert
(
(
long
)
max_index_plus_one
(
v
)
<=
m
.
nr
(),
"Invalid Inputs"
);
return
sparse_matrix_vector_multiply
(
trans
(
m
),
v
);
return
sparse_matrix_vector_multiply
(
trans
(
m
),
v
);
}
}
...
...
tools/python/src/svm_c_trainer.cpp
View file @
0c3952d5
...
@@ -137,7 +137,7 @@ const binary_test _cross_validate_trainer (
...
@@ -137,7 +137,7 @@ const binary_test _cross_validate_trainer (
const
trainer_type
&
trainer
,
const
trainer_type
&
trainer
,
const
std
::
vector
<
typename
trainer_type
::
sample_type
>&
x
,
const
std
::
vector
<
typename
trainer_type
::
sample_type
>&
x
,
const
std
::
vector
<
double
>&
y
,
const
std
::
vector
<
double
>&
y
,
const
long
folds
const
unsigned
long
folds
)
)
{
{
pyassert
(
is_binary_classification_problem
(
x
,
y
),
"Training data does not make a valid training set."
);
pyassert
(
is_binary_classification_problem
(
x
,
y
),
"Training data does not make a valid training set."
);
...
...
tools/python/src/vector.cpp
View file @
0c3952d5
...
@@ -33,7 +33,7 @@ string cv__repr__ (const cv& v)
...
@@ -33,7 +33,7 @@ string cv__repr__ (const cv& v)
{
{
std
::
ostringstream
sout
;
std
::
ostringstream
sout
;
sout
<<
"dlib.vector(["
;
sout
<<
"dlib.vector(["
;
for
(
unsigned
long
i
=
0
;
i
<
v
.
size
();
++
i
)
for
(
long
i
=
0
;
i
<
v
.
size
();
++
i
)
{
{
sout
<<
v
(
i
);
sout
<<
v
(
i
);
if
(
i
+
1
<
v
.
size
())
if
(
i
+
1
<
v
.
size
())
...
...
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