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?










share|improve this question
























  • 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 file cal_housing.pkz present inside the data_home directory
    – Vivek Kumar
    2 days ago















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?










share|improve this question
























  • 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 file cal_housing.pkz present inside the data_home directory
    – Vivek Kumar
    2 days ago













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?










share|improve this question















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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 use fetch_california_housing, there should be a file cal_housing.pkz present inside the data_home directory
    – Vivek Kumar
    2 days ago


















  • 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 file cal_housing.pkz present inside the data_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

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















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





































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














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




















































































Popular posts from this blog

横浜市

Rostock

Europa