Skip to content

jnh277/river_forecasting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

River Forecasting

Project for forecasting river flows based on rainfall

Trained models

Franklin at Fincham

Level gauge:

  • franklin_at_fincham
  • source: water_data_online

Rainfall:

  • franklin_at_fincham
  • source: water_data_online
  • lat: 42.24
  • lon: 145.77

Collingwood below alma

Level gauge:

  • collingwood_below_alma
  • source: water_data_online

Rainfall:

  • franklin_at_fincham
  • source: water_data_online
  • lat: 42.24
  • lon: 145.77

To do

Utility

  • separate requirements.txt out into train vs use
  • remove hardcoding of test/train split value (low)
  • better test train split for time series data (low)
  • implement parrallel processing in train models (high)

Data sources

Modelling ideas

  • feature selection (HIGH)

  • EBM models (MED)

  • Monotonically constrained models

  • Quantile regression for random forests (low)

  • LGBM for regression (quantile and mean)

  • Quantile regression for xgboost when it becomes available (or try this? https://towardsdatascience.com/confidence-intervals-for-xgboost-cac2955a8fde)

  • variational inference (less keen on this)

  • impulse response neural networks

  • multi rain inputs

  • upstream river gauge inputs

Integrations

  • WikiRiver

Software design

  • Make package installable
    • MANIFEST.in
  • config.yaml (MED)
  • TESTS (HIGH)

Done

Software design

  • make package installable
    • Pyproject.toml
    • Versioning
  • API?

Utility

  • forecast input validation!
  • made streamlit app
  • made package installable and version tracked
  • allow better selection of models to be trained
  • added compression to saving of models
  • have optional retrain or not per model per timestep
  • during training save the final decent contiguous section as validation data
  • improve steamlit app

Datasources

  • functionality to use data from water data online
  • downloaded and tried the Franklin at fincham data
  • historical rain forecast info from the norwegian met https://thredds.met.no/thredds/metno.html - they only store historical forecast for scandinavia

Modelling

  • Quantile regression
  • hyperparmeter search (HIGH)
  • compare current franklin results with longer dataset (HIGH), diminishing returns

BUGS

  • second level tqdm is not displaying progress bar properly

About

Project for forecasting river flows based on rainfall

Resources

License

Stars

Watchers

Forks

Packages

No packages published