Skip to main content

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

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wet_net-0.3.0.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wet_net-0.3.0-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file wet_net-0.3.0.tar.gz.

File metadata

  • Download URL: wet_net-0.3.0.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for wet_net-0.3.0.tar.gz
Algorithm Hash digest
SHA256 76879e3f206ed60de812c6edb4f1018f0283b78ad6f55b2ab3b900aa9260c68b
MD5 d54d2b1814f62f4d3939cb334ad32541
BLAKE2b-256 0d4c5d63f40dca06ea49063013436e4660b5c00541533dad47186586df73ebb9

See more details on using hashes here.

File details

Details for the file wet_net-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: wet_net-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for wet_net-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1ea2513d1c070741d3cafacf4c5ca44f5f6e53650054a47f8887ea2afec1a1c2
MD5 1f1d5b54c57b10393b251a80517600e8
BLAKE2b-256 128a61409d2adb44c0b9754b6253a3273561b9f887c15b48550f42628725d453

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page