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.

Add sklearn.show_versions() similar to pandas.show_versions (with numpy blas binding info)

See original GitHub issue

Some numeric issues are related to the specific blas that numpy is using. I’m wondering if it makes sense to add the relevant system_info invocations to the template to make it easier for people to report.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
rthcommented, Jul 16, 2018

@lesteve suggested we could add something like pandas.show_versions() that would print all the relevant information for debugging. For instance, on my laptop, I get,

>>> pd.show_versions()
INSTALLED VERSIONS
------------------
commit: None
python: 3.6.5.final.0
python-bits: 64
OS: Linux
OS-release: 4.11.6-gentoo
machine: x86_64
processor: Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz
byteorder: little
LC_ALL: None
LANG: en_GB.UTF-8
LOCALE: en_GB.UTF-8

pandas: 0.23.0
pytest: 3.5.1
pip: 10.0.1
setuptools: 39.1.0
Cython: 0.27.3
numpy: 1.14.3
scipy: 1.1.0
pyarrow: None
xarray: None
IPython: 6.4.0
sphinx: None
patsy: None
dateutil: 2.7.3
pytz: 2018.4
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: 2.2.2
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: None
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None

we certainly don’t care about all the dependencies that pandas might, but I agree that for scikit-learn, having e.g.

would be definitely useful for debuging. It’s more practical to have small function for those, than a copy passable snippet (particularly if it becomes more complex).

Tagging this for v0.20 as this would be fairly easy to do, and help with the maintenance after the release…

0reactions
aboucaudcommented, Jul 17, 2018

Good point we can modify only the rst doc for now and delay the changes in .md until the release.

Will do.

I would be in favour of making it accessible at from the root namespace so that you can do from sklearn import show_versions

Agreed. I would have suggested to add from sklearn.utils import show_versions in sklearn.__init__.py instead of putting the file there. Does that sound ok ?

Maybe optionally include the blas stuff?

I wrote it as an option for now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installing NumPy
Python and NumPy installation guide. Installing and managing packages in Python is complicated, there are a number of alternative solutions for most tasks....
Read more >
Installing the development version of scikit-learn
This section introduces how to install the main branch of scikit-learn. This can be done by either installing a nightly build or building...
Read more >
Speed-up numpy with Intel's Math Kernel Library (MKL)
The numpy package is at the core of scientific computing in python. It is the go-to tool for implementing any numerically intensive tasks....
Read more >
How to shrink NumPy, SciPy, Pandas, and Matplotlib for your ...
The important thing here is to have OpenBLAS recognized and mapped to the correct directory. This will enable NumPy and SciPy to leverage...
Read more >
Check pandas version: pd.show_versions - nkmk note
Like many other packages, you can get the version number of pandas with the ... Print detailed information about pandas: pd.show_versions().
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