Skip to main content

Machine learning tools to complement the AIronSuit package.

Project description

AIronTools

AIronTools (Beta) is a Python library that provides the user with higher level state-of-the-art deep learning tools built to work with tensorflow as a backend. The main goal of this repository is to enable fast model design for both POCs and production.

Key features:

  1. Out-of-the-box models ready to be used.
  2. Block constructor to build customised blocks/models.
  3. Layer constructor to build customised layers such as sequential, convolutional, self-attention or dense, and combinations of them.
  4. Preprocessing tools.
  5. On the fly non-topological hyper-parameter optimization. For now only the dropout regularization is compatible with this feature, in the future others such as l1 and l2 regularization will be compatible too.
  6. Latent representations for visualization purposes.

Installation

pip install airontools

Custom Keras subclass to build a variational autoencoder (VAE) with airontools and compatible with aironsuit

import numpy as np
import tensorflow as tf
from airontools.constructors.models.unsupervised.vae import VAE
from numpy.random import normal

tabular_data = np.concatenate(
    [
        normal(loc=0.5, scale=1, size=(100, 10)),
        normal(loc=-0.5, scale=1, size=(100, 10)),
    ]
)
model = VAE(
    input_shape=tabular_data.shape[1:],
    latent_dim=3,
)
model.compile(optimizer=tf.keras.optimizers.Adam(learning_rate=0.001))
model.fit(
    tabular_data,
    epochs=10,
)
print(f"VAE evaluation: {model.evaluate(tabular_data)['loss']:.4f}")

More examples

see usage examples in aironsuit/examples

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

airontools-0.1.51-py3-none-macosx_13_0_arm64.whl (23.4 kB view details)

Uploaded Python 3 macOS 13.0+ ARM64

airontools-0.1.51-py3-none-any.whl (23.4 kB view details)

Uploaded Python 3

File details

Details for the file airontools-0.1.51-py3-none-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for airontools-0.1.51-py3-none-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 67e88dfbf1ce390cffc299f3eed1c15bdad0eb435b1ed8ff703a6d9279100a3e
MD5 d6a0b6acc1209245eb5a260f7d76dbb3
BLAKE2b-256 1f9311d328cc9d9992599202196561afc18b8f0bfdc4561509338eef4689983d

See more details on using hashes here.

File details

Details for the file airontools-0.1.51-py3-none-any.whl.

File metadata

  • Download URL: airontools-0.1.51-py3-none-any.whl
  • Upload date:
  • Size: 23.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for airontools-0.1.51-py3-none-any.whl
Algorithm Hash digest
SHA256 443da111f9d200a865cfab8bf204c402aa2c9494ca0a88674e40a963a338dbc3
MD5 c8f32808edff9e949072e52257b7c899
BLAKE2b-256 2cd32ff40bd333caca77c42ddc53c2988750c635c4605fe7e94d7a1f2202d76d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page