Add a missing indicator to encode "missingness" as a feature

Опубликовано: 05 Октябрь 2024
на канале: Data School
5,764
157

When imputing missing values, you can preserve info about which values were missing and use THAT as a feature!

Why? Sometimes there's a relationship between "missingness" and the target/label you are trying to predict.

👉 New tips every TUESDAY and THURSDAY! 👈

🎥 Watch all tips:    • scikit-learn tips  
🗒️ Code for all tips: https://github.com/justmarkham/scikit...
💌 Get tips via email: https://scikit-learn.tips


=== WANT TO GET BETTER AT MACHINE LEARNING? ===

1) WATCH my video series:    • Machine learning in Python with sciki...  

2) ENROLL in my courses: https://www.dataschool.io/ml-courses/

3) LET'S CONNECT!
Newsletter: https://www.dataschool.io/subscribe/
Twitter:   / justmarkham  
Facebook:   / datascienceschool  
LinkedIn:   / justmarkham