Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
0c3952d5
Commit
0c3952d5
authored
Apr 28, 2013
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor changes to avoid compiler warnings from visual studio.
parent
758856df
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
cca.cpp
tools/python/src/cca.cpp
+1
-1
svm_c_trainer.cpp
tools/python/src/svm_c_trainer.cpp
+1
-1
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 (
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
);
}
...
...
tools/python/src/svm_c_trainer.cpp
View file @
0c3952d5
...
...
@@ -137,7 +137,7 @@ const binary_test _cross_validate_trainer (
const
trainer_type
&
trainer
,
const
std
::
vector
<
typename
trainer_type
::
sample_type
>&
x
,
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."
);
...
...
tools/python/src/vector.cpp
View file @
0c3952d5
...
...
@@ -33,7 +33,7 @@ string cv__repr__ (const cv& v)
{
std
::
ostringstream
sout
;
sout
<<
"dlib.vector(["
;
for
(
unsigned
long
i
=
0
;
i
<
v
.
size
();
++
i
)
for
(
long
i
=
0
;
i
<
v
.
size
();
++
i
)
{
sout
<<
v
(
i
);
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