You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@systemml.apache.org by "Matthias Boehm (JIRA)" <ji...@apache.org> on 2017/09/12 00:35:04 UTC

[jira] [Created] (SYSTEMML-1902) Transformencode failing for mix of recode/dummycode features

Matthias Boehm created SYSTEMML-1902:
----------------------------------------

             Summary: Transformencode failing for mix of recode/dummycode features
                 Key: SYSTEMML-1902
                 URL: https://issues.apache.org/jira/browse/SYSTEMML-1902
             Project: SystemML
          Issue Type: Bug
            Reporter: Matthias Boehm


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:
{code}
{ "recode": [ "district", "zipcode", "view" ], 
 "dummycode": [ "zipcode" ] }
{code}

generates the following exception:

{code}
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)
{code}




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)