Uploaded image for project: 'SystemDS'
  1. SystemDS
  2. SYSTEMDS-670

PyDML `random.normal` Function Broken Due to Namespace Issue

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • SystemML 0.10
    • SystemML 0.10
    • Parser
    • None

    Description

      In PyDML, the random.normal(...) built-in function is currently broken due to a namespace issue.

      Example:

      N = 4
      D = 3
      X = random.normal(N, D, 1)
      print(sum(X))
      
      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)
      

      Attachments

        Issue Links

          Activity

            People

              gweidner Glenn Weidner
              dusenberrymw Mike Dusenberry
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: