Skip to content

Row-major format example parsed as column-major format #4

@tkortekaas

Description

@tkortekaas

Given input:

final RunParameters runParameters = new RunParameters("path/to/dataset.csv", SimEnum.PEARSON_CORRELATION, 1, 1);
runParameters.setTopK(1);
runParameters.setQueryType(QueryTypeEnum.TOPK);

final CorrelationDetective correlationDetective = new CorrelationDetective(runParameters);
queries.ResultSet res = correlationDetective.run();

System.out.println(res.toJson());

and dataset.csv (exact copy of the row-major format example from the readme)

,x,y,z,w
A,1,2,3,4
B,5,6,7,8
C,9,10,11,12

The output is:

[{"LHS":[0],"RHS":[1],"similarity":0.9999999999999998,"lHeaders":["x"],"rHeaders":["y"],"timestamp":6992495037375}]

Whereas one would expect lHeaders = ["B"] and rHeaders = ["A"]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions