Details
-
New Feature
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
Description
The Python API currently support multi return statements,
a good example is the algorithms build into the system.
http://apache.github.io/systemds/api/python/guide/algorithms_basics.html
But currently if one wants to execute an algorithm and continue the program with another
algorithm it does not work, because we have no way of selecting individual parts of the
multi return to add and continue in the DML script.
The task is to change the code such that the following is possible:
from systemds.context import SystemDSContext from systemds.matrix import Matrix from systemds.operator.algorithm import multiLogReg, multiLogRegPredict with SystemDSContext() as sds: X_ds = Matrix(sds, X) Y_ds = Matrix(sds, Y) bias = multiLogReg(X_ds, Y_ds, maxi=30) [_, _, train_acc] = multiLogRegPredict(X_ds, bias, Y_ds) [_, _, test_acc] = multiLogRegPredict(Xt, bias, Yt) [train_acc, test_acc] = sds.compute(train_acc, test_acc) print(train_acc, " ", test_acc)
Attachments
Issue Links
- links to