8000 DOC Encourage contributors to use sklearn.show_versions() (#12225) · scikit-learn/scikit-learn@5313325 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5313325

Browse files
DOC Encourage contributors to use sklearn.show_versions() (#12225)
1 parent 11612fc commit 5313325

File tree

2 files changed

+18
-7
lines changed

2 files changed

+18
-7
lines changed

CONTRIBUTING.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -178,13 +178,21 @@ following rules before submitting:
178178
as your Python, scikit-learn, numpy, and scipy versions. This information
179179
can be found by running the following code snippet:
180180

181-
```python
182-
import platform; print(platform.platform())
183-
import sys; print("Python", sys.version)
184-
import numpy; print("NumPy", numpy.__version__)
185-
import scipy; print("SciPy", scipy.__version__)
186-
import sklearn; print("Scikit-Learn", sklearn.__version__)
187-
```
181+
For scikit-learn >= 0.20:
182+
183+
```python
184+
import sklearn; sklearn.show_versions()
185+
```
186+
187+
For scikit-learn < 0.20:
188+
189+
```python
190+
import platform; print(platform.platform())
191+
import sys; print("Python", sys.version)
192+
import numpy; print("NumPy", numpy.__version__)
193+
import scipy; print("SciPy", scipy.__version__)
194+
import sklearn; print("Scikit-Learn", sklearn.__version__)
195+
```
188196

189197
- Please be specific about what estimators and/or functions are involved
190198
and the shape of the data, as appropriate; please include a

ISSUE_TEMPLATE.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ it in the issue: https://gist.github.com
4343
#### Versions
4444
<!--
4545
Please run the following snippet and paste the output below.
46+
For scikit-learn >= 0.20:
47+
import sklearn; sklearn.show_versions()
48+
For scikit-learn < 0.20:
4649
import platform; print(platform.platform())
4750
import sys; print("Python", sys.version)
4851
import numpy; print("NumPy", numpy.__version__)

0 commit comments

Comments
 (0)
0