Deep-learning Toolkit for Tabular datasets
Project description
DeepTables
We Are Hiring!
Dear folks, we are opening several precious positions based in Beijing both for professionals and interns avid in AutoML/NAS, please send your resume/cv to yangjian@zetyun.com. (Application deadline: TBD.)
DeepTables: Deep-learning Toolkit for Tabular data
DeepTables(DT) is a easy-to-use toolkit that enables deep learning to unleash great power on tabular data.
Overview
MLP (also known as Fully-connected neural networks) have been shown inefficient in learning distribution representation. The "add" operations of the perceptron layer have been proven poor performance to exploring multiplicative feature interactions. In most cases, manual feature engineering is necessary and this work requires extensive domain knowledge and very cumbersome. How learning feature interactions efficiently in neural networks becomes the most important problem.
Various models have been proposed to CTR prediction and continue to outperform existing state-of-the-art approaches to the late years. Well-known examples include FM, DeepFM, Wide&Deep, DCN, PNN, etc. These models can also provide good performance on tabular data under reasonable utilization.
DT aims to utilize the latest research findings to provide users with an end-to-end toolkit on tabular data.
DT has been designed with these key goals in mind:
- Easy to use, non-experts can also use.
- Provide good performance out of the box.
- Flexible architecture and easy expansion by user.
Tutorials
Please refer to the official docs at https://deeptables.readthedocs.io/en/latest/.
Installation
pip
is recommended to install DeepTables:
pip install deeptables
Note:
- If you installed TensorFlow before DeepTables, the DeepTables installer will reuse it, otherwise 'tensorflow>=2.0.0,<2.5.0' will be added to the requirements.
- DeepTables was tested with TensorFlow version 2.0 to 2.4, install the tested version please.
GPU Setup (Optional)
To use DeepTables with GPU devices, install tensorflow-gpu
before install DeepTables please.
pip install tensorflow-gpu==2.4.2
pip install deeptables
Verify the installation:
python -c "from deeptables.utils.quicktest import test; test()"
Optional dependencies
Following libraries are not hard dependencies and are not automatically installed when you install DeepTables. To use all functionalities of DT, these optional dependencies must be installed.
pip install shap
Example:
A simple binary classification example
import numpy as np
from deeptables.models import deeptable, deepnets
from deeptables.datasets import dsutils
from sklearn.model_selection import train_test_split
#loading data
df = dsutils.load_bank()
df_train, df_test = train_test_split(df, test_size=0.2, random_state=42)
y = df_train.pop('y')
y_test = df_test.pop('y')
#training
config = deeptable.ModelConfig(nets=deepnets.DeepFM)
dt = deeptable.DeepTable(config=config)
model, history = dt.fit(df_train, y, epochs=10)
#evaluation
result = dt.evaluate(df_test,y_test, batch_size=512, verbose=0)
print(result)
#scoring
preds = dt.predict(df_test)
A solution using DeepTables to win the 1st place in Kaggle Categorical Feature Encoding Challenge II
DataCanvas
DeepTables is an open source project created by DataCanvas.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file deeptables-0.2.3.tar.gz
.
File metadata
- Download URL: deeptables-0.2.3.tar.gz
- Upload date:
- Size: 72.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/50.3.1.post20201107 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec7fb3129b9cb2bca2feafed0bbfcfcdac04a3d01b36c1a5bc01a12db6818ff8 |
|
MD5 | d3fa9566cf1106fb20e634f39c0b65f7 |
|
BLAKE2b-256 | 33980cbfc4e85cb297fa1f779b7ac6f9f799c3803cc9bec09bc27ff49f1c9593 |
File details
Details for the file deeptables-0.2.3-py3-none-any.whl
.
File metadata
- Download URL: deeptables-0.2.3-py3-none-any.whl
- Upload date:
- Size: 843.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/50.3.1.post20201107 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d5201afcb35bfcab251295216b2c59bf7974176dff127bb4e03631699eb724f |
|
MD5 | 369d502059c79ca00c15b43e9bbb4fc2 |
|
BLAKE2b-256 | 24c33e4303066435030a70da755739a613d290a9fe1f673b980373f01b37e3d9 |