In: Advanced Math
Implement the TF-IDF pivoted normalization method and Okapi retrieval formula above. For the Okapi formula, set k3=1000 and k1=1.2, so that you have only one parameter b to vary. In this way, both algorithms have precisely one parameter to tune.