In preprocess_n_tune.py we are using Cook's distance to detect the outliers and using statsmodels package to achieve the same. This package throws a runtime warning while fitting an OLS model to the provided features, it's not an error and this warning is prevalent across many implementations available on the internet.
/Users/<user>/opt/miniconda3/envs/ffa_prediction/lib/python3.10/site-packages/statsmodels/stats/outliers_influence.py:696: RuntimeWarning: invalid value encountered in sqrt
return self.resid / sigma / np.sqrt(1 - hii)
In
preprocess_n_tune.py
we are using Cook's distance to detect the outliers and usingstatsmodels
package to achieve the same. This package throws a runtime warning while fitting an OLS model to the provided features, it's not an error and this warning is prevalent across many implementations available on the internet.