Hi Janardhan,
1. You can ignore the message as it is warning not an error, especially if 'Initialization of *str* depends on *if-else* execution' is intentional. 2. What dataset are you using? Thanks Niketan > On Sep 5, 2017, at 9:32 AM, Janardhan Pulivarthi <janardhan.pulivar...@gmail.com> wrote: > > 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://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_apache_systemml_blob_1cbfdef3fad5235b692c372ec94bcade7f1b9ff9_scripts_algorithms_GLM-2Dpredict.dml-23L329&d=DwIBaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=HzVC6v79boGYQrpc383_Kao_6a6SaOkZrfiSrYZVby0&m=Jy-epXDFgeWR8lxdj1kBB3n-Pquo82XGVOyIcKWXqNU&s=dp_ZZRT1E3CgaQyythr7IBqBJC1Ezk9ZeopnRM_U0ik&e= > > *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