May 25, 2023, 3:50 p.m. | /u/NDVGuy

Data Science www.reddit.com

Hi all, I hope you don't mind a bit of a novice question. I'm working with a dataset where there are large imbalances in two features with a strong relationship to the target (the year and location that data was collected). In the Hands-On ML O'Reilly textbook, it mentions that you should consider stratified sampling for the train/test split in situations with highly impactful imbalanced features.

How would you handle this scenario, where two features are highly impactful and imbalanced? …

data datascience dataset features location mind o'reilly relationship sampling testing training variables

Data Architect

@ University of Texas at Austin | Austin, TX

Data ETL Engineer

@ University of Texas at Austin | Austin, TX

Lead GNSS Data Scientist

@ Lurra Systems | Melbourne

Senior Machine Learning Engineer (MLOps)

@ Promaton | Remote, Europe

Vice President, AI Product Manager

@ JPMorgan Chase & Co. | New York City, United States

Binance Accelerator Program - Data Engineer

@ Binance | Asia