Machine learning for streamflow prediction
Project description
mlstream
Machine learning for streamflow prediction.
PyPI: https://pypi.org/project/mlstream/
Documentation: https://mlstream.readthedocs.io/
Usage
This project is work in progress. The idea is to create an easy way of training machine learning streamflow models: Just provide your data, select a model (or provide your own), and get the predictions.
Training
exp = Experiment(data_path, is_train=True, run_dir=run_dir,
start_date='01012000', end_date='31122015',
basins=train_basin_ids,
forcing_attributes=['precip', 'tmax', 'tmin'],
static_attributes=['area', 'regulation'])
exp.set_model(model)
exp.train()
Inference
run_dir = Path('./experiments')
exp = Experiment(data_path, is_train=False,
run_dir=run_dir,
basins=test_basin_ids,
start_date='01012016', end_date='31122018')
model.load(run_dir / 'model.pkl')
exp.set_model(model)
results = exp.predict()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mlstream-0.1.2.tar.gz.
File metadata
- Download URL: mlstream-0.1.2.tar.gz
- Upload date:
- Size: 20.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0.post20191101 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6867fd4236de880fe601d0cd949e04aaa836acf190be04e8895d260e9448b65
|
|
| MD5 |
502bb829a4982b50c45223e871d93848
|
|
| BLAKE2b-256 |
0a5cd778315d7caeb58780676b56566f789181ffced5c84090b4f708d81c22e3
|
File details
Details for the file mlstream-0.1.2-py3-none-any.whl.
File metadata
- Download URL: mlstream-0.1.2-py3-none-any.whl
- Upload date:
- Size: 28.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0.post20191101 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b93517e2c4cf08512c586dcad5de021248507c31807fb6a27bcbdb7e3894d354
|
|
| MD5 |
958e3f24052109de64c739d994681c4c
|
|
| BLAKE2b-256 |
ee4c1ec2a126e7cf4376eeeeae902ca2469fc96775c1e60493e1493fdd0717ba
|