It seems, that the ari is guaranteed to be 0 if the reference or the prediction contains only one single bin, even if a single bin prediction would be correct.
Also, when both have only one bin, a division by zero occurs.
This seems to be an issue with the mathematical formulas of ari, not the code, I think.
It seems, that the ari is guaranteed to be 0 if the reference or the prediction contains only one single bin, even if a single bin prediction would be correct.
Also, when both have only one bin, a division by zero occurs. This seems to be an issue with the mathematical formulas of ari, not the code, I think.