Tabular Classification
Keras
Scikit-learn
English
tensorflow
random-forest
cnn
clustering
nlp
computer-vision
recommendation-system
time-series
streamlit
Instructions to use OKTAYBBS/DataScientst-models with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use OKTAYBBS/DataScientst-models with Keras:
# Available backend options are: "jax", "torch", "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" import keras model = keras.saving.load_model("hf://OKTAYBBS/DataScientst-models") - Scikit-learn
How to use OKTAYBBS/DataScientst-models with Scikit-learn:
from huggingface_hub import hf_hub_download import joblib model = joblib.load( hf_hub_download("OKTAYBBS/DataScientst-models", "sklearn_model.joblib") ) # only load pickle files from sources you trust # read more about it here https://skops.readthedocs.io/en/stable/persistence.html - Notebooks
- Google Colab
- Kaggle
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,7 +1,6 @@
|
|
| 1 |
---
|
| 2 |
license: mit
|
| 3 |
language:
|
| 4 |
-
- tr
|
| 5 |
- en
|
| 6 |
tags:
|
| 7 |
- sklearn
|
|
@@ -18,104 +17,79 @@ tags:
|
|
| 18 |
pipeline_tag: tabular-classification
|
| 19 |
---
|
| 20 |
|
| 21 |
-
# DataScientst -- 30
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
##
|
| 26 |
-
|
| 27 |
-
### Regresyon (3 model)
|
| 28 |
-
| Model | Dosya | Metrik |
|
| 29 |
-
|-------|-------|--------|
|
| 30 |
-
| Altin Fiyati Tahmini | `gold_model.pkl` | R² = 0.990 |
|
| 31 |
-
| Ogrenci Sinav Puani | `student_model.pkl` | R² = 0.849 |
|
| 32 |
-
| Uber/Taksi Ucret | `uber_model.pkl` | R² = 0.778 |
|
| 33 |
-
|
| 34 |
-
### Siniflandirma (3 model)
|
| 35 |
-
| Model | Dosya | Metrik |
|
| 36 |
-
|-------|-------|--------|
|
| 37 |
-
| Mobil Fiyat Segmenti | `mobile_model.pkl` | Accuracy = 81.2% |
|
| 38 |
-
| Sarap Kalitesi | `wine_model.pkl` | Accuracy = 67.5% |
|
| 39 |
-
| Musteri Terki (Churn) | `churn_model.pkl` | Accuracy = 78.9% |
|
| 40 |
-
|
| 41 |
-
### Kumeleme (3 model)
|
| 42 |
-
| Model | Dosya | Metrik |
|
| 43 |
-
|-------|-------|--------|
|
| 44 |
-
| NBA Oyuncu Gruplama | `nba_model.pkl` + `nba_scaler.pkl` | Silhouette = 0.452 |
|
| 45 |
-
| Kredi Karti Segmentasyon | `cc_model.pkl` + `cc_scaler.pkl` | Silhouette = 0.531 |
|
| 46 |
-
| Spotify Sarki Kumeleme | `spotify_model.pkl` + `spotify_scaler.pkl` | Silhouette = 0.327 |
|
| 47 |
-
|
| 48 |
-
### Bilgisayarli Goru (1 model)
|
| 49 |
-
| Model | Dosya | Metrik |
|
| 50 |
-
|-------|-------|--------|
|
| 51 |
-
| Maske Tespiti | `mask_model.pkl` | Accuracy = 82.5% |
|
| 52 |
-
|
| 53 |
-
### Dogal Dil Isleme (3 model)
|
| 54 |
-
| Model | Dosya | Metrik |
|
| 55 |
-
|-------|-------|--------|
|
| 56 |
-
| SMS Spam Tespiti | `spam_model.pkl` + `spam_vectorizer.pkl` | Accuracy = 98.0% |
|
| 57 |
-
| IMDb Duygu Analizi | `imdb_model.pkl` + `imdb_vectorizer.pkl` | Accuracy = 87.3% |
|
| 58 |
-
| Sahte Haber Tespiti | `news_model.pkl` + `news_vectorizer.pkl` | Accuracy = 97.6% |
|
| 59 |
-
|
| 60 |
-
### Oneri Sistemleri (3 set)
|
| 61 |
-
| Model | Dosyalar |
|
| 62 |
-
|-------|----------|
|
| 63 |
-
| Film Onerisi | `movie_data.pkl` + `movie_similarity.pkl` |
|
| 64 |
-
| Kitap Onerisi | `book_data.pkl` + `book_similarity.pkl` |
|
| 65 |
-
| Sarki Onerisi | `song_data.pkl` + `song_similarity.pkl` |
|
| 66 |
-
|
| 67 |
-
### Zaman Serileri (3 model)
|
| 68 |
-
| Model | Dosya | Metrik |
|
| 69 |
-
|-------|-------|--------|
|
| 70 |
-
| Hisse Senedi (AAPL) | `stock_model.pkl` | R² = 0.975 |
|
| 71 |
-
| Hava Durumu | `weather_model.pkl` | R² = 0.912 |
|
| 72 |
-
| Magaza Satisi | `walmart_model.pkl` | R² = 0.767 |
|
| 73 |
-
|
| 74 |
-
### Derin Ogrenme (2 model)
|
| 75 |
-
| Model | Dosya | Metrik |
|
| 76 |
-
|-------|-------|--------|
|
| 77 |
-
| Zaturre Teshisi (CNN) | `pneumonia_model.keras` | Val Acc = 92.5% |
|
| 78 |
-
| Yuz Duygu Tanima (CNN) | `fer_model.keras` | Val Acc = 65.4% |
|
| 79 |
-
|
| 80 |
-
### Diger
|
| 81 |
-
| Model | Dosya |
|
| 82 |
-
|-------|-------|
|
| 83 |
-
| Metin Uretim (Markov) | `text_robot_model.pkl` |
|
| 84 |
-
|
| 85 |
-
## Repo Yapisi
|
| 86 |
|
| 87 |
```
|
| 88 |
-
regression/ --
|
| 89 |
-
classification/ --
|
| 90 |
-
clustering/ -- NBA,
|
| 91 |
-
computer_vision/ --
|
| 92 |
-
nlp/ -- Spam, IMDb,
|
| 93 |
-
recommendation/ --
|
| 94 |
-
time_series/ --
|
| 95 |
-
data_viz/ --
|
| 96 |
-
deep_learning/ -- CNN
|
| 97 |
-
metrics/ --
|
| 98 |
```
|
| 99 |
|
| 100 |
-
##
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 101 |
|
| 102 |
```python
|
| 103 |
from huggingface_hub import hf_hub_download
|
| 104 |
import joblib
|
| 105 |
|
| 106 |
-
#
|
| 107 |
model_path = hf_hub_download(
|
| 108 |
repo_id="OKTAYBBS/DataScientst-models",
|
| 109 |
filename="regression/gold_model.pkl"
|
| 110 |
)
|
| 111 |
|
| 112 |
-
# Yukle ve kullan
|
| 113 |
model = joblib.load(model_path)
|
| 114 |
prediction = model.predict([[1500, 70, 20, 1.1]])
|
| 115 |
```
|
| 116 |
|
| 117 |
```python
|
| 118 |
-
# Keras
|
| 119 |
import tensorflow as tf
|
| 120 |
|
| 121 |
model_path = hf_hub_download(
|
|
@@ -125,14 +99,8 @@ model_path = hf_hub_download(
|
|
| 125 |
model = tf.keras.models.load_model(model_path)
|
| 126 |
```
|
| 127 |
|
| 128 |
-
##
|
| 129 |
-
|
| 130 |
-
- **ML Framework:** scikit-learn 1.6.1
|
| 131 |
-
- **DL Framework:** TensorFlow / Keras
|
| 132 |
-
- **Veri Kaynaklari:** Kaggle Hub API
|
| 133 |
-
- **Arayuz:** Streamlit
|
| 134 |
-
|
| 135 |
-
## Linkler
|
| 136 |
|
| 137 |
-
- **
|
| 138 |
-
- **
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: mit
|
| 3 |
language:
|
|
|
|
| 4 |
- en
|
| 5 |
tags:
|
| 6 |
- sklearn
|
|
|
|
| 17 |
pipeline_tag: tabular-classification
|
| 18 |
---
|
| 19 |
|
| 20 |
+
# DataScientst -- 30 Projects, 34 Trained Models
|
| 21 |
+
|
| 22 |
+
Trained models from a comprehensive ML/AI portfolio spanning 10 categories. All models were trained on real Kaggle datasets.
|
| 23 |
+
|
| 24 |
+
## Repository Structure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
|
| 26 |
```
|
| 27 |
+
regression/ -- Gold, Student, Uber prediction models
|
| 28 |
+
classification/ -- Mobile, Wine, Churn classification models
|
| 29 |
+
clustering/ -- NBA, Credit Card, Spotify clustering models + scalers
|
| 30 |
+
computer_vision/ -- Face mask detection model
|
| 31 |
+
nlp/ -- Spam, IMDb, Fake News models + TF-IDF vectorizers
|
| 32 |
+
recommendation/ -- Movie, Book, Music recommendation data + similarity matrices
|
| 33 |
+
time_series/ -- Stock, Weather, Store prediction models
|
| 34 |
+
data_viz/ -- Visualization CSV datasets
|
| 35 |
+
deep_learning/ -- CNN models (Keras) + Markov text generator
|
| 36 |
+
metrics/ -- Performance metrics for all models (JSON, CSV, PNG)
|
| 37 |
```
|
| 38 |
|
| 39 |
+
## Models & Metrics
|
| 40 |
+
|
| 41 |
+
### Regression
|
| 42 |
+
| Model | File | Metric |
|
| 43 |
+
|-------|------|--------|
|
| 44 |
+
| Gold Price Prediction | `regression/gold_model.pkl` | R² = 0.990 |
|
| 45 |
+
| Student Exam Score | `regression/student_model.pkl` | R² = 0.849 |
|
| 46 |
+
| Uber/Taxi Fare | `regression/uber_model.pkl` | R² = 0.778 |
|
| 47 |
+
|
| 48 |
+
### Classification
|
| 49 |
+
| Model | File | Metric |
|
| 50 |
+
|-------|------|--------|
|
| 51 |
+
| Mobile Price Segment | `classification/mobile_model.pkl` | Accuracy = 81.2% |
|
| 52 |
+
| Wine Quality | `classification/wine_model.pkl` | Accuracy = 67.5% |
|
| 53 |
+
| Customer Churn | `classification/churn_model.pkl` | Accuracy = 78.9% |
|
| 54 |
+
|
| 55 |
+
### Clustering
|
| 56 |
+
| Model | File | Metric |
|
| 57 |
+
|-------|------|--------|
|
| 58 |
+
| NBA Player Clustering | `clustering/nba_model.pkl` | Silhouette = 0.452 |
|
| 59 |
+
| Credit Card Segmentation | `clustering/cc_model.pkl` | Silhouette = 0.531 |
|
| 60 |
+
| Spotify Song Clustering | `clustering/spotify_model.pkl` | Silhouette = 0.327 |
|
| 61 |
+
|
| 62 |
+
### NLP
|
| 63 |
+
| Model | File | Metric |
|
| 64 |
+
|-------|------|--------|
|
| 65 |
+
| SMS Spam Detection | `nlp/spam_model.pkl` | Accuracy = 98.0% |
|
| 66 |
+
| IMDb Sentiment Analysis | `nlp/imdb_model.pkl` | Accuracy = 87.3% |
|
| 67 |
+
| Fake News Detection | `nlp/news_model.pkl` | Accuracy = 97.6% |
|
| 68 |
+
|
| 69 |
+
### Deep Learning
|
| 70 |
+
| Model | File | Metric |
|
| 71 |
+
|-------|------|--------|
|
| 72 |
+
| Pneumonia Detection (CNN) | `deep_learning/pneumonia_model.keras` | Val Acc = 92.5% |
|
| 73 |
+
| Facial Emotion Recognition (CNN) | `deep_learning/fer_model.keras` | Val Acc = 65.4% |
|
| 74 |
+
|
| 75 |
+
## Usage
|
| 76 |
|
| 77 |
```python
|
| 78 |
from huggingface_hub import hf_hub_download
|
| 79 |
import joblib
|
| 80 |
|
| 81 |
+
# Download from a category folder
|
| 82 |
model_path = hf_hub_download(
|
| 83 |
repo_id="OKTAYBBS/DataScientst-models",
|
| 84 |
filename="regression/gold_model.pkl"
|
| 85 |
)
|
| 86 |
|
|
|
|
| 87 |
model = joblib.load(model_path)
|
| 88 |
prediction = model.predict([[1500, 70, 20, 1.1]])
|
| 89 |
```
|
| 90 |
|
| 91 |
```python
|
| 92 |
+
# For Keras models
|
| 93 |
import tensorflow as tf
|
| 94 |
|
| 95 |
model_path = hf_hub_download(
|
|
|
|
| 99 |
model = tf.keras.models.load_model(model_path)
|
| 100 |
```
|
| 101 |
|
| 102 |
+
## Links
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 103 |
|
| 104 |
+
- **Live Demo:** [Streamlit App](https://oktaybobus-datascientst.streamlit.app)
|
| 105 |
+
- **Portfolio:** [HF Space](https://huggingface.co/spaces/OKTAYBBS/DataScientst)
|
| 106 |
+
- **Source Code:** [GitHub](https://github.com/oktaybobus/DataScientst)
|