Hi Janardhan

SystemML allows scripts to import other scripts. So its possible for your
test script to import your script and test portions of it (assuming things
are appropriately function-ified).

If your question is specifically to check gradients of a certain objective,
then you may want to follow the recipe of 'grad_check.dml'. In general, its
a good idea to test out smaller portions (gradients or otherwise) of a
large dml script in a piecemeal manner.

regards
prithvi




From:   Janardhan Pulivarthi <[email protected]>
To:     [email protected], [email protected]
Date:   01/11/2018 09:23 AM
Subject:        [TESTS] What are the best practices for dml script testing.
            Thanks.



Hi prithvirajsen,

If a script contains the gradients, then we could compare them with
numerical gradients, as we have done in the `grad_check.dml`, file.

How can we place a test script with a main script (dml), so that we can be
confident that the script will work. (just like junit test for java files)

Thanks,
Janardhan.

Reply via email to