quintinali commented on a change in pull request #31: SDAP-118 create a new
ranking module
URL:
https://github.com/apache/incubator-sdap-mudrod/pull/31#discussion_r199643245
##########
File path:
ranking/src/main/java/org/apache/sdap/mudrod/ranking/common/Ranker.java
##########
@@ -160,11 +160,9 @@ public int compare(SResult o1, SResult o2) {
}
double[] ins = instList.stream().mapToDouble(i -> i).toArray();
- LabeledPoint insPoint = new LabeledPoint(99.0, Vectors.dense(ins));
- int prediction = (int)le.classify(insPoint);
+ int prediction = (int)le.predict(ins);
Review comment:
It doesn't matter here. The return value of this function is either 0 or 1.
1 meaning o1 should be ranked higher that o2 and 0 meaning o1 has the same
rank as o2
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services