[ https://issues.apache.org/jira/browse/SPARK-14164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15212337#comment-15212337 ]
Apache Spark commented on SPARK-14164: -------------------------------------- User 'dongjoon-hyun' has created a pull request for this issue: https://github.com/apache/spark/pull/11964 > Improve input layer validation to MultilayerPerceptronClassifier > ---------------------------------------------------------------- > > Key: SPARK-14164 > URL: https://issues.apache.org/jira/browse/SPARK-14164 > Project: Spark > Issue Type: Improvement > Components: MLlib > Reporter: Dongjoon Hyun > Priority: Minor > > This issue improves an input layer validation and related testcases to > MultilayerPerceptronClassifier. > {code:title=MultilayerPerceptronClassifier.scala|borderStyle=solid} > - // TODO: how to check ALSO that all elements are greater than 0? > - ParamValidators.arrayLengthGt(1) > + (t: Array[Int]) => t.forall(ParamValidators.gt(0)) && t.length > 1 > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org