systemml-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthias Boehm (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SYSTEMML-1824) Wrong transformapply output with col name specification and subset of cols
Date Wed, 02 Aug 2017 00:26:00 GMT

     [ https://issues.apache.org/jira/browse/SYSTEMML-1824?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Matthias Boehm updated SYSTEMML-1824:
-------------------------------------
    Description: 
Given a frame input with 3 rows and column names {{name1, name2}}, the following script produces
incorrect results:
{code}
X = read("X.csv", data_type="frame", format="csv", header=TRUE);
spec = "{ids: false, recode: [ name1, name2 ]}";
[Y,M] = transformencode(target=X, spec=spec);
spec2 = "{ids: false, recode: [ name2 ]}";
Z = transformapply(target=X[,2], spec=spec2, meta=M)
print(toString(Z));
{code}

The output is supposed to be 3x1 and properly recoded but currently returns
{code}
NaN
NaN
NaN
{code}

  was:
Given a frame input with column names {{name1, name2}}, the following script produces incorrect
results:
{code}
X = read("X.csv", data_type="frame", format="csv", header=TRUE);
spec = "{ids: false, recode: [ name1, name2 ]}";
[Y,M] = transformencode(target=X, spec=spec);
spec2 = "{ids: false, recode: [ name2 ]}";
Z = transformapply(target=X[,2], spec=spec2, meta=M)
print(toString(Z));
{code}

The output is supposed to be 1x3 and properly recoded but currently returns
{code}
NaN
NaN
NaN
{code}


> Wrong transformapply output with col name specification and subset of cols
> --------------------------------------------------------------------------
>
>                 Key: SYSTEMML-1824
>                 URL: https://issues.apache.org/jira/browse/SYSTEMML-1824
>             Project: SystemML
>          Issue Type: Bug
>            Reporter: Matthias Boehm
>
> Given a frame input with 3 rows and column names {{name1, name2}}, the following script
produces incorrect results:
> {code}
> X = read("X.csv", data_type="frame", format="csv", header=TRUE);
> spec = "{ids: false, recode: [ name1, name2 ]}";
> [Y,M] = transformencode(target=X, spec=spec);
> spec2 = "{ids: false, recode: [ name2 ]}";
> Z = transformapply(target=X[,2], spec=spec2, meta=M)
> print(toString(Z));
> {code}
> The output is supposed to be 3x1 and properly recoded but currently returns
> {code}
> NaN
> NaN
> NaN
> {code}



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

Mime
View raw message