[SPARK-29269][PYTHON][ML] Pyspark ALSModel support getters/setters#25947
[SPARK-29269][PYTHON][ML] Pyspark ALSModel support getters/setters#25947huaxingao wants to merge 4 commits intoapache:masterfrom
Conversation
|
Test build #111468 has finished for PR 25947 at commit
|
| */ | ||
| private[recommendation] trait ALSParams extends ALSModelParams with HasMaxIter with HasRegParam | ||
| with HasPredictionCol with HasCheckpointInterval with HasSeed { | ||
| with HasCheckpointInterval with HasSeed { |
There was a problem hiding this comment.
Because ALSModelParams already has HasPredictionCol?
There was a problem hiding this comment.
Yes. It seems to be redundant to me.
| """ | ||
|
|
||
| @since("1.4.0") | ||
| def setUserCol(self, value): |
There was a problem hiding this comment.
These are newly added, right? So which one is more correct, since(1.4.0) or since(3.0.0)?
There was a problem hiding this comment.
Should be since(3.0.0). Thanks for catching that problem.
|
Test build #111505 has finished for PR 25947 at commit
|
|
Test build #111748 has finished for PR 25947 at commit
|
|
Test build #111758 has finished for PR 25947 at commit
|
|
retest this please |
|
Test build #111866 has finished for PR 25947 at commit
|
|
Merged to master. Thanks all! |
|
Thanks! @viirya @zhengruifeng |
### What changes were proposed in this pull request? Add getters/setters in Pyspark ALSModel. ### Why are the changes needed? To keep parity between python and scala. ### Does this PR introduce any user-facing change? Yes. add the following getters/setters to ALSModel ``` get/setUserCol get/setItemCol get/setColdStartStrategy get/setPredictionCol ``` ### How was this patch tested? add doctest Closes apache#25947 from huaxingao/spark-29269. Authored-by: Huaxin Gao <huaxing@us.ibm.com> Signed-off-by: zhengruifeng <ruifengz@foxmail.com>
What changes were proposed in this pull request?
Add getters/setters in Pyspark ALSModel.
Why are the changes needed?
To keep parity between python and scala.
Does this PR introduce any user-facing change?
Yes.
add the following getters/setters to ALSModel
How was this patch tested?
add doctest