Downloads · 30 days
0
hardik-0212/my_model
my_model is a machine learning model from hardik-0212. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This project compares a variety of supervised machine learning algorithms to evaluate their performance on structured classification tasks. Each model was analyzed based on speed, accuracy, and practical usability.
Downloads · 30 days
0
Access
Public
Updated Jun 6, 2025
Repo size
1.1 MB
Likes
0
Public
Click a slice to open those files.
.pkl1.1 MB · 52%
From the Hugging Face model README
This project compares a variety of supervised machine learning algorithms to evaluate their performance on structured classification tasks. Each model was analyzed based on speed, accuracy, and practical usability.
| No. | Model Name | Type |
|---|---|---|
| 1 | Logistic Regression | Linear Model |
| 2 | Random Forest | Ensemble (Bagging) |
| 3 | K-Nearest Neighbors | Instance-Based (Lazy) |
| 4 | XGBoost | Gradient Boosting |
| 5 | Support Vector Machine | Margin-based Classifier |
| 6 | ANN (MLPClassifier) | Neural Network |
| 7 | LightGBM | Gradient Boosting (Histogram) |
| 8 | Naive Bayes | Probabilistic |
| Model | Accuracy (%) | Speed |
|---|---|---|
| Logistic Regression | ~84% | 🔥 Very Fast |
| Random Forest | ~95% | ⚡ Medium |
| KNN | ~84% | 🐢 Slow |
| XGBoost | ~90% | ⚡ Medium |
| SVM | ~85% | ⚡ Medium |
| ANN (MLP) | ~51% | ⚡ Medium |
| LightGBM | ~90% | 🚀 Fastest |
| Naive Bayes | ~80% | 🚀 Extremely Fast |
| Best For | Model |
|---|---|
| Highest Accuracy | Random Forest |
| Fastest Training | Naive Bayes |
| Best for Large Data | LightGBM |
| Best Baseline | Logistic Regression |
| Best for Clean Data | SVM |
| Best for Speed + Accuracy | XGBoost |
model.pkl files for each classifiercart.docx with graphs, charts, and performance analysisREADME.md as the model cardfrom joblib import load
model = load("XGBoost_model.pkl")
prediction = model.predict(["Sample input text"])
print(prediction)