Skip to main content

No project description provided

Project description

VisTabNet

This package introduces VisTabNet - Vision Transformer-based Tabular Data Classifier.

Usage

from vistabnet import VisTabNetClassifier

X_train, y_train, X_test, y_test = ... # Load your data here. Y should be label encoded, not one-hot encoded.

model = VisTabNetClassifier(input_features=X_train.shape[1], classes=len(np.unique(y_train)), device="cuda:1")
model.fit(X_train, y_train, eval_X=X_test, eval_y=y_test)

y_pred = model.predict(X_test)
acc = balanced_accuracy_score(y_test_, y_pred)
print(f"Balanced accuracy: {acc}")

Installation

pip install vistabnet

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vistabnet-0.1.1.tar.gz (4.9 kB view hashes)

Uploaded Source

Built Distribution

vistabnet-0.1.1-py3-none-any.whl (6.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page