Closed rimms closed 7 years ago
When I tested similar_row_from_id_and_rate using jubatus server and queried with negative rate value, I got lots of data points. I don't think this is expected result. We need to validate the input parameter.
My test codes are here. I also printed out the intermediate value of calculation(rate, result of std::ceil, ret_num).
Thanks.
I implemented validation to rate
.
LGTM
Refs. https://github.com/jubatus/jubatus/issues/1100