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, field
from typing import List
class TrainConfig(BaseConfig):
learning_rate: float = 0.001
epochs: int = 10
optimizer: str = "Adam"
layers: List[int] = [3, 3]
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.
-
Clone the repository:
git clone https://github.com/bestenevoy/ai4one.git cd ai4one
-
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. -
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ai4one-0.1.4.tar.gz.
File metadata
- Download URL: ai4one-0.1.4.tar.gz
- Upload date:
- Size: 21.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f911d6d7faae2800b67ca721d8e5ac7bd415b4c2021580369e59478847e8ac0
|
|
| MD5 |
21a3f82b729a06e699baa8d1aba722cd
|
|
| BLAKE2b-256 |
dad934a25010a5c866bc1349f1c8c825ddecbceb43cb35035dda80a4569d6427
|
File details
Details for the file ai4one-0.1.4-py3-none-any.whl.
File metadata
- Download URL: ai4one-0.1.4-py3-none-any.whl
- Upload date:
- Size: 26.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7a0de8dd2c8eccc9c2f21e344e3831cab443cb2ab0c2b7be6b20a6fd2dac601
|
|
| MD5 |
3d65146e9d300ce1d4ff3119e6654aca
|
|
| BLAKE2b-256 |
9d4eec7d1b2dcb14455dbccc5332e2c9615200573a014c89ed7e73b7c4631a4f
|