Skip to content

huangyz0918/tabnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TabNet

Yet another implementation of paper:

Sercan Ö. Arik, Tomas Pfister: TabNet: Attentive Interpretable Tabular Learning. AAAI 2021: 6679-6687

Quick start

Setup environment

pip install -r requirements.txt
export PYTHONPATH="${PWD}"

Run experiment on the Forest Cover Type dataset.

python3 main.py

Example Results

Here is an example output from the console by conducting the self-superised learning for TabNet on Forest Cover Type dataset.

Starting training...
Training model with predictive objective
Predictive - Epoch: 1, Step: 29, Total train loss: 1.1801, Validation criterion loss: 0.9035, Validation accuracy: 0.6263
Predictive - Epoch: 2, Step: 58, Total train loss: 0.7854, Validation criterion loss: 0.8017, Validation accuracy: 0.6498
Predictive - Epoch: 3, Step: 87, Total train loss: 0.7387, Validation criterion loss: 0.7674, Validation accuracy: 0.6743
Predictive - Epoch: 4, Step: 116, Total train loss: 0.7253, Validation criterion loss: 0.747, Validation accuracy: 0.6913
Predictive - Epoch: 5, Step: 145, Total train loss: 0.711, Validation criterion loss: 0.7692, Validation accuracy: 0.6835
Saving model to: runs/forest_cover/1624193671_forest_cover_predictive_model_final.pt
Device configuration: Using cuda:0 for training/inference
TabNet accuracy: 0.683

Reference

Liscense

MIT

About

yet another implementation of tabnet

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages