You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@systemml.apache.org by "Deron Eriksson (JIRA)" <ji...@apache.org> on 2016/08/11 19:45:20 UTC
[jira] [Resolved] (SYSTEMML-836) Create ScriptFactory convenience
methods for resources on classpath
[ https://issues.apache.org/jira/browse/SYSTEMML-836?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Deron Eriksson resolved SYSTEMML-836.
-------------------------------------
Resolution: Fixed
Fix Version/s: SystemML 0.11
Fixed by [PR207|https://github.com/apache/incubator-systemml/pull/207].
> Create ScriptFactory convenience methods for resources on classpath
> -------------------------------------------------------------------
>
> Key: SYSTEMML-836
> URL: https://issues.apache.org/jira/browse/SYSTEMML-836
> Project: SystemML
> Issue Type: Task
> Components: APIs
> Reporter: Deron Eriksson
> Assignee: Deron Eriksson
> Priority: Minor
> Fix For: SystemML 0.11
>
>
> Currently a DML Script object can be created by ScriptFactory by getting an input stream to a resource on the classpath, such as this example:
> {code}
> val inputStream = getClass.getResourceAsStream("/scripts/algorithms/Univar-Stats.dml")
> val script = ScriptFactory.dmlFromInputStream(inputStream)
> {code}
> This can be further simplified by creating a ScriptFactory method like dmlFromResourcePath (or dmlFromClasspath) so a user could instead do:
> {code}
> val script = ScriptFactory.dmlFromResourcePath("/scripts/algorithms/Univar-Stats.dml")
> {code}
> An addition method should be created for PyDML, such as pydmlFromResourcePath (or pydmlFromClasspath).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)