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:
- Out-of-the-box models ready to be used.
- Block constructor to build customised blocks/models.
- Layer constructor to build customised layers such as sequential, convolutional, self-attention or dense, and combinations of them.
- Preprocessing tools.
- 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.
- 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("VAE evaluation:", float(model.evaluate(tabular_data)["loss"]))
More examples
see usage examples in aironsuit/examples
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 airontools-0.1.34-py3-none-macosx_13_0_arm64.whl.
File metadata
- Download URL: airontools-0.1.34-py3-none-macosx_13_0_arm64.whl
- Upload date:
- Size: 21.5 kB
- Tags: Python 3, macOS 13.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7212798db19cad3d371c3c8b1015c852098ad452053016710b6199fcea5285d6
|
|
| MD5 |
c0a9f6564001805807b4dc11b2b3a06f
|
|
| BLAKE2b-256 |
6d0860794c9503c0e74983a191a9e845e442c670dfe6bd85aced616ad5feffff
|
File details
Details for the file airontools-0.1.34-py3-none-any.whl.
File metadata
- Download URL: airontools-0.1.34-py3-none-any.whl
- Upload date:
- Size: 21.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
84307de7996e10770d734ebac65bf57fcaaf58814dae135a5a36f5a8e8cf2919
|
|
| MD5 |
74746e83d491b800dabccdbf78ccbf8d
|
|
| BLAKE2b-256 |
29ddb8ffed63a44afa3ba30ec0ac1612a0dd030950446d522253a44ad5fb6bff
|