systemml-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Deron Eriksson (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (SYSTEMML-901) Improve message if MLContext not available
Date Fri, 09 Sep 2016 20:53:20 GMT

     [ https://issues.apache.org/jira/browse/SYSTEMML-901?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Deron Eriksson closed SYSTEMML-901.
-----------------------------------

> Improve message if MLContext not available
> ------------------------------------------
>
>                 Key: SYSTEMML-901
>                 URL: https://issues.apache.org/jira/browse/SYSTEMML-901
>             Project: SystemML
>          Issue Type: Improvement
>          Components: APIs
>            Reporter: Deron Eriksson
>            Assignee: Deron Eriksson
>             Fix For: SystemML 0.11
>
>
> Currently, if an MLContext object hasn't been created with the SparkContext, this can
give rise to an error such as the following:
> {code}
> java.lang.NullPointerException
> at org.apache.sysml.api.mlcontext.MLContextConversionUtil.determineDataFrameDimensionsIfNeeded(MLContextConversionUtil.java:610)
> {code}
> For instance, if the MLContext object hasn't been created yet but a user does something
such as trying to set inputs and outputs on a Script object, the above error occurs.
> {code}
> val LinRegCg = LinRegCgDML.in("X", X).in("y", y).out("beta_out")
> {code}
> The error message should be more informative and tell the user how to fix the issue.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message