debug_info
debug_info(str message, float var)
allows to print message and variables from the score function. The output will be saved under the search result.
This function is a useful tool to assist in debug of the score function.
Input
message(str) - the message to be saved in the search result.
var(float or int) - a variable to be stored as part of the message.
Output
(str) - a message that includes the printed output.
Example:
In the above example -
The search results will include two additional keys per candidate, stored under the "similarity" key, corresponding to the messages created using debug_info in the score function.
Last updated