The harmonic mean is a useful function for calculating effective interest rates or the rate of return in financial applications. Additionally, it is often used for averaging ratios or rates, such as in the F-measure for evaluating classification models. The formal definition is defined below.
HM(x1,x2,…,xn)=∑i=1nxi1n
To implement the Harmonic mean function, see the method signature below.
Precision represents the number of decimal places and can be set between 0 and 18. It is applied to nums, weights and the output. Under the hood, the following functions are utilized directly in the Neural client.