question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Create a python wrapper and unit test for the new `bounded_rand_int` C function used in LibSVM and LibLinear

See original GitHub issue

Following 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:closed
  • Created 3 years ago
  • Comments:12 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
Justin-Hubercommented, Apr 7, 2020

Can I take this issue?

0reactions
Justin-Hubercommented, May 7, 2020

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found