-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
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
,A,B
x,1,5
y,2,6
z,3,7
w,4,8
The output is:
[{"LHS":[1],"RHS":[0],"similarity":1.0,"lHeaders":["A"],"rHeaders":[""],"timestamp":5069158821500}]
Whereas one would expect lHeaders = ["B"] and rHeaders = ["A"]
This is caused by the header including an empty string which it finds here -> , A , B
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels