Skip to content

feat(gcp-spark): require pyspark.ml.Pipeline fit on train split for featurization - #571

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_1023131196
Open

copybara-service[bot] wants to merge 1 commit into
mainfrom
test_1023131196

Conversation

@copybara-service

Copy link
Copy Markdown
Contributor

feat(gcp-spark): require pyspark.ml.Pipeline fit on train split for featurization

Adds a "Leakage-Safe Featurization with pyspark.ml.Pipeline" section to
gcp_spark/references/ml_tasks.md (the ML reference the agent reads for Spark ML
tasks). It instructs the agent to split chronologically first, put all feature
stages (VectorAssembler, StringIndexer, StandardScaler, ...) inside a
pyspark.ml.Pipeline with the estimator, fit() on the training split only and
transform() validation/test, with time-series steps and an example using
backward-looking Window features. Remaining mdformat changes are blank-line
fixes applied by hg fix.

…eaturization

Adds a "Leakage-Safe Featurization with pyspark.ml.Pipeline" section to
gcp_spark/references/ml_tasks.md (the ML reference the agent reads for Spark ML
tasks). It instructs the agent to split chronologically first, put all feature
stages (VectorAssembler, StringIndexer, StandardScaler, ...) inside a
pyspark.ml.Pipeline with the estimator, fit() on the training split only and
transform() validation/test, with time-series steps and an example using
backward-looking Window features. Remaining mdformat changes are blank-line
fixes applied by `hg fix`.

PiperOrigin-RevId: 1023131196
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant