Create feature interactions using PolynomialFeatures
HTML-код
- Опубликовано: 11 сен 2024
- Want to include "feature interactions" in your model? Use PolynomialFeatures!
P.S. This is impractical if you have lots of features, and unnecessary if you're using a tree-based model.
👉 New tips every TUESDAY and THURSDAY! 👈
🎥 Watch all tips: • scikit-learn tips
🗒️ Code for all tips: github.com/jus...
💌 Get tips via email: scikit-learn.tips
=== WANT TO GET BETTER AT MACHINE LEARNING? ===
1) LEARN THE FUNDAMENTALS in my intro course (free!): courses.datasc...
2) BUILD YOUR ML CONFIDENCE in my intermediate course: courses.datasc...
3) LET'S CONNECT!
- Newsletter: www.dataschool...
- Twitter: / justmarkham
- Facebook: / datascienceschool
- LinkedIn: / justmarkham
Want to do even more feature engineering within scikit-learn? I recommend learning how to use FunctionTransformer: ruclips.net/video/s1gL82BxKos/видео.html
Very well explained! Thanks!
You're welcome!
message => No need for feature interaction if rely solely on tree-based models or can use this model to learn about specific interactions and then include only those in linear models.
Thanks for posting the takeaway! 🙌
thank you 👍
You're welcome!
first
I'd think you're probably slower than Kevin - 2 mins 😂😅