Downloads · 30 days
0
Siddartha96/concrete-strength-rf
concrete-strength-rf is a tabular regression model from Siddartha96. Use it for the tabular regression task on the model card, and read the license before you ship it in a product. It is set up for sklearn. The card lists the license as mit.
GitHub repo: https://github.com/Siddartha-DevOps/ConcreteMix.AI (full source, training pipeline, and reproduce script)
Downloads · 30 days
0
Access
Public
Updated Aug 3, 2026
Repo size
4.5 MB
Likes
0
Public
Click a slice to open those files.
.skops4.5 MB · 100%
From the Hugging Face model README
GitHub repo: https://github.com/Siddartha-DevOps/ConcreteMix.AI (full source, training pipeline, and reproduce script)
A scikit-learn RandomForestRegressor that predicts concrete compressive
strength (MPa) from mix proportions and curing age. Trained on the public
UCI Concrete Compressive Strength dataset.
Status: honest baseline. This is a reproducible model on a well-known public benchmark — not a proprietary or state-of-the-art model. It is useful as a fast strength estimate and as a transparent baseline; it is not a substitute for laboratory testing or code-compliance verification.
train_test_split(test_size=0.2, random_state=42).app/backend/ml_models/data/concrete_uci.csv.| Metric | Value |
|---|---|
| R² | 0.8795 |
| RMSE | 5.573 MPa |
| MAE | 3.906 MPa |
These numbers are independently reproducible — run
python scripts/reproduce_metrics.py in the source repo (retrains and asserts a
match against the committed metrics).
The model consumes an 8-feature vector, standardized by the included
scaler.skops (a StandardScaler fit on the training set):
cement (kg/m³)blast_furnace_slag (kg/m³)fly_ash (kg/m³)water (kg/m³)superplasticizer (kg/m³)coarse_aggregate (kg/m³)fine_aggregate (kg/m³)age (days)Output: predicted compressive strength in MPa.
The model was trained and serialized with scikit-learn 1.9.0 (verified from
the pickle's _sklearn_version). Loading with a different scikit-learn raises
InconsistentVersionWarning and can change predictions — pin these exact
versions for guaranteed-consistent output:
scikit-learn==1.9.0
skops==0.14.0
numpy==2.4.6
pip install -r requirements.txt # bundled in this repo
import numpy as np
from skops.io import load, get_untrusted_types
f = "model.skops"
model = load(f, trusted=get_untrusted_types(file=f))
scaler = load("scaler.skops", trusted=get_untrusted_types(file="scaler.skops"))
# cement, slag, fly_ash, water, SP, coarse, fine, age
x = np.array([[380, 0, 0, 175, 6, 1000, 780, 28]], dtype=float)
strength_mpa = float(model.predict(scaler.transform(x))[0])
print(round(strength_mpa, 1), "MPa")
Yeh, I-C. (1998). Modeling of strength of high-performance concrete using artificial neural networks. Cement and Concrete Research, 28(12), 1797–1808. UCI Machine Learning Repository: Concrete Compressive Strength.