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

DataExpression and StringIdentifier toString readability

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • SystemML 0.13
    • Parser
    • None

    Description

      Improve readability of StringIdentifier and DataExpression toString methods.

      For example, A = matrix("1 2 3 4 5 6", rows=3, cols=2) results in a DMLProgram that contains:

      A = RAND(,lambda=1.0,min=1 2 3 4 5 6,pdf=uniform,seed=-1,max=1 2 3 4 5 6,sparsity=1.0,rows=3,cols=2 );
      

      The extraneous first comma within RAND is confusing. Additionally, the string '1 2 3 4 5 6' is not surrounded by quotes, which affects readability.

      Readability is improved if the toStrings are modified to produce output such as the following:

      A = RAND(lambda=1.0, min='1 2 3 4 5 6', pdf='uniform', seed=-1, max='1 2 3 4 5 6', sparsity=1.0, rows=3, cols=2);
      

      Attachments

        Activity

          People

            deron Jon Deron Eriksson
            deron Jon Deron Eriksson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: