Uploaded image for project: 'SystemDS'
  1. SystemDS
  2. SYSTEMDS-2828

Python Multi Return Continuation

    XMLWordPrintableJSON

Details

    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

          Activity

            People

              Unassigned Unassigned
              baunsgaard Sebastian Baunsgaard
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: