Comments (3)
@dpnolan I'm really glad you enjoy the book, thanks for your feedback and good luck with your installation.
from handson-ml.
Hi @dpnolan ,
That's odd, I just tried it and everything worked fine. Perhaps it's a temporary connectivity issue or server error? Could you please retry?
Here's my output:
Python 3.5.3 (default, Jan 19 2017, 14:11:04)
[GCC 6.3.0 20170118] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from sklearn.datasets import fetch_california_housing
>>> housing = fetch_california_housing()
downloading Cal. housing from http://www.dcc.fc.up.pt/~ltorgo/Regression/cal_housing.tgz to /home/ageron/scikit_learn_data
>>> m,n=housing.data.shape
>>> housing_data_plus_bias = np.c_[np.ones((m,1)), housing.data]
>>> housing_data_plus_bias
array([[ 1. , 8.3252 , 41. , ..., 2.55555556,
37.88 , -122.23 ],
[ 1. , 8.3014 , 21. , ..., 2.10984183,
37.86 , -122.22 ],
[ 1. , 7.2574 , 52. , ..., 2.80225989,
37.85 , -122.24 ],
...,
[ 1. , 1.7 , 17. , ..., 2.3256351 ,
39.43 , -121.22 ],
[ 1. , 1.8672 , 18. , ..., 2.12320917,
39.43 , -121.32 ],
[ 1. , 2.3886 , 16. , ..., 2.61698113,
39.37 , -121.24 ]])
Notice the URL where Scikit-Learn fetches the data. By default, this tgz file is saved to ~/scikit_learn_data
:
$ ls -l ~/scikit_learn_data/
total 372
-rw-r--r-- 1 ageron ageron 366877 avril 16 22:37 cal_housing_py3.pkz
drwxr-xr-x 2 ageron ageron 4096 avril 8 14:21 mldata
Perhaps this file exists on your machine, but it is corrupted? If so, try deleting it, then try again.
from handson-ml.
Hi Aurélien, I have this working on the Python 2 version when I run that. There seem to be some problems with my Anaconda setup, so I will re-install. I should perhaps not start off with chapter 9. Thanks. It's a great book. Peter
from handson-ml.
Related Issues (20)
- Chapter 2 error during prediction HOT 2
- Ml
- Dropout at test time HOT 3
- How can I use my own dataset and fit it to your code
- Need help understanding crc hash used to explain test train split in Chapter 2 HOT 1
- ImportError: cannot import name 'fetch_mldata' from 'sklearn.datasets' (F:\Anaconda3\lib\site-packages\sklearn\datasets\__init__.py) HOT 1
- Chapter 3 : Exercise 1 - MNIST Classifier with 97% accuracy - Could not pickle the task to send it to the workers. HOT 3
- Broken image in readme HOT 1
- Chapter 5 SVM why should center before LinearSVC
- Chapter 3 (Page 82): Getting error during Fitting the SGD Classifier with Training data
- Chapter 2: Value differences in prediction
- Chapter 2: Looking for Correlations - ValueError: could not convert string to float: 'INLAND' HOT 1
- Use github.com/apssouza22/chatflow as a conversational layer. It would enable actual API requests to be carried out from natural language inputs.
- chapter 4: SGDRegressor(tol=-np.infty) is not accepted by the module HOT 1
- Hi
- Ch.2 Error using corr() HOT 2
- Problem downloading data HOT 2
- Why does saving the test set not work?
- Chapter 2: Creating a test set, Stratify
- Graphviz Installation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from handson-ml.