Metadata-Version: 2.5
Name: pydaltoolboxdp
Version: 1.0.727
Summary: Deep ++ extensions for pydaltoolbox, pytspredit, and pyharbinger
Project-URL: Homepage, https://github.com/cefet-rj-dal/pydaltoolboxdp
Project-URL: Repository, https://github.com/cefet-rj-dal/pydaltoolboxdp
Project-URL: Bug Tracker, https://github.com/cefet-rj-dal/pydaltoolboxdp/issues
Author: Eduardo Ogasawara, Diego Carvalho, Diego Salles, Erich Carvalho, Janio Lima, Joao Kongevold, Lucas Tavares, Eduardo Bezerra, CEFET/RJ
Maintainer-email: Eduardo Ogasawara <eogasawara@ieee.org>
License: MIT
License-File: LICENSE
Keywords: autoencoder,deep learning,event detection,experiment line,time series
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.10
Requires-Dist: numpy>=1.23
Requires-Dist: pandas>=1.5
Requires-Dist: pydaltoolbox>=0.25.0
Requires-Dist: pyharbinger>=0.17.0
Requires-Dist: pytspredit>=0.13.0
Requires-Dist: scipy>=1.9
Requires-Dist: torch>=2.0
Provides-Extra: dev
Requires-Dist: build; extra == 'dev'
Requires-Dist: pytest>=7; extra == 'dev'
Requires-Dist: ruff>=0.1; extra == 'dev'
Requires-Dist: twine; extra == 'dev'
Provides-Extra: docs
Requires-Dist: ipykernel>=6; extra == 'docs'
Requires-Dist: jupytext>=1.16; extra == 'docs'
Requires-Dist: matplotlib>=3.6; extra == 'docs'
Requires-Dist: nbclient>=0.9; extra == 'docs'
Requires-Dist: nbconvert>=7; extra == 'docs'
Description-Content-Type: text/markdown

# pydaltoolboxdp

[![PyPI version](https://img.shields.io/pypi/v/pydaltoolboxdp.svg)](https://pypi.org/project/pydaltoolboxdp/)
[![Python versions](https://img.shields.io/pypi/pyversions/pydaltoolboxdp.svg)](https://pypi.org/project/pydaltoolboxdp/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/cefet-rj-dal/pydaltoolboxdp/blob/main/LICENSE)

Python implementation of the DAL ecosystem's **Deep ++** layer — deep-learning and advanced
models that extend the Experiment Line contracts of
**[pydaltoolbox](https://github.com/cefet-rj-dal/pydaltoolbox)**,
**[pytspredit](https://github.com/cefet-rj-dal/pytspredit)**, and
**[pyharbinger](https://github.com/cefet-rj-dal/pyharbinger)**.

The sibling R package, [daltoolboxdp](https://github.com/cefet-rj-dal/daltoolboxdp), is a
thin `reticulate` interface over these classes — the Python implementations live here once
and are shared across both ecosystems.

## Installation

```bash
pip install pydaltoolboxdp
```

PyTorch is a core dependency. Models run on CPU by default, with optional GPU (CUDA)
acceleration when available.

## Quickstart

```python
import pydaltoolbox as dal
from pydaltoolboxdp import AutoencEd

iris = dal.datasets.iris()
x = iris.drop(columns="Species")

model = AutoencEd(input_size=4, encoding_size=2, epochs=20, random_state=42).fit(x)
reconstructed = model.transform(x)
print(reconstructed.head())
```

## What's included

Every class specializes the Experiment Line contracts from `pydaltoolbox`, `pytspredit`, or
`pyharbinger`, so training, transformation, forecasting, event detection, and evaluation
follow the same unified interface.

| Group | Classes |
|---|---|
| **Dense & Denoising Autoencoders** | `AutoencE`, `AutoencEd`, `AutoencDenoiseE`, `AutoencDenoiseEd` |
| **Convolutional & Recurrent Autoencoders** | `AutoencConvE`, `AutoencConvEd`, `AutoencLstmE`, `AutoencLstmEd` |
| **Stacked, Variational & Adversarial Autoencoders** | `AutoencStackedE`, `AutoencStackedEd`, `AutoencVariationalE`, `AutoencVariationalEd`, `AutoencAdvE`, `AutoencAdvEd` |
| **Tabular Classification & Regression** | `SkclaGb`, `TorchClaMlp`, `TorchRegMlp` |
| **Deep Time Series Forecasting** | `TorchTsMlp`, `TsConv1D`, `TsLstm` |
| **Deep Event Detection** | `HanAutoencoder` (reconstruction-based anomaly detection), `HcpWaypoint` (adaptive autoencoder/CUSUM change-point detection) |

## Guided Tutorial Track

If you are new to `pydaltoolboxdp`, start with the
[GitHub examples index](https://github.com/cefet-rj-dal/pydaltoolboxdp/blob/main/examples/README.md)
and follow the environment and autoencoder entry points:

- [GPU and environment](https://github.com/cefet-rj-dal/pydaltoolboxdp/blob/main/examples/gpu/README.md) — CPU defaults, optional CUDA acceleration, and the R/Python `reticulate` boundary.
- [Autoencoders](https://github.com/cefet-rj-dal/pydaltoolboxdp/blob/main/examples/autoencoder/README.md) — progressive walkthrough of all seven encoder and encoder-decoder families plus early stopping.

## Thematic Example Collections

Jump directly to any thematic example collection on GitHub:

- [GPU and environment](https://github.com/cefet-rj-dal/pydaltoolboxdp/blob/main/examples/gpu/README.md) — CPU defaults, optional CUDA, and environment setup.
- [Autoencoders](https://github.com/cefet-rj-dal/pydaltoolboxdp/blob/main/examples/autoencoder/README.md) — dense, denoising, Conv1D, LSTM, stacked, variational, and adversarial autoencoders with validation and stopping rules.
- [Classification](https://github.com/cefet-rj-dal/pydaltoolboxdp/blob/main/examples/classification/README.md) — gradient boosting (`SkclaGb`) and configurable PyTorch MLP classification (`TorchClaMlp`).
- [Regression](https://github.com/cefet-rj-dal/pydaltoolboxdp/blob/main/examples/regression/README.md) — PyTorch MLP regression (`TorchRegMlp`) and validation strategies.
- [Time series](https://github.com/cefet-rj-dal/pydaltoolboxdp/blob/main/examples/timeseries/README.md) — temporal representation learning and univariate deep forecasting (`TorchTsMlp`, `TsConv1D`, `TsLstm`).
- [Multivariate time series](https://github.com/cefet-rj-dal/pydaltoolboxdp/blob/main/examples/multivariate/README.md) — multivariate sliding-window forecasting with MLP, Conv1D, and LSTM architectures.
- [Event detection](https://github.com/cefet-rj-dal/pydaltoolboxdp/blob/main/examples/events/README.md) — deep anomaly detection (`HanAutoencoder`) and adaptive change-point detection (`HcpWaypoint`).

## Main Capabilities

- **Unified Deep ++ abstractions** extending `pydaltoolbox`, `pytspredit`, and `pyharbinger` under the Experiment Line contract (`fit` → `transform` / `predict` / `detect` → `evaluate`).
- **Seven autoencoder families** (14 encoder and encoder-decoder classes) covering dense, denoising, Conv1D, LSTM, stacked, variational, and adversarial architectures with configurable validation and early-stopping strategies.
- **Deep tabular learning** with PyTorch MLP classifiers/regressors (`TorchClaMlp`, `TorchRegMlp`) and gradient-boosted classification (`SkclaGb`).
- **Deep time-series forecasting** supporting one-step, multi-step, univariate, and multivariate sliding-window workflows (`TorchTsMlp`, `TsConv1D`, `TsLstm`).
- **Deep event detection** combining reconstruction-error anomaly detection (`HanAutoencoder`) and adaptive autoencoder/CUSUM change-point detection (`HcpWaypoint`).

## Related DAL projects

- [pydaltoolbox](https://github.com/cefet-rj-dal/pydaltoolbox) — foundation (Python)
- [pytspredit](https://github.com/cefet-rj-dal/pytspredit) — time series prediction (Python)
- [pyharbinger](https://github.com/cefet-rj-dal/pyharbinger) — time series event detection (Python)
- [daltoolbox](https://github.com/cefet-rj-dal/daltoolbox) / [daltoolboxdp](https://github.com/cefet-rj-dal/daltoolboxdp) / [tspredit](https://github.com/cefet-rj-dal/tspredit) / [harbinger](https://github.com/cefet-rj-dal/harbinger) — R siblings
- [Data Analytics Lab](https://eic.cefet-rj.br/~dal/)

## License

MIT
