QuestionQ125

VerifiedScaling and Tuning

A Data Scientist at a company with rapidly growing sales has deployed a scikit-learn model to production that is retrained weekly on a single-node cluster. In the latest retraining run, the job failed with an out-of-memory error. Investigation showed that the training data had grown to 700GB because of the company’s expanding customer base.

Which approach will reliably solve this issue over the long term?

Explanation

Spark MLlib is designed for scalable machine learning on Spark, allowing training workloads and data to be processed across multiple cluster nodes. Reimplementing the training with MLlib removes the single-node memory constraint and can scale with continued data growth. A Spark UDF distributes independent function executions, not a coordinated scikit-learn model-training algorithm.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!