1 min readfrom Data Science

Best technique for training models on a sample of data?

Our take

Training machine learning models on a sample of data, especially in the context of imbalanced datasets, requires careful consideration. Under-sampling the majority class can help manage memory limitations, but it’s essential to implement robust cross-validation techniques to ensure model reliability. Utilize a holdout dataset for final evaluation, testing your model on unsampled data to assess its generalization capabilities. This approach not only helps in selecting the best-performing model but also ensures that your findings are applicable to the broader dataset, enhancing overall insights and productivity.

Due to memory limits on my work computer I'm unable to train machine learning models on our entire analysis dataset. Given my data is highly imbalanced I'm under-sampling from the majority class of the binary outcome.

What is the proper method to train ML models on sampled data with cross-validation and holdout data?

After training on my under-sampled data should I do a final test on a portion of "unsampled data" to choose the best ML model?

submitted by /u/RobertWF_47
[link] [comments]

Read on the original site

Open the publisher's page for the full experience

View original article

Related Articles