scikit-learn/adult-census-income
Viewer • Updated • 32.6k • 16.4k • 8
This model is a Multi-Layer Perceptron (MLP) featuring Dropout layers for improved generalization. It classifies whether an individual's income exceeds $50,000 per year based on census data.
The Dropout-Log model shows a very strong balance between predictive power and stability:
In our experimental series, this model (indicated by the triangle) consistently outperformed the Embedding-based models:
A key advantage of this model is its training behavior. While the Base-Log model shows earlier signs of diverging evaluation loss, the Dropout-Log variant remains more stable:
To run inference, you need the model_architecture.py (containing the IncomeNetMLPDropout class) and the preprocessor.pkl.
import torch
from safetensors.torch import load_model
from model_architecture import IncomeNetMLPDropout
# Instantiate architecture and load weights
model = IncomeNetMLPDropout(input_dim=105)
load_model(model, "model.safetensors")
model.eval()