How to load sklearn datasets manually?
up vote
0
down vote
favorite
I would like to load a larger dataset from the sklearn
datatsets (California housing prices). Using the default command does not work for me due to proxy issues (the dataset download corrupted).
d = datasets.fetch_california_housing()
After downloading it, I place it in the directory found by datasets.get_data_home()
(/home/username/scikit_learn_data/
) and place the files in that folder and also in the cal_housing folder in that directory and in the CaliforniaHousing folder to check all the options. I also tried specifying the custom location with data_home parameter.
d = datasets.fetch_california_housing(data_home='/home/username/scikit_learn_data/')
Nothing works.
How can I load the dataset manually?
python scikit-learn
add a comment |
up vote
0
down vote
favorite
I would like to load a larger dataset from the sklearn
datatsets (California housing prices). Using the default command does not work for me due to proxy issues (the dataset download corrupted).
d = datasets.fetch_california_housing()
After downloading it, I place it in the directory found by datasets.get_data_home()
(/home/username/scikit_learn_data/
) and place the files in that folder and also in the cal_housing folder in that directory and in the CaliforniaHousing folder to check all the options. I also tried specifying the custom location with data_home parameter.
d = datasets.fetch_california_housing(data_home='/home/username/scikit_learn_data/')
Nothing works.
How can I load the dataset manually?
python scikit-learn
Have you tried this? scikit-learn.org/stable/modules/generated/…
– nick
Nov 7 at 6:12
Hmm.. the datatset comes in form of two files in particular format, which should be loaded together, so not sure if it would work.
– cerebrou
Nov 7 at 6:22
Can you show your code and the error?
– enamoria
Nov 7 at 6:50
The error is that the dataset is not found and I described the code above. I also added another line of code.
– cerebrou
Nov 7 at 7:01
How and what did you download and where did you put it? To usefetch_california_housing
, there should be a filecal_housing.pkz
present inside thedata_home
directory
– Vivek Kumar
2 days ago
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I would like to load a larger dataset from the sklearn
datatsets (California housing prices). Using the default command does not work for me due to proxy issues (the dataset download corrupted).
d = datasets.fetch_california_housing()
After downloading it, I place it in the directory found by datasets.get_data_home()
(/home/username/scikit_learn_data/
) and place the files in that folder and also in the cal_housing folder in that directory and in the CaliforniaHousing folder to check all the options. I also tried specifying the custom location with data_home parameter.
d = datasets.fetch_california_housing(data_home='/home/username/scikit_learn_data/')
Nothing works.
How can I load the dataset manually?
python scikit-learn
I would like to load a larger dataset from the sklearn
datatsets (California housing prices). Using the default command does not work for me due to proxy issues (the dataset download corrupted).
d = datasets.fetch_california_housing()
After downloading it, I place it in the directory found by datasets.get_data_home()
(/home/username/scikit_learn_data/
) and place the files in that folder and also in the cal_housing folder in that directory and in the CaliforniaHousing folder to check all the options. I also tried specifying the custom location with data_home parameter.
d = datasets.fetch_california_housing(data_home='/home/username/scikit_learn_data/')
Nothing works.
How can I load the dataset manually?
python scikit-learn
python scikit-learn
edited Nov 7 at 7:03
asked Nov 7 at 6:10
cerebrou
1,23252241
1,23252241
Have you tried this? scikit-learn.org/stable/modules/generated/…
– nick
Nov 7 at 6:12
Hmm.. the datatset comes in form of two files in particular format, which should be loaded together, so not sure if it would work.
– cerebrou
Nov 7 at 6:22
Can you show your code and the error?
– enamoria
Nov 7 at 6:50
The error is that the dataset is not found and I described the code above. I also added another line of code.
– cerebrou
Nov 7 at 7:01
How and what did you download and where did you put it? To usefetch_california_housing
, there should be a filecal_housing.pkz
present inside thedata_home
directory
– Vivek Kumar
2 days ago
add a comment |
Have you tried this? scikit-learn.org/stable/modules/generated/…
– nick
Nov 7 at 6:12
Hmm.. the datatset comes in form of two files in particular format, which should be loaded together, so not sure if it would work.
– cerebrou
Nov 7 at 6:22
Can you show your code and the error?
– enamoria
Nov 7 at 6:50
The error is that the dataset is not found and I described the code above. I also added another line of code.
– cerebrou
Nov 7 at 7:01
How and what did you download and where did you put it? To usefetch_california_housing
, there should be a filecal_housing.pkz
present inside thedata_home
directory
– Vivek Kumar
2 days ago
Have you tried this? scikit-learn.org/stable/modules/generated/…
– nick
Nov 7 at 6:12
Have you tried this? scikit-learn.org/stable/modules/generated/…
– nick
Nov 7 at 6:12
Hmm.. the datatset comes in form of two files in particular format, which should be loaded together, so not sure if it would work.
– cerebrou
Nov 7 at 6:22
Hmm.. the datatset comes in form of two files in particular format, which should be loaded together, so not sure if it would work.
– cerebrou
Nov 7 at 6:22
Can you show your code and the error?
– enamoria
Nov 7 at 6:50
Can you show your code and the error?
– enamoria
Nov 7 at 6:50
The error is that the dataset is not found and I described the code above. I also added another line of code.
– cerebrou
Nov 7 at 7:01
The error is that the dataset is not found and I described the code above. I also added another line of code.
– cerebrou
Nov 7 at 7:01
How and what did you download and where did you put it? To use
fetch_california_housing
, there should be a file cal_housing.pkz
present inside the data_home
directory– Vivek Kumar
2 days ago
How and what did you download and where did you put it? To use
fetch_california_housing
, there should be a file cal_housing.pkz
present inside the data_home
directory– Vivek Kumar
2 days ago
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53184361%2fhow-to-load-sklearn-datasets-manually%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Have you tried this? scikit-learn.org/stable/modules/generated/…
– nick
Nov 7 at 6:12
Hmm.. the datatset comes in form of two files in particular format, which should be loaded together, so not sure if it would work.
– cerebrou
Nov 7 at 6:22
Can you show your code and the error?
– enamoria
Nov 7 at 6:50
The error is that the dataset is not found and I described the code above. I also added another line of code.
– cerebrou
Nov 7 at 7:01
How and what did you download and where did you put it? To use
fetch_california_housing
, there should be a filecal_housing.pkz
present inside thedata_home
directory– Vivek Kumar
2 days ago