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

Transformencode failing for mix of recode/dummycode features

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • SystemML 1.0.0
    • None
    • None

    Description

      The frame transformapply is failing if the transform specification requests a mix of recoded and dummy coded features. For example, consider the following transform spec on the homes dataset:

      { "recode": [ "district", "zipcode", "view" ], 
       "dummycode": [ "zipcode" ] }
      

      generates the following exception:

      Caused by: java.lang.NumberFormatException: For input string: "west"
      	at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2043)
      	at sun.misc.FloatingDecimal.parseDouble(FloatingDecimal.java:110)
      	at java.lang.Double.parseDouble(Double.java:538)
      	at org.apache.sysml.runtime.util.UtilFunctions.objectToDouble(UtilFunctions.java:390)
      	at org.apache.sysml.runtime.transform.encode.EncoderDummycode.apply(EncoderDummycode.java:75)
      	at org.apache.sysml.runtime.transform.encode.EncoderComposite.encode(EncoderComposite.java:77)
      	at org.apache.sysml.runtime.instructions.cp.MultiReturnParameterizedBuiltinCPInstruction.processInstruction(MultiReturnParameterizedBuiltinCPInstruction.java:81)
      	at org.apache.sysml.runtime.controlprogram.ProgramBlock.executeSingleInstruction(ProgramBlock.java:266)
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            mboehm7 Matthias Boehm
            mboehm7 Matthias Boehm
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment