Comments (6)
Ah, sorry about that, it's definitely in my To-Do list. In the meantime, this code example may help? Please let me know. If you're still stuck in a couple of days, I'll definitely write the solution.
As a sort of excuse, I've been incredibly busy these days, preparing this online training course and this talk at Strata London while helping with the french translation of my book, and that's just during my week-ends, I'm a consultant during the week. Oh boy... ;-)
from handson-ml.
Hi @oanise93, are you still stuck?
from handson-ml.
Thanks for getting back to me. I'm able to make a pipeline that would just do feature selection and then prediction, but I don't see how I could add that data transformation part that is implemented in the beginning of the chapter. I kept getting an error concerning the pipeline not being able to call fit_transform. Below is the pipeline that just does the feature selection and prediction.
selection = Pipeline([
('feature_selection', SelectFromModel(RandomForestRegressor(), threshold=0.01)),
('estimator', RandomForestRegressor())
])
selection.fit(housing_prepared, housing_labels).predict(housing_prepared)```
from handson-ml.
I'll post a solution this week-end.
from handson-ml.
Hi @oanise93,
As promised, I just added exercise solutions for chapter 2. I'll be pushing exercise solutions every few days for the other chapters as well.
Note that user @bjpcjp kindly shared a repo with his own solutions:
https://github.com/bjpcjp/scikit-and-tensorflow-workbooks/
Have fun learning ML!
from handson-ml.
Thanks @ageron!
from handson-ml.
Related Issues (20)
- mnist dataset HOT 2
- Chapter#02 FileNotFoundError HOT 1
- 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 1
- Problem downloading data HOT 1
- Why does saving the test set not work?
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.