systemml-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Janardhan Pulivarthi <janardhan.pulivar...@gmail.com>
Subject [QUESTION] about initialization of outputs , depends on if-else execution. Thanks.
Date Tue, 05 Sep 2017 16:31:23 GMT
Hi,

1. *Parser Error:*This is one problem encountered during testing of GLM
scripts. I have fixed this problem by initializing before the script, but
can we do it the other way?

@
https://github.com/apache/systemml/blob/1cbfdef3fad5235b692c372ec94bcade7f1b9ff9/scripts/algorithms/GLM-predict.dml#L329

*dml script:*
```
if (fileO != " ") {
write (str, fileO);
} else {
print (str);
}
```
*Test script with MLContext*:
```
glmp.in("X", X).in("Y", Y).in("B", B)......out("means").out("*str*");  ml.
execute(glmp);
```
*Error thrown:*
*```*
WARN parser.StatementBlock: WARNING: [line 329:8] -> *str* --
Initialization of *str* depends on *if-else* execution

```

2. *Test matrix:* When I have tested the `*GLM.dml*` script with
matrix *10x3*, the solution did not converge,
So, I have opted for the *2468x1007* matrix, but what is probably the
best matrix size for testing with MLContext.


Thank you,
Janardhan

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message