pydaltoolbox
Python port of the R DAL Toolbox — leveraging Experiment Lines for Data Analytics.
pydaltoolbox organizes data analytics workflows (preprocessing, modeling, evaluation,
tuning, pattern mining, visualization, and extensibility) around a consistent Experiment
Line API (fit → transform / predict → evaluate), reusing classic Python libraries
(scikit-learn, numpy, pandas) through thin adapters and self-contained native
implementations.
It is the foundation of the DAL Python family:
- Powers pytspredit (time series prediction) and pyharbinger (time series event detection).
Installation
pip install pydaltoolbox
Optional extras for pattern mining (mlxtend), gradient boosting (xgboost), and plotting
(matplotlib):
pip install "pydaltoolbox[patterns,xgboost,viz]"
Quickstart
import pydaltoolbox as dal
iris = dal.datasets.iris()
slevels = list(iris["Species"].cat.categories)
split = dal.SampleRandom(seed=42).train_test(iris)
train, test = split["train"], split["test"]
model = dal.ClaDtree("Species", slevels, random_state=42).fit(train)
pred = model.predict(test.drop(columns="Species"))
ev = model.evaluate(test["Species"], pred)
print(ev["metrics"])
What's included
Every component extends the Experiment Line base classes (DalBase, DalTransform,
DalLearner, Predictor) so preprocessing, modeling, sampling, evaluation, and tuning
compose uniformly.
| Group | Classes & Functions |
|---|---|
| Core Experiment Line | DalBase, DalTransform, DalLearner, Predictor, adjust_dataframe, adjust_matrix, adjust_factor, adjust_class_label |
| Sampling | DataSample, SampleRandom, SampleStratified, SampleSimple, SampleGroups, train_test_from_folds |
| Transformations | MinMax, ZScore, NaRemoval, ImputationSimple, ImputationPredictive, ImputationTree, OutliersBoxplot, OutliersGaussian, CategMapping, DtPca, FeatureSelectionCorr, FeatureSelectionLasso, FeatureSelectionInfoGain, FeatureSelectionFss, FeatureSelectionStepwise, FeatureSelectionRelief, FeatureGeneration, Aggregation, HierarchyCut, Smoothing, SmoothingInter, SmoothingFreq, SmoothingQuantization, SmoothingCluster, SampleBalance, BalSubsampling, BalOversampling, FitCurvatureMin, FitCurvatureMax |
| Classification | Classification, ClaDtree, ClaRpart, ClaKnn, ClaNb, ClaRf, ClaBagging, ClaBoosting, ClaSvm, ClaMlp, ClaGlm, ClaMultinom, ClaGlmnet, ClaMajority, ClaXgboost ([xgboost]) |
| Regression | Regression, RegLm, RegDtree, RegKnn, RegRf, RegSvm, RegMlp |
| Clustering | Clusterer, ClusterKmeans, ClusterDbscan, ClusterGmm, ClusterHclust, ClusterPam, ClusterCmeans |
| Pattern mining | PatternMiner, PatUtils, PatApriori ([patterns]), PatPrefixSpan (native), RuleFilter, RuleFilterNone, RuleFilterDara, RuleFilterInterest, dara, dara_score, SupportThreshold, ConfidenceThreshold, pat_rules_tidy |
| Tuning | DalTune, ClaTune, RegTune, CluTune |
| Autoencoder bases | AutoencBaseE, AutoencBaseEd (for extension) |
Visualization ([viz]) |
plot_hist, plot_density, plot_density_class, plot_boxplot, plot_boxplot_class, plot_bar, plot_groupedbar, plot_stackedbar, plot_lollipop, plot_pieplot, plot_radar, plot_scatter, plot_points, plot_correlation, plot_parallel, plot_pixel, plot_dendrogram |
| Datasets | datasets.iris(), datasets.diabetes(), datasets.boston() |
Guided Tutorial Track
If you are new to pydaltoolbox, start with the guided tutorials in the
GitHub examples collection:
- Tutorials — a structured learning path with semantic numbering blocks covering Experiment Line foundations, classification workflows, workflow transfer across tasks, and custom extensions.
Thematic Example Collections
If you already know the basic Experiment Line workflow, jump directly to any thematic example collection on GitHub:
- Transformations — sampling, cleaning, imputation, scaling, encoding, smoothing, balancing, feature selection, aggregation, and dimensionality reduction.
- Classification — foundations, linear models, kNN, probabilistic models, SVM, neural networks, ensembles, and model selection.
- Regression — linear models, flexible and nonlinear learners, ensembles, and hyperparameter tuning.
- Clustering — partitional, density-based, hierarchical, fuzzy, and Gaussian mixture clustering, plus cluster tuning.
- Pattern mining — frequent itemsets, association rules (
PatApriori), rule filtering (RuleFilterDara,RuleFilterInterest), threshold estimation, and sequential pattern mining (PatPrefixSpan). - Graphics — distribution, comparison, relationship, and structure visualizations with matplotlib.
- Custom extensions — adding custom transformations and learners while preserving the DAL Experiment Line contract.
Main Capabilities
- Unified Experiment Line abstractions for data transformations, learners, predictors, samplers, evaluators, and hyperparameter tuners.
- Comprehensive data preprocessing covering scaling, outlier removal, simple and predictive imputation, categorical encoding, PCA, smoothing, class balancing, aggregation, and feature selection.
- Supervised and unsupervised modeling spanning 14+ classifiers, 6 regressors, and 6 clustering algorithms with consistent evaluation metrics and tuning (
ClaTune,RegTune,CluTune). - Pattern mining supporting frequent itemsets, association rule mining, divergent-association ranking (
dara), automatic threshold estimation, and native sequential pattern mining (PatPrefixSpan). - Visualization and extensibility with 17 matplotlib plotting utilities (
[viz]) and clean base classes (DalTransform,Classification,Regression,Clusterer,AutoencBaseE/AutoencBaseEd) for custom extensions.
Related DAL projects
- pytspredit — time series prediction (Python)
- pyharbinger — time series event detection (Python)
- daltoolbox / tspredit / harbinger — R originals
- Data Analytics Lab
License
MIT
Metadata
Release files for pydaltoolbox 1.0.727
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pydaltoolbox-1.0.727.tar.gz | 84.9 kB | Without provenance | Details for pydaltoolbox-1.0.727.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pydaltoolbox-1.0.727-py3-none-any.whl | Python 3 | none | any | Details for pydaltoolbox-1.0.727-py3-none-any.whl |
Total release size: 203.7 kB
Release files / pydaltoolbox-1.0.727.tar.gz
| Download URL | pydaltoolbox-1.0.727.tar.gz |
|---|---|
| Size | 84.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
037981c02131095ca59358e0df8eedfca71fed57bf6e08ad765db47532ed8ecd
|
|
BLAKE2b-256 checksum How to use checksums |
1742f313085728c9a87ca3f952c7afd2291ade7ae48d1281cc11d7a0c9a227c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.0
|
Release files / pydaltoolbox-1.0.727-py3-none-any.whl
| Download URL | pydaltoolbox-1.0.727-py3-none-any.whl |
|---|---|
| Size | 118.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1b2a35a73e650d1cc9a86a47f3cdfab727e9e6794557abf723ff02c3bcca5efd
|
|
BLAKE2b-256 checksum How to use checksums |
f157120781431a6b95446502893b40cb852da98512dee117b1874796133ee8c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.0
|
Security for pydaltoolbox 1.0.727
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.