PyTorch implementation of TabNet (Google's attention-based tabular network). Current version 4.1.0, with semi-annual releases. Supports classification, regression, and unsupervised pre-training.
pip install pytorch-tabnetVerified import paths — ran on the pinned version, not inferred.
Minimal example of fitting a TabNetClassifier on random data.
Retrain any models that used unsupervised pretraining after upgrading to v4.x.
Explicitly set the `eval_metric` parameter to 'mse' to retain old behavior.
Ensure `len(cat_idxs) == len(cat_dims)` and that each index corresponds to a valid column.
Use clf.save_model('model.pt') and clf.load_model('model.pt').No dependency data recorded yet.