[ https://issues.apache.org/jira/browse/SYSTEMML-638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15272959#comment-15272959 ]
Deron Eriksson commented on SYSTEMML-638: ----------------------------------------- I believe Faraz and Stacey are discussing this issue. > Random Forest Predict Execution Fails > ------------------------------------- > > Key: SYSTEMML-638 > URL: https://issues.apache.org/jira/browse/SYSTEMML-638 > Project: SystemML > Issue Type: Bug > Affects Versions: SystemML 0.10 > Reporter: Stacey Ronaghan > > Issue executing the prediction for random forest algorithm on SystemML 0.10 > (incubating) via MLContext with Scala Spark on a cluster. > Related to [SYSTEMML-597|https://issues.apache.org/jira/browse/SYSTEMML-597]. > X is the same input passed into execute for random-forest.dml (mentioned in > [SYSTEMML-597|https://issues.apache.org/jira/browse/SYSTEMML-597]) and M is > its output model. > Code: > {code} > // Register inputs & outputs for prediction > ml.reset() > ml.registerInput("X", X) > //ml.registerInput("Y", Y) > ml.registerInput("M", M) > ml.registerOutput("P") > //ml.registerOutput("A") > // Run the script > //val nargs = Map("X" -> "", "Y" -> "", "M" -> "", "P" -> "", "A" -> "") > val nargs = Map("X" -> "", "M" -> "", "P" -> "") > val outputs = > ml.execute("/home/biadmin/spark-enablement/installs/SystemML/algorithms/random-forest-predict.dml", > nargs) > val P = outputs.getDF(sqlContext, "P") > //val A = outputs.getDF(sqlContext, "A") > {code} > Output: > {code} > import org.apache.sysml.api.MLContext ml: org.apache.sysml.api.MLContext = > org.apache.sysml.api.MLContext@5649f7b4 nargs: > scala.collection.immutable.Map[String,String] = Map(X -> "", M -> "", P -> > "") org.apache.sysml.runtime.DMLRuntimeException: > org.apache.sysml.runtime.DMLRuntimeException: ERROR: Runtime error in program > block generated from statement block between lines 68 and 89 -- Error > evaluating instruction: > CP°groupedagg°target=_mVar60580°groups=_mVar60580°fn=count°k=40°_mVar60581·MATRIX·DOUBLE > at org.apache.sysml.runtime.controlprogram.Program.execute(Program.java:152) > at > org.apache.sysml.api.MLContext.executeUsingSimplifiedCompilationChain(MLContext.java:1365) > at > org.apache.sysml.api.MLContext.compileAndExecuteScript(MLContext.java:1225) > at > org.apache.sysml.api.MLContext.compileAndExecuteScript(MLContext.java:1173) > at org.apache.sysml.api.MLContext.execute(MLContext.java:640) at > org.apache.sysml.api.MLContext.execute(MLContext.java:675) at > org.apache.sysml.api.MLContext.execute(MLContext.java:688) at > $iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC.<init>(<console>:41) > at > $iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC.<init>(<console>:46) > at $iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC.<init>(<console>:48) at > $iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC.<init>(<console>:50) at > $iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC.<init>(<console>:52) at > $iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC.<init>(<console>:54) at > $iwC$$iwC$$iwC$$iwC$$iwC$$iwC.<init>(<console>:56) at > $iwC$$iwC$$iwC$$iwC$$iwC.<init>(<console>:58) at > $iwC$$iwC$$iwC$$iwC.<init>(<console>:60) at > $iwC$$iwC$$iwC.<init>(<console>:62) at $iwC$$iwC.<init>(<console>:64) at > $iwC.<init>(<console>:66) at <init>(<console>:68) at .<init>(<console>:72) at > .<clinit>(<console>) at .<init>(<console>:7) at .<clinit>(<console>) at > $print(<console>) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > Method) at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:497) at > org.apache.spark.repl.SparkIMain$ReadEvalPrint.call(SparkIMain.scala:1065) at > org.apache.spark.repl.SparkIMain$Request.loadAndRun(SparkIMain.scala:1338) at > org.apache.spark.repl.SparkIMain.loadAndRunReq$1(SparkIMain.scala:840) at > org.apache.spark.repl.SparkIMain.interpret(SparkIMain.scala:871) at > org.apache.spark.repl.SparkIMain.interpret(SparkIMain.scala:819) at > org.apache.zeppelin.spark.SparkInterpreter.interpretInput(SparkInterpreter.java:646) > at > org.apache.zeppelin.spark.SparkInterpreter.interpret(SparkInterpreter.java:611) > at > org.apache.zeppelin.spark.SparkInterpreter.interpret(SparkInterpreter.java:604) > at > org.apache.zeppelin.interpreter.ClassloaderInterpreter.interpret(ClassloaderInterpreter.java:57) > at > org.apache.zeppelin.interpreter.LazyOpenInterpreter.interpret(LazyOpenInterpreter.java:93) > at > org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer$InterpretJob.jobRun(RemoteInterpreterServer.java:292) > at org.apache.zeppelin.scheduler.Job.run(Job.java:170) at > org.apache.zeppelin.scheduler.FIFOScheduler$1.run(FIFOScheduler.java:118) at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at > java.util.concurrent.FutureTask.run(FutureTask.java:266) at > java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) > at > java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > at java.lang.Thread.run(Thread.java:745) Caused by: > org.apache.sysml.runtime.DMLRuntimeException: ERROR: Runtime error in program > block generated from statement block between lines 68 and 89 -- Error > evaluating instruction: > CP°groupedagg°target=_mVar60580°groups=_mVar60580°fn=count°k=40°_mVar60581·MATRIX·DOUBLE > at > org.apache.sysml.runtime.controlprogram.ProgramBlock.executeSingleInstruction(ProgramBlock.java:333) > at > org.apache.sysml.runtime.controlprogram.ProgramBlock.executeInstructions(ProgramBlock.java:222) > at > org.apache.sysml.runtime.controlprogram.ProgramBlock.execute(ProgramBlock.java:166) > at org.apache.sysml.runtime.controlprogram.Program.execute(Program.java:145) > ... 48 more Caused by: org.apache.sysml.runtime.DMLRuntimeException: Invalid > value (0.0) encountered in 'groups' while computing groupedAggregate at > org.apache.sysml.runtime.matrix.data.MatrixBlock.groupedAggOperations(MatrixBlock.java:5341) > at > org.apache.sysml.runtime.instructions.cp.ParameterizedBuiltinCPInstruction.processInstruction(ParameterizedBuiltinCPInstruction.java:171) > at > org.apache.sysml.runtime.controlprogram.ProgramBlock.executeSingleInstruction(ProgramBlock.java:303) > ... 51 more > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)