Matthias Boehm created SYSTEMML-1817:
----------------------------------------
Summary: Full variance computation fails due to wrong data type
Key: SYSTEMML-1817
URL: https://issues.apache.org/jira/browse/SYSTEMML-1817
Project: SystemML
Issue Type: Bug
Reporter: Matthias Boehm
The following script currently fails due to incorrect hop construction of
{{var(Xi)}} at language level:
{code}
X = rand(rows=1000, cols=100);
R = matrix(0, ncol(X), 4)
parfor(i in 1:ncol(X), log=DEBUG) {
Xi = X[,i];
R[i,1] = mean(Xi); # mean
R[i,2] = sd(Xi); # standard deviation
R[i,3] = moment(Xi,3)/(sd(Xi)^3); # skewness
R[i,4] = moment(Xi,4)/(sd(Xi)^4)-3; # kurtosis
}
{code}
The stacktrace is as follows
{code}
Caused by: org.apache.sysml.runtime.DMLRuntimeException: Variable '_Var1703'
does not exist in the symbol table.
at
org.apache.sysml.runtime.controlprogram.context.ExecutionContext.getMatrixObject(ExecutionContext.java:186)
at
org.apache.sysml.runtime.controlprogram.context.ExecutionContext.setMatrixOutput(ExecutionContext.java:451)
at
org.apache.sysml.runtime.instructions.cp.MatrixBuiltinCPInstruction.processInstruction(MatrixBuiltinCPInstruction.java:59)
at
org.apache.sysml.runtime.controlprogram.ProgramBlock.executeSingleInstruction(ProgramBlock.java:286)
... 6 more
{code}
which is cause by the following instruction which has an output type MATRIX
although it should be SCALAR.
{code}
--------CP uavar _mVar3.MATRIX.DOUBLE _mVar5.MATRIX.DOUBLE 24
{code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)