Skip to main content

A Python package offering implementations of state-of-the-art autoencoder architectures in PyTorch.

Project description

logo PyPI version License

📦 Installation

pip install pyautoencoder

Or install from source:

git clone https://github.com/andrea-pollastro/pyautoencoder.git
cd pyautoencoder
pip install -e .

🚀 Quick Example

import torch
from pyautoencoder.models import Autoencoder

# Define encoder and decoder
encoder = torch.nn.Sequential(
    torch.nn.Flatten(),
    torch.nn.Linear(784, 32)
)

decoder = torch.nn.Sequential(
    torch.nn.Linear(32, 784),
    torch.nn.Unflatten(1, (1, 28, 28))
)

# Initialize model
model = Autoencoder(encoder, decoder)

# Forward pass
x = torch.randn(64, 1, 28, 28)
x_hat, z = model(x)

🗺️ Roadmap

  • Autoencoder (AE)
  • Variational Autoencoder (VAE)
  • Hierarchical VAE (HVAE)
  • Importance-Weighted AE (IWAE)
  • Denoising Autoencoder (DAE)
  • Sparse Autoencoder (SAE)

🤝 Contributing

Contributions are welcome — especially new autoencoder variants, training examples, and documentation improvements. Please open an issue or pull request to discuss any changes.

📝 Citing

@misc{pollastro2025pyautoencoder,
  Author = {Andrea Pollastro},
  Title = {pyautoencoder},
  Year = {2025},
  Publisher = {GitHub},
  Journal = {GitHub repository},
  Howpublished = {\url{https://github.com/andrea-pollastro/pyautoencoder}}
}

📄 License

This project is licensed under the MIT License. See the LICENSE file for details.

Project details


Download files

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

Source Distribution

pyautoencoder-1.0.4.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

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

pyautoencoder-1.0.4-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file pyautoencoder-1.0.4.tar.gz.

File metadata

  • Download URL: pyautoencoder-1.0.4.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for pyautoencoder-1.0.4.tar.gz
Algorithm Hash digest
SHA256 4caa9d8b5ad0ae758c51e4dc8475f7701310b3d06e571c748d3d2ae0b8930871
MD5 e4a9285d6ca2204c9de7cab949118dcc
BLAKE2b-256 4d573c145793b02444603b8315d634546cdbc8ee0d8eb166aaaf60a57e414bb1

See more details on using hashes here.

File details

Details for the file pyautoencoder-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: pyautoencoder-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for pyautoencoder-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0a4ac3cf35f1070c5712c230e5880512372c4633dd8c042ab4f47f844bc1eb7a
MD5 9c45ab36e87132959c483cf279bb2210
BLAKE2b-256 a0f149d3adf0f806a108c1ec1d5f24a900fa839cd67aa98ef91527416475f120

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