Skip to main content

WetNet

WetNet helps Aigües de Barcelona (Barcelona Water Company) predict anomalous water consumption, using machine learning.

WetNet logo

Setup

1. Install uv

Our project uses uv to manage dependencies in a reproducible way. See Installing uv documentation for installation instructions.

[!TIP] You can skip the rest of the setup if you just want to run the scripts and see the project in action! Run uvx https://github.com/ZachParent/wet-net.git --help to see the available commands in the CLI.

2. Clone the repository

git clone https://github.com/ZachParent/wet-net.git
cd wet-net

3. Install the project dependencies

uv sync --locked

Usage

Run the scripts

The easiest way to verify that the project is working is to run the scripts. These command line interfaces include help documentation.

uv run wet-net pre-process --help
uv run wet-net train --help
uv run wet-net evaluate --help

The code for the scripts can be found in the src/wet_net/scripts directory.

Notebooks

We use Jupyter notebooks to show the process of preparing the data, training the model, and evaluating the model, with descriptions and code. You can run the notebooks by opening them up in your favorite IDE. Be sure to choose the .venv kernel which is created and managed by uv. The notebooks can be found in the notebooks directory.

01_pre_process.ipynb

The 01_pre_process.ipynb notebook shows the process of preparing the data. It includes:

  • Loading the data
  • Pre-processing the data
  • Saving the pre-processed data

02_train.ipynb

The 02_train.ipynb notebook shows the process of training the model. It includes:

  • Loading the pre-processed data
  • Training the model
  • Saving the trained model

03_evaluate.ipynb

The 03_evaluate.ipynb notebook shows the process of evaluating the model. It includes:

  • Loading the trained model
  • Evaluating the model
  • Saving the evaluation results

Contributing

We welcome contributions to the project. Please feel free to submit an issue or pull request.

For more information on contributing, including how to set up pre-commit hooks and how to cut a new release, see CONTRIBUTING.md.

Metadata

Release files for wet-net 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wet-net 0.3.0
File Size Uploaded
wet_net-0.3.0.tar.gz 6.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for wet-net 0.3.0
File Interpreter ABI Platform
wet_net-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 16.5 kB

Release files / wet_net-0.3.0.tar.gz

Download URL wet_net-0.3.0.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
76879e3f206ed60de812c6edb4f1018f0283b78ad6f55b2ab3b900aa9260c68b
BLAKE2b-256 checksum
How to use checksums
0d4c5d63f40dca06ea49063013436e4660b5c00541533dad47186586df73ebb9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.15 {"installer":{"name":"uv","version":"0.9.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / wet_net-0.3.0-py3-none-any.whl

Download URL wet_net-0.3.0-py3-none-any.whl
Size 10.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1ea2513d1c070741d3cafacf4c5ca44f5f6e53650054a47f8887ea2afec1a1c2
BLAKE2b-256 checksum
How to use checksums
128a61409d2adb44c0b9754b6253a3273561b9f887c15b48550f42628725d453
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.15 {"installer":{"name":"uv","version":"0.9.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page