svm: return type choice also for the predict on several samples (Patch #3360)


Added by Boris Mansencal over 11 years ago. Updated about 11 years ago.


Status:Done Start date:2013-11-06
Priority:Normal Due date:
Assignee:Maria Dimashova % Done:

0%

Category:ml
Target version:3.0
Affected version:branch 'master' (3.0-dev) Operating System:Any
Difficulty:Easy HW Platform:Any
Pull request:https://github.com/Itseez/opencv/pull/2214

Description

Currently, for the SVM classifier, if we want to specify the return value type (via "bool returnDFVal") for prediction, we have to use the predict() method taking only one sample.
The method taking several samples, and returning a results matrix, does not allow to specify the return value type (via "bool returnDFVal").
However, only this predict() method taking several samples is parallelized.

The attached patch allows to specify the type of the return value (add "bool returnDFVal") for the predict() method taking several samples.

I attach the patches for git 2.4 & git master.
I will try to do a git pull request...


Associated revisions

Revision 1d804bc6
Added by Vadim Pisarevsky over 10 years ago

Merge pull request #3360 from mirab:threshold_triangle

History

Updated by Dinar Ahmatnurov over 11 years ago

  • Status changed from New to Open

Updated by Alexander Smorkalov over 11 years ago

  • Target version changed from 2.4.7 to Next Hackathon

Updated by Steven Puttemans about 11 years ago

Could you maybe add the patches? I do not see any patches available.

Updated by Vladislav Vinogradov about 11 years ago

  • Pull request set to https://github.com/Itseez/opencv/pull/2210

Updated by Vladislav Vinogradov about 11 years ago

  • Pull request changed from https://github.com/Itseez/opencv/pull/2210 to https://github.com/Itseez/opencv/pull/2214
  • Affected version changed from branch '2.4' (2.4-dev) to branch 'master' (3.0-dev)
  • Target version deleted (Next Hackathon)

Updated by Vladislav Vinogradov about 11 years ago

The corresponding pull request was merged into master branch.
Thanks for contribution!

  • Status changed from Open to Done

Updated by Vladislav Vinogradov about 11 years ago

  • Target version set to 3.0

Also available in: Atom PDF