You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Joseph K. Bradley (JIRA)" <ji...@apache.org> on 2015/09/22 20:01:06 UTC
[jira] [Resolved] (SPARK-10750) ML Param validate should print
better error information
[ https://issues.apache.org/jira/browse/SPARK-10750?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joseph K. Bradley resolved SPARK-10750.
---------------------------------------
Resolution: Fixed
Fix Version/s: 1.6.0
Issue resolved by pull request 8863
[https://github.com/apache/spark/pull/8863]
> ML Param validate should print better error information
> -------------------------------------------------------
>
> Key: SPARK-10750
> URL: https://issues.apache.org/jira/browse/SPARK-10750
> Project: Spark
> Issue Type: Bug
> Components: ML
> Reporter: Yanbo Liang
> Assignee: Yanbo Liang
> Priority: Minor
> Fix For: 1.6.0
>
>
> Currently when you set illegal value for params of array type (such as IntArrayParam, DoubleArrayParam, StringArrayParam), it will throw IllegalArgumentException but with incomprehensible error information.
> For example:
> val vectorSlicer = new VectorSlicer().setInputCol("features").setOutputCol("result")
> vectorSlicer.setIndices(Array.empty).setNames(Array("f1", "f4", "f1"))
> It will throw IllegalArgumentException as:
> vectorSlicer_b3b4d1a10f43 parameter names given invalid value [Ljava.lang.String;@798256c5.
> java.lang.IllegalArgumentException: vectorSlicer_b3b4d1a10f43 parameter names given invalid value [Ljava.lang.String;@798256c5.
> Users can not understand which params were set incorrectly.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org