Skip to content

[SPARK-58471][ML][CONNECT] Improve TrainValidationSplitModel size estimation - #57674

Draft
zhengruifeng wants to merge 1 commit into
apache:masterfrom
zhengruifeng:train-validation-split-model-size-dev3
Draft

[SPARK-58471][ML][CONNECT] Improve TrainValidationSplitModel size estimation#57674
zhengruifeng wants to merge 1 commit into
apache:masterfrom
zhengruifeng:train-validation-split-model-size-dev3

Conversation

@zhengruifeng

@zhengruifeng zhengruifeng commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

This subtask of SPARK-58181, and follow-up to #57665, applies parameter-aware size estimation to TrainValidationSplitModel.

It excludes the estimator, estimatorParamMaps, and evaluator params from metadata sizing, then explicitly accounts for the best model, validation metrics, and collected submodels. A regression test confirms that logger-initialized estimator state is not counted.

Why are the changes needed?

TrainValidationSplitModel retains the same kinds of tuning params as CrossValidatorModel. Their params and values may retain shared runtime state, such as SparkSession, which must not contribute to Spark Connect ML model-cache accounting.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Static checks: git diff --check, non-ASCII scan, and changed-Scala line-length scan.

The targeted Scala suite was not run locally.

Was this patch authored or co-authored using generative AI tooling?

Generated-by: Codex GPT-5

@zhengruifeng zhengruifeng changed the title [WIP][ML] Improve TrainValidationSplitModel size estimation [SPARK-58471][ML] Improve TrainValidationSplitModel size estimation Jul 31, 2026
@zhengruifeng zhengruifeng changed the title [SPARK-58471][ML] Improve TrainValidationSplitModel size estimation [SPARK-58471][ML][CONNECT] Improve TrainValidationSplitModel size estimation Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant