Functions and algorithms to train models in the AIDGE framework
Project description
aidge_learning
In this module, you can find functions and classes to train your models:
Optimizer(SGD)LRScheduler(ConstantLR, StepLR)- loss functions (MSE)
Quick Start
ℹ️ First, make sure to go through installation instructions required for every module.
Dependencies
Aidge dependencies
aidge_coreaidge_backend_cpu- Only needed for tests.
# On Windows, from aidge/
# ----------[ C++ development]----------
setup.ps1 -Modules core, backend_cpu -Clean -Tests
# ----------[ Python development]----------
setup.ps1 -Modules core, backend_cpu -Clean -Tests -Python
# On Unix, from aidge/
# ----------[ C++ development]----------
./setup.sh -m core -m backend_cpu --clean --tests
# ----------[ Python development]----------
./setup.sh -m core, -m backend_cpu --clean --tests --python
Using setup.ps1
[!NOTE] Windows only* *Unless you installed powershell on your system
# ----------[ C++ development]----------
# From aidge/
setup.ps1 -Modules learning -Clean -Tests
# ----------[ Python development]----------
# From aidge/
setup.ps1 -Modules learning -Clean -Tests -Python
[!TIP] Run
Get-Help setup.ps1 --Fullto display documentation
Using setup.sh
[!NOTE] Unix only*
# ----------[ C++ development]----------
# From aidge/
./setup.sh -m learning --clean --tests
# ----------[ Python development]----------
# From aidge/
./setup.sh -m learning --clean --tests --python
[!TIP] Run
setup.sh -hto display documentation
Using pip
[!NOTE] If using virtual environment, make sure to use the same for every installation !
# ----------[ Python development]----------
# only in aidge/aidge/aidge_learning/
pip install . -v
# If you want to install test, do this instead
pip install .[test] -v
# Launch tests using pytest
pytest
[!TIP]
-vis to enable verbose mode !
Development mode install
[!WARNING] Experimental Untested & experimental feature, see https://scikit-build-core.readthedocs.io/en/latest/configuration/index.html#editable-installs.
pip install --no-build-isolation --config-settings=editable.rebuild=true -Cbuild-dir=build -ve.
Using CMake
[!NOTE] Only for C++ development Don't use this method, if you wish to create a pip package Use
pipinstead.
A CMakePreset.json is available.
# Configure
cmake --preset clang-debug
# Build
cmake --build --preset clang-debug
# Install
cmake --install
# Test
ctest --test-dir build/
Feel free to create your own presets in CMakeUsersPresets.json by inheriting the ones available in CMakePresets.json.
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 Distributions
Built Distributions
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 aidge_learning-0.9.0-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: aidge_learning-0.9.0-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 3.7 MB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98628acc844c1f23333770ffef9f029cd48065c72155c7b340197be2fc85a8d5
|
|
| MD5 |
31d458738fb0f0186af6b21f5d7d8ad1
|
|
| BLAKE2b-256 |
a274a5dc2cd1dce6879f4e6992a9210527af8a7012942e5022d68ffdbdbc0942
|
File details
Details for the file aidge_learning-0.9.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: aidge_learning-0.9.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 2.2 MB
- Tags: CPython 3.12, manylinux: glibc 2.27+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b995f36c0a6405635a79f6e285800673e35487ae73b29deea4d1af2f22203054
|
|
| MD5 |
24fb02d16370797438fed509efd9d577
|
|
| BLAKE2b-256 |
5d557e2baa5e2eba39d599fbd9ccca8279a1e04354cd0bcb6c4e0c9fdcf4072a
|
File details
Details for the file aidge_learning-0.9.0-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: aidge_learning-0.9.0-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 3.7 MB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f8ed916c81992f6f006548f95d9d86c41ea2ecbc0bdb5343e0ea37968961728
|
|
| MD5 |
1d26acc95223a224ce76029d8c05d4ce
|
|
| BLAKE2b-256 |
367a89ba71d344c364a08e32b7424c85647b02300e5e0b7154863373147f6d6e
|
File details
Details for the file aidge_learning-0.9.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: aidge_learning-0.9.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 2.2 MB
- Tags: CPython 3.11, manylinux: glibc 2.27+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
106344834f4a530e256723d57b8bdaed6f243c5ac307f73594e2e93c632b8aad
|
|
| MD5 |
8953f233e502bfe82268c1977befea5e
|
|
| BLAKE2b-256 |
16428fb361962a1572e807c4656fc869b603ab9fd0a66c696f919d3a9e75e8af
|
File details
Details for the file aidge_learning-0.9.0-cp310-cp310-win_amd64.whl.
File metadata
- Download URL: aidge_learning-0.9.0-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 3.7 MB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0fe3ebadd2a059e7b2a3bf30cd75163715b978c9f72da52a361d2efdec1cb46
|
|
| MD5 |
3fb885ef46b537e01dc1ae2d3c83651b
|
|
| BLAKE2b-256 |
936f582b00be93ac52b58fbdcfe2edbb99ac5559dee0120aae449b4ce6accd39
|
File details
Details for the file aidge_learning-0.9.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: aidge_learning-0.9.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 2.1 MB
- Tags: CPython 3.10, manylinux: glibc 2.27+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d67ae48c2ac20edaab8e580ce1485c3dc89395062b6176c38de025992841301a
|
|
| MD5 |
68265e80a6042a5270a4dfd8364b0f06
|
|
| BLAKE2b-256 |
5fa69aca0250b5d98442e6ee15aa22a145ccd2d03bfb6b8a32bf70b39b4beaec
|