Create a python wrapper and unit test for the new `bounded_rand_int` C function used in LibSVM and LibLinear
See original GitHub issueFollowing PR #13511 a new random number generator was created: bounded_rand_int
It currently has no dedicated unit test, which could be dangerous on the long run. I suggest that we create a python wrapper for it and create at least one dedicated python unit test to ensure correct randomization quality on all platforms.
For example the test could generate various random integers with various bounds, and assess that the resulting histogram is “flat” (uniform distribution). I do not know if we need to go for dedicated uniformity tests like Chi Square or Kolmogorov Smirnov…
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (11 by maintainers)
Top Results From Across the Web
LIBSVM -- A Library for Support Vector Machines
An integrated and easy-to-use tool for support vector classification and regression.
Read more >LIBLINEAR -- A Library for Large Linear Classification - GitHub
LIBLINEAR is a simple package for solving large-scale regularized linear classification, regression and outlier detection.
Read more >sklearn.svm.LinearSVC — scikit-learn 1.2.0 documentation
Linear Support Vector Classification. Similar to SVC with parameter kernel='linear', but implemented in terms of liblinear rather than libsvm, so it has more ......
Read more >Building and testing a hybrid Python/C++ package
Unit tests for C++ code, independent of Python wrappers; A unified build-and-test command that builds all extension modules and runs both Python ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Can I take this issue?
I submitted a pull request (https://dev.azure.com/scikit-learn/scikit-learn/_build/results?buildId=16354&view=results) but the installation on all platforms failed. I’m not sure how to make sense of the logs. They all fail compiling the cython generated .c files for the _newrand.pyx I added. Any ideas?