Skip to content

ml: refactored tests - #15959

Merged
alalek merged 5 commits into
opencv:3.4from
mshabunin:refactor-ml-tests
Nov 25, 2019
Merged

alalek merged 5 commits into
opencv:3.4from
mshabunin:refactor-ml-tests

Conversation

@mshabunin

@mshabunin mshabunin commented Nov 20, 2019 •

Copy link
Copy Markdown
Contributor

This pullrequest changes

  • reorganized test files
  • use parametrized tests where appropriate
  • use stable theRNG in most tests
  • use modern style with EXPECT_/ASSERT_ checks

Notes:

  • KNearest/KDTree is broken - does not initialize output (this problem was previously shadowed by preceding test code).
  • opencv_extra/testdata/ml/{a,sl}validataion.xml can be removed (I'll clean them later)

* use parametrized tests where appropriate
* use stable theRNG in most tests
* use modern style with EXPECT_/ASSERT_ checks
Comment thread modules/ml/test/test_knearest.cpp Resolved
Comment thread modules/ml/test/test_save_load.cpp Resolved
Comment thread modules/ml/test/test_svmtrainauto.cpp Resolved
Comment thread modules/ml/test/test_ann.cpp Resolved
Comment thread modules/ml/test/test_bayes.cpp Resolved
Comment thread modules/ml/test/test_kmeans.cpp Resolved
Comment thread modules/ml/test/test_bayes.cpp Resolved
Comment thread modules/ml/test/test_ann.cpp Resolved
@alalek
alalek merged commit 5ff1fab into opencv:3.4 Nov 25, 2019
czgdp1807 pushed a commit to czgdp1807/opencv that referenced this pull request Nov 26, 2019
ml: refactored tests

* use parametrized tests where appropriate
* use stable theRNG in most tests
* use modern style with EXPECT_/ASSERT_ checks
@alalek alalek mentioned this pull request Nov 29, 2019
@mshabunin
mshabunin deleted the refactor-ml-tests branch July 14, 2020 17:15
SavyaSanchi-Sharma pushed a commit to SavyaSanchi-Sharma/opencv that referenced this pull request Jul 30, 2026
ml: refactored tests

* use parametrized tests where appropriate
* use stable theRNG in most tests
* use modern style with EXPECT_/ASSERT_ checks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants