Downloads · 30 days
9
14% of all-time downloads
fabiszn/incomeNet-13.1k-Embeddings-log
incomeNet-13.1k-Embeddings-log is a tabular classification model from fabiszn. Use it for the tabular classification task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
This model is a Multi-Layer Perceptron (MLP) utilizing Categorical Embeddings to classify income levels (50K or <=50K) from census data. It represents a more complex and robust approach compared to standard one-hot en…
Downloads · 30 days
9
14% of all-time downloads
All-time downloads
63
Public
Parameters
13.1K
56.1 KB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors53.3 KB · 86%
From the Hugging Face model README
This model is a Multi-Layer Perceptron (MLP) utilizing Categorical Embeddings to classify income levels (>50K or <=50K) from census data. It represents a more complex and robust approach compared to standard one-hot encoded models.
While slightly more conservative in its raw scores compared to the base models, the Embedding-log variant offers excellent generalization:
In the scatter plot below, this model is represented by the grey circle/square:

The main strength of the Embedding architecture is its stability. As seen in the evaluation loss curves, the grey line for the 13.1k-Embeddings model remains much flatter and more controlled than the base models, which tend to overfit more aggressively:

This model requires the model_architecture.py file (specifically the IncomeNetEmbeddings class) and the corresponding preprocessor.pkl.
import torch
from safetensors.torch import load_model
from model_architecture import IncomeNetEmbeddings
# Initialize the architecture with 13.1k parameter settings
model = IncomeNetEmbeddings(input_dim=12, hidden_dims=[128, 64])
load_model(model, "model.safetensors")
model.eval()