Create feature interactions using PolynomialFeatures
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: https://www.youtube.com/playlist?list=PL5-da3qGB5ID7YYAqireYEew2mWVvgmj6
🗒️ Code for all tips: https://github.com/justmarkham/scikit-learn-tips
💌 Get tips via email: https://scikit-learn.tips
=== WANT TO GET BETTER AT MACHINE LEARNING? ===
1) LEARN THE FUNDAMENTALS in my intro course (free!): https://courses.dataschool.io/introduction-to-machine-learning-with-scikit-learn
2) BUILD YOUR ML CONFIDENCE in my intermediate course: https://courses.dataschool.io/building-an-effective-machine-learning-workflow-with-scikit-learn
3) LET'S CONNECT!
- Newsletter: https://www.dataschool.io/subscribe/
- Twitter: https://twitter.com/justmarkham
- Facebook: https://www.facebook.com/DataScienceSchool/
- LinkedIn: https://www.linkedin.com/in/justmarkham/
Видео Create feature interactions using PolynomialFeatures канала Data School
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: https://www.youtube.com/playlist?list=PL5-da3qGB5ID7YYAqireYEew2mWVvgmj6
🗒️ Code for all tips: https://github.com/justmarkham/scikit-learn-tips
💌 Get tips via email: https://scikit-learn.tips
=== WANT TO GET BETTER AT MACHINE LEARNING? ===
1) LEARN THE FUNDAMENTALS in my intro course (free!): https://courses.dataschool.io/introduction-to-machine-learning-with-scikit-learn
2) BUILD YOUR ML CONFIDENCE in my intermediate course: https://courses.dataschool.io/building-an-effective-machine-learning-workflow-with-scikit-learn
3) LET'S CONNECT!
- Newsletter: https://www.dataschool.io/subscribe/
- Twitter: https://twitter.com/justmarkham
- Facebook: https://www.facebook.com/DataScienceSchool/
- LinkedIn: https://www.linkedin.com/in/justmarkham/
Видео Create feature interactions using PolynomialFeatures канала Data School
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
Ensemble multiple models using VotingClassifer or VotingRegressorMy top 25 pandas tricksHow do I select features for Machine Learning?How do I create dummy variables in pandas?Speed up GridSearchCV using parallel processingTune the parameters of a VotingClassifer or VotingRegressorData Science Best Practices with pandas (PyCon 2019)Encode categorical features using OneHotEncoder or OrdinalEncoderImportant tuning parameters for LogisticRegressionShuffle your dataset when using cross_val_scoreUse AUC to evaluate multiclass problemsHow do I encode categorical features using scikit-learn?Use FunctionTransformer to convert functions into transformersCreate an interactive diagram of a Pipeline in JupyterGet the feature names output by a ColumnTransformerROC Curves and Area Under the Curve (AUC) ExplainedDrop the first category from binary features (only) with OneHotEncoderPassthrough some columns and drop others in a ColumnTransformerUse OrdinalEncoder instead of OneHotEncoder with tree-based models