Skip to content

Commit

Permalink
DOC Encourage contributors to use sklearn.show_versions() (scikit-lea…
Browse files Browse the repository at this point in the history
qinhanmin2014 authored Oct 2, 2018
1 parent 11612fc commit 5313325
Showing 2 changed files with 18 additions and 7 deletions.
22 changes: 15 additions & 7 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -178,13 +178,21 @@ following rules before submitting:
as your Python, scikit-learn, numpy, and scipy versions. This information
can be found by running the following code snippet:

```python
import platform; print(platform.platform())
import sys; print("Python", sys.version)
import numpy; print("NumPy", numpy.__version__)
import scipy; print("SciPy", scipy.__version__)
import sklearn; print("Scikit-Learn", sklearn.__version__)
```
For scikit-learn >= 0.20:

```python
import sklearn; sklearn.show_versions()
```

For scikit-learn < 0.20:

```python
import platform; print(platform.platform())
import sys; print("Python", sys.version)
import numpy; print("NumPy", numpy.__version__)
import scipy; print("SciPy", scipy.__version__)
import sklearn; print("Scikit-Learn", sklearn.__version__)
```

- Please be specific about what estimators and/or functions are involved
and the shape of the data, as appropriate; please include a
3 changes: 3 additions & 0 deletions ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -43,6 +43,9 @@ it in the issue: https://gist.github.com
#### Versions
<!--
Please run the following snippet and paste the output below.
For scikit-learn >= 0.20:
import sklearn; sklearn.show_versions()
For scikit-learn < 0.20:
import platform; print(platform.platform())
import sys; print("Python", sys.version)
import numpy; print("NumPy", numpy.__version__)

0 comments on commit 5313325

Please sign in to comment.