You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Austin Jordan (Jira)" <ji...@apache.org> on 2020/07/10 09:34:00 UTC

[jira] [Created] (SPARK-32271) Update CrossValidator to parallelize fit method across folds

Austin Jordan created SPARK-32271:
-------------------------------------

             Summary: Update CrossValidator to parallelize fit method across folds
                 Key: SPARK-32271
                 URL: https://issues.apache.org/jira/browse/SPARK-32271
             Project: Spark
          Issue Type: Improvement
          Components: ML
    Affects Versions: 3.1.0
            Reporter: Austin Jordan


Currently, fitting a CrossValidator is only parallelized across models. This means that a CrossValidator will only fit as quickly as the slowest-to-train model would fit by itself.

If a 2x2x3 parameter grid is provided for 10-fold cross validation, all 12 models will begin training on the first fold. However, if 6 of these models will train for 1 hour/fold and the other 6 will train for 3 hours/fold (e.g. tuning number of early stopping rounds in XGBoost), the first 6 models will not move on to the second fold until the last 6 are finished.

If fitting was parallelized across folds, the first 6 models would finish after 10 hours, freeing up cluster resources to run multiple folds for the last 6 models in parallel.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org