UBC-MDS / forest-fire-area-prediction

This project aims to predict the burned area of forest fires in the northeast region of Portugal, using meteorological and soil moisture data.
https://ubc-mds.github.io/forest-fire-area-prediction/reports/forest_fire_analysis_report.html
MIT License
8 stars 10 forks source link

Stats Model API Runtime Warning #49

Open gauthampughazhendhi opened 2 years ago

gauthampughazhendhi commented 2 years ago

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)