TabSeq Feature Ordering
This module extracts and packages the feature ordering algorithm used in TabSeq (ICPR 2024) as a standalone utility, enabling integration into any tabular deep learning pipeline.
Key Features
- Variance-based intra-cluster ordering
- KMeans clustering for feature grouping
- Weighted global ordering from local cluster orders
- Minimal dependencies, flexible integration
Installation
pip install tabseq-feature-ordering
Parameters
X_train: Tabular training data aspd.DataFramecluster_size: Number of clusters (e.g., 5)sort_order: Intra-cluster sorting order by variance ('ascending'or'descending')
Output
global_ordering: List of column names in reordered orderX_train_reordered: DataFrame with reordered columns
Example
import pandas as pd
import numpy as np
from tabseq_feature_ordering import reorder_features
# Example input
X = pd.DataFrame(np.random.rand(40, 80), columns=[f"F{i}" for i in range(80)])
# Run feature ordering (descending = high variance first)
order, X_reordered = reorder_features(X, cluster_size=5, ascending=False)
# Print the full reordered feature list
print("Reordered Features:\n", order)
License
MIT License © 2024 Zadid Habib
Citation
If you use this module, please cite our paper:
Habib, Al Zadid Sultan Bin, Kesheng Wang, Mary-Anne Hartley, Gianfranco Doretto, and Donald A. Adjeroh. "TabSeq: A Framework for Deep Learning on Tabular Data via Sequential Ordering." In International Conference on Pattern Recognition, pp. 418-434. Cham: Springer Nature Switzerland, 2024.
Bibtex
@inproceedings{habib2024tabseq,
title={TabSeq: A Framework for Deep Learning on Tabular Data via Sequential Ordering},
author={Habib, Al Zadid Sultan Bin and Wang, Kesheng and Hartley, Mary-Anne and Doretto, Gianfranco and A. Adjeroh, Donald},
booktitle={International Conference on Pattern Recognition},
pages={418--434},
year={2024},
organization={Springer}
}
Metadata
Release files for tabseq-feature-ordering 0.1.6
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 |
|---|---|---|---|---|
| tabseq_feature_ordering-0.1.6.tar.gz | 6.8 kB | Without provenance | Details for tabseq_feature_ordering-0.1.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tabseq_feature_ordering-0.1.6-py3-none-any.whl | Python 3 | none | any | Details for tabseq_feature_ordering-0.1.6-py3-none-any.whl |
Total release size: 11.9 kB
Release files / tabseq_feature_ordering-0.1.6.tar.gz
| Download URL | tabseq_feature_ordering-0.1.6.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
76a39347f9d01199b4b9976b8b11d2d7fba6b3b5d0810ae1d29187acbe095454
|
|
BLAKE2b-256 checksum How to use checksums |
27cd69c15ea5ea2200b6d6aeb555ae62365f6d06f8dc9456e22310965d7d35ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Release files / tabseq_feature_ordering-0.1.6-py3-none-any.whl
| Download URL | tabseq_feature_ordering-0.1.6-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a1093b9ba692b4453ed9a51b1c40918eb18ab5279a05e57972a561888e787a94
|
|
BLAKE2b-256 checksum How to use checksums |
aeb3ab809d60c32160c3a17913907e475d76212970cc8d7f9f8e045fd8aa8819
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Security for tabseq-feature-ordering 0.1.6
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.