You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@systemml.apache.org by "Mike Dusenberry (JIRA)" <ji...@apache.org> on 2016/05/06 21:26:13 UTC
[jira] [Created] (SYSTEMML-670) PyDML `random.normal` Function
Broken Due to Namespace Issue
Mike Dusenberry created SYSTEMML-670:
----------------------------------------
Summary: PyDML `random.normal` Function Broken Due to Namespace Issue
Key: SYSTEMML-670
URL: https://issues.apache.org/jira/browse/SYSTEMML-670
Project: SystemML
Issue Type: Bug
Reporter: Mike Dusenberry
In PyDML, the {{random.normal(...)}} built-in function is currently broken due to a namespace issue.
Example:
{code}
N = 4
D = 3
X = random.normal(N, D, 1)
print(sum(X))
{code}
{code}
org.apache.sysml.parser.LanguageException: ERROR: null -- line 4, column 0 -- function normal is undefined in namespace random
at org.apache.sysml.parser.StatementBlock.isMergeableFunctionCallBlock(StatementBlock.java:201)
at org.apache.sysml.parser.StatementBlock.mergeFunctionCalls(StatementBlock.java:335)
at org.apache.sysml.parser.DMLTranslator.liveVariableAnalysis(DMLTranslator.java:202)
at org.apache.sysml.api.MLContext.executeUsingSimplifiedCompilationChain(MLContext.java:1354)
at org.apache.sysml.api.MLContext.compileAndExecuteScript(MLContext.java:1257)
at org.apache.sysml.api.MLContext.executeScript(MLContext.java:1195)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at py4j.reflection.MethodInvoker.invoke(MethodInvoker.java:231)
at py4j.reflection.ReflectionEngine.invoke(ReflectionEngine.java:381)
at py4j.Gateway.invoke(Gateway.java:259)
at py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:133)
at py4j.commands.CallCommand.execute(CallCommand.java:79)
at py4j.GatewayConnection.run(GatewayConnection.java:209)
at java.lang.Thread.run(Thread.java:745)
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)