[SPARK-28985][PYTHON][ML][FOLLOW-UP] Add _AFTSurvivalRegressionParams#26024
Closed
zero323 wants to merge 1 commit intoapache:masterfrom
Closed
[SPARK-28985][PYTHON][ML][FOLLOW-UP] Add _AFTSurvivalRegressionParams#26024zero323 wants to merge 1 commit intoapache:masterfrom
zero323 wants to merge 1 commit intoapache:masterfrom
Conversation
|
Test build #111776 has finished for PR 26024 at commit
|
Contributor
|
Great Catch. LGTM |
zhengruifeng
approved these changes
Oct 4, 2019
srowen
approved these changes
Oct 4, 2019
Contributor
|
LGTM |
Member
|
Merged to master |
Member
Author
|
Thanks @srowen, @huaxingao, @zhengruifeng! |
zero323
added a commit
to zero323/pyspark-stubs
that referenced
this pull request
Oct 5, 2019
* Reflect changes introduced with SPARK-28985 * Add _IsotonicRegressionBase - apache/spark#26023 * Add _AFTSurvivalRegressionParams - apache/spark#26024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
Adds
with related Params and uses it to replace
HasFitIntercept,HasMaxIter,HasTolandHasAggregationDepthinAFTSurvivalRegressionbase classes andJavaPredictionModel,inAFTSurvivalRegressionModelbase classes.Why are the changes needed?
Previous work (#25776) on SPARK-28985 replaced
JavaEstimator,HasFeaturesCol,HasLabelCol,HasPredictionColinAFTSurvivalRegressionandJavaModelinAFTSurvivalRegressionModelwith newly addedJavaPredictor:spark/python/pyspark/ml/wrapper.py
Line 377 in e97b55d
and
JavaPredictionModelspark/python/pyspark/ml/wrapper.py
Line 405 in e97b55d
respectively.
This however is inconsistent with Scala counterpart where both classes extend private
AFTSurvivalRegressionBasespark/mllib/src/main/scala/org/apache/spark/ml/regression/AFTSurvivalRegression.scala
Lines 48 to 50 in eb037a8
This preserves some of the existing inconsistencies (variables as defined in the official example)
and can cause problems in the future, if Predictor / PredictionModel API changes (unlike
IsotonicRegression, current implementation is technically speaking correct, though incomplete).Does this PR introduce any user-facing change?
Yes, it adds a number of base classes to
AFTSurvivalRegressionModel. These change purely additive and have negligible potential for breaking existing code (and none, compared to changes already made in #25776). Additionally affected API hasn't been released in the current form yet.How was this patch tested?
CC @huaxingao, @zhengruifeng