PyAerial Documentation
Welcome to PyAerial’s documentation!
PyAerial is a Python implementation of the Aerial scalable neurosymbolic association rule miner for tabular data.
It aims to learn a small set of high-quality rules as opposed to exhaustive rule miners such as Apriori, FP-Growth, ECLAT etc. This is done by learning a neural (network) represantation of the given table, which captures only the most prominent patterns, and then the rules are extracted from the neural representation.
Learn more about the architecture, training, and rule extraction in the paper: Neurosymbolic Association Rule Mining from Tabular Data (NeSy 2025), or in the How Aerial Works page.
Performance
PyAerial significantly outperforms traditional ARM methods in scalability, also on CPU, while maintaining high-quality results:
Execution time comparison across datasets of varying sizes. PyAerial scales linearly while traditional methods (e.g., Mlxtend, SPMF) exhibit exponential growth.
Key advantages:
⚡ 100-1000x faster on large datasets compared to Apriori/FP-Growth Python implementations
📈 Linear scaling in training, polynomial scaling in rule extraction
🎯 No rule explosion - extracts concise, high-quality rules with full data coverage
💾 Memory efficient - neural representation avoids storing exponential candidate sets
🖥️ Fast on CPU - GPU is optional and only needed for very large datasets
For comprehensive benchmarks and comparisons with Mlxtend (e.g., FPGrowth, Apriori etc.), and other ARM tools, see our benchmarking paper: PyAerial: Scalable association rule mining from tabular data (SoftwareX, 2025).
Contents:
- Getting Started
- User Guide
- 1. Association Rule Mining from Categorical Tabular Data
- 2. Specifying Item Constraints
- 3. Setting Aerial Parameters
- 4. Fine-tuning Autoencoder Architecture and Dimensions
- 5. Running Aerial for Numerical Values
- 6. Frequent Itemset Mining with Aerial
- 7. Using Aerial for Rule-Based Classification for Interpretable Inference
- 8. Smart Defaults and Filtering
- 9. Visualizing Association Rules
- Parameter Tuning Guide
- Configuration and Troubleshooting
- API Reference
- How Aerial Works
- Citation