You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "zhengruifeng (via GitHub)" <gi...@apache.org> on 2023/03/10 13:36:40 UTC

[GitHub] [spark] zhengruifeng commented on a diff in pull request #40367: [SPARK-42747][ML] Fix incorrect internal status of LoR and AFT

zhengruifeng commented on code in PR #40367:
URL: https://github.com/apache/spark/pull/40367#discussion_r1132385670


##########
mllib/src/main/scala/org/apache/spark/ml/param/params.scala:
##########
@@ -879,15 +882,8 @@ trait Params extends Identifiable with Serializable {
     }
     to
   }
-}
 
-private[ml] object Params {
-  /**
-   * Sets a default param value for a `Params`.
-   */
-  private[ml] final def setDefault[T](params: Params, param: Param[T], value: T): Unit = {
-    params.defaultParamMap.put(param -> value)

Review Comment:
   should avoid directly updating `defaultParamMap`



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org