New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MRG+1] Take over PR #7647 - Add a "filename" attribute to datasets that have a CSV file #9101

Merged
merged 23 commits into from Dec 4, 2017
Commits
Jump to file or symbol
Failed to load files and symbols.
+8 −6
Diff settings

Always

Just for now

Viewing a subset of changes. View all

fix dostests for tutorial/basic examples

  • Loading branch information...
alex-33 authored and maskani-moh committed Oct 17, 2016
commit 66eca0f1f200effe11ec4df82f3188e825c82a00
@@ -148,15 +148,17 @@ learn::
The data and target can be stored in one file (e.g. iris, boston, breast_cancer) or
in several (e.g. diabetes, linnerud).
>>> from sklearn.datasets import load_boston
>>> boston = load_boston()
>>> print(boston.filename)
.*/sklearn/datasets/data/boston_house_prices.csv
>>> print(boston.filename) # doctest: +SKIP
(some-path)/sklearn/datasets/data/boston_house_prices.csv
>>> from sklearn.datasets import load_diabetes
>>> diabetes = load_diabetes()
>>> print(diabetes.data_filename)
.*/sklearn/datasets/data/diabetes_data.csv.gz
>>> print(diabetes.target_filename)
.*/sklearn/datasets/data/diabetes_target.csv.gz
>>> print(diabetes.data_filename) # doctest: +SKIP
(some-path)/sklearn/datasets/data/diabetes_data.csv.gz
>>> print(diabetes.target_filename) # doctest: +SKIP
(some-path)/sklearn/datasets/data/diabetes_target.csv.gz
Learning and predicting
------------------------
ProTip! Use n and p to navigate between commits in a pull request.