gaoyunhaii commented on a change in pull request #35:
URL: https://github.com/apache/flink-ml/pull/35#discussion_r749376404



##########
File path: flink-ml-api/src/main/java/org/apache/flink/ml/param/WithParams.java
##########
@@ -72,6 +72,14 @@
      */
     @SuppressWarnings("unchecked")
     default <V> T set(Param<V> param, V value) {
+        if (!getParamMap().containsKey(param)) {

Review comment:
       Is the `set()` method consistent with the `get()`?
   
   I'm asking because it seems in `get()` we only throws exception when `if 
(value == null && !param.validator.validate(value))`, is it as expected or it 
might be `||` instead of `&&` ? 




-- 
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: issues-unsubscr...@flink.apache.org

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


Reply via email to