Skip to main content

A small machine learning package

Project description

AI4One 🤖

A small, modular package for machine learning.


Installation

pip install ai4one

This package requires Python 3.8 or newer.


Usage

ai4one.config

The primary feature of this package is a powerful configuration system. For a comprehensive guide and examples, please see the Configuration System Guide.

from ai4one.config import BaseConfig
from typing import List


class TrainConfig(BaseConfig):
    learning_rate: float = 0.001
    epochs: int = 10
    optimizer: str = "Adam"
    layers: List[int] = [512, 256]


if __name__ == "__main__":
    config = TrainConfig.argument_parser()
    print(f"Using optimizer: {config.optimizer}")

You can also run the self-contained example to see it in action:

examples/example_config.py

Development

Interested in contributing? Set up your local development environment with uv.

  1. Clone the repository:

    git clone https://github.com/bestenevoy/ai4one.git
    cd ai4one
    
  2. Create a virtual environment and install dependencies: This command installs all core, optional, and development dependencies.

    uv pip install -e ".[dev]"
    

    To keep your environment in sync with the lock file, you can run uv sync.

  3. Run tests:

    uv run pytest
    

Build and Publish

These commands are for package maintainers.

Build the package:

uv build

Publish to PyPI:

uv run twine upload dist/*

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

ai4one-0.1.2.tar.gz (19.2 kB view details)

Uploaded Source

Built Distribution

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

ai4one-0.1.2-py3-none-any.whl (19.8 kB view details)

Uploaded Python 3

File details

Details for the file ai4one-0.1.2.tar.gz.

File metadata

  • Download URL: ai4one-0.1.2.tar.gz
  • Upload date:
  • Size: 19.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for ai4one-0.1.2.tar.gz
Algorithm Hash digest
SHA256 aba3ae987357a1c47d1a1d0dc0d2b999e49b3af1299b830aedd0c09e8b9ac280
MD5 d382e3b4fa5c5e4af8961dfa9823b4bb
BLAKE2b-256 3b91b71aba1a74c7183dc9cd39f4cad617cb780e03c87908e93185a2db8a683a

See more details on using hashes here.

File details

Details for the file ai4one-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: ai4one-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 19.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for ai4one-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4c6d9bd3cfe7b95669a9ad667670d824b22dd082762c546f94efff714b299415
MD5 2ee772981bd6e9498a3d3aecaf1eb23d
BLAKE2b-256 ed8c02a88103d2d09d73135ae7c36f792b411cfb2d660c9f2abed988d6d71160

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