oscarhibbert / election-predictor

The Precision Scope backend
https://precisionscope.ai
3 stars 0 forks source link

Refactor ml logic data #63

Closed oscarhibbert closed 3 months ago

oscarhibbert commented 3 months ago

Refactor data.py for abstract base class, class for every current data source and main.py refactor accordingly data.py functionality is interfaced via the data_factory function which is included in data.py. Now easy to add new data sources, full support for either GCP BQ or API requests utilising data fetching utility in ml_logic/utils.