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

Mike Dusenberry updated SYSTEMML-670:
-------------------------------------
    Component/s: Parser

> 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
>          Components: Parser
>    Affects Versions: SystemML 0.10
>            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)

Reply via email to