0
0
ML Pythonml~5 mins

Polynomial features in ML Python - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What are polynomial features in machine learning?
Polynomial features are new features created by raising existing features to a power and combining them. They help models learn more complex patterns by adding curved relationships.
Click to reveal answer
beginner
Why do we use polynomial features in a model?
We use polynomial features to allow simple models like linear regression to fit curves and capture non-linear relationships in data.
Click to reveal answer
intermediate
How does degree affect polynomial features?
The degree controls the highest power of features included. Higher degree means more complex features but can cause overfitting if too high.
Click to reveal answer
beginner
What is an example of polynomial features for two variables x and y with degree 2?
For x and y, degree 2 polynomial features include: 1 (bias), x, y, x², xy, y².
Click to reveal answer
intermediate
What is a potential downside of using polynomial features?
Using too many polynomial features can make the model complex, slow to train, and prone to overfitting, especially with small data.
Click to reveal answer
What does adding polynomial features to a dataset help a model do?
AReduce the number of features
BMake the model linear only
CCapture non-linear relationships
DRemove noise from data
Which of these is NOT a polynomial feature of degree 2 for variables x and y?
A
Bxy
C
D
What happens if you use a very high degree for polynomial features?
AModel becomes simpler
BModel may overfit
CModel ignores features
DModel always improves
Polynomial features are mainly used with which type of model?
ALinear models
BDecision trees
CNeural networks only
DClustering algorithms
Which term is usually included automatically when generating polynomial features?
AOnly squared features
BOnly original features
COnly interaction terms
DBias term (constant 1)
Explain what polynomial features are and why they are useful in simple terms.
Think about how adding powers of features changes what the model can learn.
You got /3 concepts.
    Describe the risks of using very high degree polynomial features in a model.
    Consider what happens when a model tries to fit too many details.
    You got /4 concepts.