Comments (6)
Got it, thanks for your feedback, I'll see what I can do to clarify this for future editions. :)
from handson-ml.
Ah, I now see that the exercise 5 solution shows us how to do this.
from handson-ml.
Hey, thanks for the kind words, it's always nice to hear! :)
I'm glad you found the answer to your question, indeed the exercise 5 covers this.
Cheers!
from handson-ml.
If I may make a suggestion: it may be helpful to change the wording so that it's clear that this is an exercise, not something we've already learned ("don't forget that..."; "the grid search will automatically..."). And that it's not something we can figure out on our own, but requires us to look up the solution (either once we've gotten to the exercises, or -- since we don't know that a question and answer will be forthcoming -- somewhere on the internet).
from handson-ml.
I think I wrote "don't forget" because I already mentioned the idea at the top of page 63:
In this example the transformer has one hyperparameter,
add_bedrooms_per_room
,
set toTrue
by default (it is often helpful to provide sensible defaults). This hyperparameter will allow you to easily find out whether adding this attribute helps the Machine Learning algorithms or not. More generally, you can add a hyperparameter to gate any data preparation step that you are not 100% sure about. The more you automate these data preparation steps, the more combinations you can automatically try out, making it much more likely that you will find a great combination (and saving you a lot of time).
That said, it may indeed help to be more explicit, thanks for the suggestion.
from handson-ml.
Yes, indeed you did. I think what confused me was that we'd only seen GridSearchCV called on an instance of the regressor class, and I don't think we'd seen an example of a pipeline that contained both a transformer and regressor, so it wasn't clear how it was possible to apply it to a transformer.
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.