Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Made minor edits to match the proposed Estimator transformSchema mehtod to the existing Model transformSchema method. #61

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

jverbus
Copy link
Contributor

@jverbus jverbus commented Dec 17, 2024

Small edits on top of #60.

In particular:

Includes checks and schema modifications similar to what was already done in the Model class. Both the Estimator and the Model will:

  • Validate that the featuresCol exists and is of the correct type.
  • Verify that the predictionCol and scoreCol do not already exist in the input schema.
  • Append predictionCol and scoreCol to the schema.

This ensures that the Estimator’s schema transformation is consistent with the eventual Model’s schema, making it clear to downstream pipeline stages what the final output schema will be.

The PR code adds explicit checks that the predictionCol and scoreCol do not already exist. This is a good safeguard to prevent accidental overwrites of existing columns.

…od to the existing Model transformSchema method.
@jverbus jverbus self-assigned this Dec 17, 2024
@jverbus jverbus added the enhancement New feature or request label Dec 17, 2024
@jverbus jverbus merged commit bd9ed50 into master Dec 17, 2024
13 checks passed
@jverbus jverbus deleted the minor_changes branch December 17, 2024 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant