File size: 3,304 Bytes
d1625b6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
{
    "model": "TinyBert-CNN",
    "hyperparameters": {
        "batch_size": 16,
        "epochs": 20,
        "bert_lr": 2e-05,
        "head_lr": 0.001,
        "weight_decay": 0.01,
        "max_length": 128,
        "patience": 5,
        "label_smoothing": 0.1
    },
    "training_duration_seconds": 212.44,
    "epochs_trained": 7,
    "metrics": {
        "accuracy": 0.996,
        "f1_score": 0.996,
        "precision": 0.996,
        "recall": 0.996,
        "test_loss": 0.0691
    },
    "per_class_metrics": {
        "On-Topic Question": {
            "precision": 0.9934,
            "recall": 0.9967,
            "f1_score": 0.995,
            "support": 300
        },
        "Off-Topic Question": {
            "precision": 0.9967,
            "recall": 0.9933,
            "f1_score": 0.995,
            "support": 300
        },
        "Emotional-State": {
            "precision": 0.9934,
            "recall": 1.0,
            "f1_score": 0.9967,
            "support": 300
        },
        "Pace-Related": {
            "precision": 0.9967,
            "recall": 0.9933,
            "f1_score": 0.995,
            "support": 300
        },
        "Repeat/clarification": {
            "precision": 1.0,
            "recall": 0.9967,
            "f1_score": 0.9983,
            "support": 300
        }
    },
    "confusion_matrix": [
        [
            299,
            1,
            0,
            0,
            0
        ],
        [
            1,
            298,
            0,
            1,
            0
        ],
        [
            0,
            0,
            300,
            0,
            0
        ],
        [
            0,
            0,
            2,
            298,
            0
        ],
        [
            1,
            0,
            0,
            0,
            299
        ]
    ],
    "training_history": {
        "train_loss": [
            1.0757,
            0.5031,
            0.4618,
            0.4458,
            0.4364,
            0.4299,
            0.4253
        ],
        "val_loss": [
            0.1182,
            0.055,
            0.0643,
            0.0578,
            0.0628,
            0.0615,
            0.0599
        ],
        "val_acc": [
            0.9853,
            0.996,
            0.9947,
            0.9967,
            0.9953,
            0.9993,
            0.998
        ],
        "val_f1": [
            0.9853,
            0.996,
            0.9947,
            0.9967,
            0.9953,
            0.9993,
            0.998
        ]
    },
    "classification_report": "                      precision    recall  f1-score   support\n\n   On-Topic Question       0.99      1.00      1.00       300\n  Off-Topic Question       1.00      0.99      0.99       300\n     Emotional-State       0.99      1.00      1.00       300\n        Pace-Related       1.00      0.99      0.99       300\nRepeat/clarification       1.00      1.00      1.00       300\n\n            accuracy                           1.00      1500\n           macro avg       1.00      1.00      1.00      1500\n        weighted avg       1.00      1.00      1.00      1500\n"
}