Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
82a98521
Commit
82a98521
authored
Aug 09, 2010
by
Maria Dimashova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed SVM
parent
a2950d5d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
inner_functions.cpp
modules/ml/src/inner_functions.cpp
+1
-1
svm.cpp
modules/ml/src/svm.cpp
+2
-0
No files found.
modules/ml/src/inner_functions.cpp
View file @
82a98521
...
...
@@ -676,7 +676,7 @@ cvPreprocessCategoricalResponses( const CvMat* responses,
if
(
r_type
!=
CV_32FC1
&&
r_type
!=
CV_32SC1
)
CV_ERROR
(
CV_StsUnsupportedFormat
,
"Unsupported response type"
);
r_step
=
responses
->
step
?
responses
->
step
/
CV_ELEM_SIZE
(
responses
->
type
)
:
1
;
r_step
=
responses
->
rows
==
1
?
1
:
responses
->
step
/
CV_ELEM_SIZE
(
responses
->
type
)
;
if
(
sample_idx
)
{
...
...
modules/ml/src/svm.cpp
View file @
82a98521
...
...
@@ -1330,6 +1330,8 @@ bool CvSVM::do_train( int svm_type, int sample_count, int var_count, const float
const
int
sample_size
=
var_count
*
sizeof
(
samples
[
0
][
0
]);
int
i
,
j
,
k
;
cvClearMemStorage
(
storage
);
if
(
svm_type
==
ONE_CLASS
||
svm_type
==
EPS_SVR
||
svm_type
==
NU_SVR
)
{
int
sv_count
=
0
;
...
...
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