aedupuga/lego-sizes
Viewer β’ Updated β’ 330 β’ 6 β’ 1
This model classifies LEGO pieces into three types β Standard, Flat, and Sloped β using their geometric dimensions (Length, Height, Width, Studs).
It was trained using AutoGluon Tabular AutoML, which automatically searched over classical ML models (LightGBM, XGBoost, CatBoost, Random Forest, k-NN, Neural Network) and selected the best-performing one.
Users should treat results as proof-of-concept and not deploy in production.
from autogluon.tabular import TabularPredictor
import pandas as pd
# Load trained predictor
predictor = TabularPredictor.load("autogluon_model/")
# Run inference
test_data = pd.DataFrame([{"Length": 4, "Height": 1.2, "Width": 2, "Studs": 4}])
print(predictor.predict(test_data))