Skip to main content

Friendly Environment for Neural Networks (fenn) is a simple framework that automates ML/DL workflows by providing prebuilt trainers, templates, logging, configuration management, and much more.

Project description

Fenn: Friendly Environment for Neural Networks

fenn logo

GitHub stars GitHub forks Codacy Badge codecov PyPI version License PyPI Downloads Discord ServerSponsor

Stop writing boilerplate. Start training.

Friendly Environment for Neural Networks (fenn) is a simple framework that automates ML/DL workflows by providing prebuilt trainers, templates, logging, configuration management, and much more. With fenn, you can focus on your model and data while it takes care of the rest.

fenn preview

Support fenn

If fenn is useful for your work or research, consider supporting its development.

You can support the project by starring the repository on GitHub. It improves visibility and helps others discover fenn.

Sponsorship also helps fund maintenance, improvements, and new features.

Support the project: https://github.com/sponsors/blkdmr

Why fenn?

  • Auto-Configuration: YAML files are automatically parsed and injected into your entrypoint with CLI override support. No more hardcoded hyperparameters or scattered config logic.

  • Unified Logging: All logs, print statements, and experiment metadata are automatically captured to local files and remote tracking backends simultaneously with no manual setup required.

  • Backend Monitoring: Native integration with industry-standard trackers like Weights & Biases (W&B) for centralized experiment tracking and TensorBoard for real-time metric visualization

  • Instant Notifications: Get real-time alerts on Discord and Telegram when experiments start, complete, or fail—no polling or manual checks.

  • Trainers: Built-in support for training loops, validation, and testing with minimal boilerplate. Just define your model and data, and let fenn handle the rest.

  • Template Ready: Built-in support for reproducible, shareable experiment templates.

Installation

pip install fenn

Quickstart

Initialize a Project

Run the CLI tool to see which repositories are available and to download a template together with its configuration file. First, list the available repositories:

fenn list

Then, download one of the available templates (here empty is just an example):

fenn pull empty

This command downloads the selected template into the current directory and generates the corresponding configuration file, which can be customized before running or extending the project.

Configuration

fenn relies on a simple YAML structure to define hyperparameters, paths, logging options, and integrations. You can configure the fenn.yaml file with the hyperparameters and options for your project.

The structure of the fenn.yaml file is:

# ---------------------------------------
# Fenn Configuration (Modify Carefully)
# ---------------------------------------

project: empty

# ---------------------------
# Logging & Tracking
# ---------------------------

logger:
  dir: logger

# ---------------------------------------
# Example of User Section
# ---------------------------------------

train:
    lr: 0.001

Write Your Code

Use the @app.entrypoint decorator. Your configuration variables are automatically passed via args.

from fenn import Fenn

app = Fenn()

@app.entrypoint
def main(args):
    # 'args' contains your fenn.yaml configurations
    print(f"Training with learning rate: {args['train']['lr']}")

    # Your logic here...

if __name__ == "__main__":
    app.run()

By default, fenn will look for a configuration file named fenn.yaml in the current directory. If you would like to use a different name, a different location, or have multiple configuration files for different configurations, you can call set_config_file() and update the path or the name of your configuration file. You must assign the filename before calling run().

app = Fenn()
app.set_config_file("my_file.yaml")
...
app.run()

Run It

python main.py

Contributing

Contributions are welcome!

Interested in contributing? Join the community on Discord

We can then discuss a possible contribution together, answer any questions, and help you get started!

Please, before opening a pull request, consult our CONTRIBUTING.md

Maintainers

The development and long-term direction of fenn is guided by the following maintainers:

Maintainer Role
@blkdmr Creator & Project Administrator
@giuliaOddi Project Administrator
@GlowCheese Core Maintainer
@franciscolima05 Core Maintainer

Maintainers oversee the project roadmap, review pull requests, coordinate releases, and ensure the long-term stability and quality of the framework.

Thank you for supporting the project.

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

fenn-0.1.6.tar.gz (58.7 kB view details)

Uploaded Source

Built Distribution

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

fenn-0.1.6-py3-none-any.whl (78.8 kB view details)

Uploaded Python 3

File details

Details for the file fenn-0.1.6.tar.gz.

File metadata

  • Download URL: fenn-0.1.6.tar.gz
  • Upload date:
  • Size: 58.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for fenn-0.1.6.tar.gz
Algorithm Hash digest
SHA256 7e0f5da83499ae4e8b125b78bd3d243e6fa29d049802d2784079392c3d568472
MD5 90d983c502a4ab8e5a144cf399e23339
BLAKE2b-256 68a901d5360b69314aa87fd5f39b7e110a4ef6837dd2bf7ff7ff517b7423a639

See more details on using hashes here.

File details

Details for the file fenn-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: fenn-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 78.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for fenn-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 a184ef2854382dbfe709905a98404b20e71b13c10764af5c34289f8164e23e98
MD5 b43a631aec83be42b0ff16263808dcfd
BLAKE2b-256 bda7aa1da1d8c288125fac5946c3d847017ff5dd7444efe135cfdb945a2773a5

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