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

Комментарии • 9

  • @dataschool
    @dataschool  2 года назад

    Want to do even more feature engineering within scikit-learn? I recommend learning how to use FunctionTransformer: ruclips.net/video/s1gL82BxKos/видео.html

  • @ge_song5
    @ge_song5 Год назад +1

    Very well explained! Thanks!

  • @annawilson3824
    @annawilson3824 Год назад +3

    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.

    • @dataschool
      @dataschool  Год назад

      Thanks for posting the takeaway! 🙌

  • @yogeeshtr700
    @yogeeshtr700 Год назад

    thank you 👍

  • @EhsanIrshad
    @EhsanIrshad 2 года назад

    first

    • @nguyenhuuuc2311
      @nguyenhuuuc2311 2 года назад +1

      I'd think you're probably slower than Kevin - 2 mins 😂😅