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.

Pre-commit hooks

We use pre-commit hooks to run checks on the code before it is committed. You can install the pre-commit hooks by running the following command in the root of the repository:

uv run pre-commit install

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.2.1.tar.gz (3.6 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.2.1-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wet_net-0.2.1.tar.gz
  • Upload date:
  • Size: 3.6 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.2.1.tar.gz
Algorithm Hash digest
SHA256 65bce9ab1726ea60dda2fd867915a0eadbbe2b816276bd6daaccd3fd99c4bb40
MD5 e4588563c32a3abebab918c0edddd63f
BLAKE2b-256 1994945ba64dbf10f04f417baa5c6a57b6839e4b2ac02184e907d819a147c775

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wet_net-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 5.9 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.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 11353b1d02208fcfaad3b987f8654b941ab8f08893ac5f62c01b04ac75fe9e38
MD5 fa3440b0c3dcb4784a73a16b8238442d
BLAKE2b-256 be7d45875e038116b8e587bc2c8a86a47710b3eca33be732f00904a244988a56

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