Skip to main content

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_core
  • aidge_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 --Full to 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 -h to 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] -v is 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 pip instead.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

aidge_learning-0.9.0-cp312-cp312-win_amd64.whl (3.7 MB view details)

Uploaded CPython 3.12Windows x86-64

aidge_learning-0.9.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

aidge_learning-0.9.0-cp311-cp311-win_amd64.whl (3.7 MB view details)

Uploaded CPython 3.11Windows x86-64

aidge_learning-0.9.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

aidge_learning-0.9.0-cp310-cp310-win_amd64.whl (3.7 MB view details)

Uploaded CPython 3.10Windows x86-64

aidge_learning-0.9.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

File details

Details for the file aidge_learning-0.9.0-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for aidge_learning-0.9.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 98628acc844c1f23333770ffef9f029cd48065c72155c7b340197be2fc85a8d5
MD5 31d458738fb0f0186af6b21f5d7d8ad1
BLAKE2b-256 a274a5dc2cd1dce6879f4e6992a9210527af8a7012942e5022d68ffdbdbc0942

See more details on using hashes here.

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

File hashes

Hashes for aidge_learning-0.9.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b995f36c0a6405635a79f6e285800673e35487ae73b29deea4d1af2f22203054
MD5 24fb02d16370797438fed509efd9d577
BLAKE2b-256 5d557e2baa5e2eba39d599fbd9ccca8279a1e04354cd0bcb6c4e0c9fdcf4072a

See more details on using hashes here.

File details

Details for the file aidge_learning-0.9.0-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for aidge_learning-0.9.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1f8ed916c81992f6f006548f95d9d86c41ea2ecbc0bdb5343e0ea37968961728
MD5 1d26acc95223a224ce76029d8c05d4ce
BLAKE2b-256 367a89ba71d344c364a08e32b7424c85647b02300e5e0b7154863373147f6d6e

See more details on using hashes here.

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

File hashes

Hashes for aidge_learning-0.9.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 106344834f4a530e256723d57b8bdaed6f243c5ac307f73594e2e93c632b8aad
MD5 8953f233e502bfe82268c1977befea5e
BLAKE2b-256 16428fb361962a1572e807c4656fc869b603ab9fd0a66c696f919d3a9e75e8af

See more details on using hashes here.

File details

Details for the file aidge_learning-0.9.0-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for aidge_learning-0.9.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a0fe3ebadd2a059e7b2a3bf30cd75163715b978c9f72da52a361d2efdec1cb46
MD5 3fb885ef46b537e01dc1ae2d3c83651b
BLAKE2b-256 936f582b00be93ac52b58fbdcfe2edbb99ac5559dee0120aae449b4ce6accd39

See more details on using hashes here.

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

File hashes

Hashes for aidge_learning-0.9.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d67ae48c2ac20edaab8e580ce1485c3dc89395062b6176c38de025992841301a
MD5 68265e80a6042a5270a4dfd8364b0f06
BLAKE2b-256 5fa69aca0250b5d98442e6ee15aa22a145ccd2d03bfb6b8a32bf70b39b4beaec

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