huaxingao commented on issue #26838: [SPARK-30144][ML][PySpark] Make 
MultilayerPerceptronClassificationModel extend MultilayerPerceptronParams
URL: https://github.com/apache/spark/pull/26838#issuecomment-568772202
 
 
   The Mima exclusion 
   
   
```ProblemFilters.exclude[IncompatibleResultTypeProblem]("org.apache.spark.ml.classification.MultilayerPerceptronClassificationModel.layers")```
 
   
   is because of the name collision between the original constructor parameter 
   ```val layers: Array[Int]``` and the ```layers``` param inherited from 
MultilayerPerceptronParams.
   
   ```
   [error]  * method layers()Array[Int] in class 
org.apache.spark.ml.classification.MultilayerPerceptronClassificationModel has 
a different result type in current version, where it is 
org.apache.spark.ml.param.IntArrayParam rather than Array[Int]
   ```
   
   It's not because ```def layers``` is removed. So it seems to me this Mima 
exclusion can't be avoided.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to