Yukin3 commited on
Commit
7187970
·
verified ·
1 Parent(s): 37aad42

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +55 -3
README.md CHANGED
@@ -1,3 +1,55 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ ---
4
+ # TPnet-small
5
+
6
+ TPnet-small is a lightweight deep neural network (DNN) designed to predict traffic congestion using tabular smart mobility features. It serves as a compact yet powerful alternative to tree-based models.
7
+
8
+ ## Model Details
9
+
10
+ - **Model type**: Feedforward Deep Neural Network (3 hidden layers)
11
+ - **Architecture**: [128, 64, 32] with ReLU activations and Dropout
12
+ - **Output**: 3-class Softmax output (`High`, `Medium`, `Low`)
13
+ - **Trained on**: Smart Mobility Traffic Dataset from Kaggle
14
+
15
+ ## Training Details
16
+
17
+ - Optimizer: Adam
18
+ - Loss: Sparse Categorical Crossentropy
19
+ - Epochs: 50
20
+ - Batch size: 32
21
+ - Training time: ~6 seconds on CPU
22
+ - Train Accuracy: 99.1%
23
+ - Val Accuracy: 94.6%
24
+
25
+ ## Evaluation
26
+
27
+ | Metric | Value |
28
+ |----------|-------|
29
+ | Accuracy | 94.5% |
30
+ | F1 Score | 0.944 |
31
+ | Parameters | 13,123 |
32
+ | Model Size | ~156 KB (.h5 format) |
33
+
34
+ Includes training trajectory and confusion matrix plots.
35
+
36
+ ## How to Use
37
+
38
+ ```python
39
+ from tensorflow.keras.models import load_model
40
+
41
+ model = load_model("traffic_predictor_dnn.h5")
42
+ y_pred = model.predict(X_test) # X_test must be scaled [n_samples, 20]
43
+ ```
44
+
45
+ ## Limitations
46
+
47
+ - Performance limited by small dataset size and feature coverage
48
+
49
+ - Currently optimized for CPU inference, not edge deployment
50
+
51
+
52
+ ## Authors
53
+
54
+ - Created by [@Yukin3](https://github.com/Yukin3)
55
+