karthik-2905 commited on
Commit
7ac8046
·
verified ·
1 Parent(s): 147fe9a

Upload folder using huggingface_hub

Browse files
Files changed (36) hide show
  1. .gitattributes +3 -0
  2. .gitignore +2 -0
  3. anomaly_detection_results/.ipynb_checkpoints/autoencoder_config-checkpoint.json +9 -0
  4. anomaly_detection_results/autoencoder_config.json +9 -0
  5. anomaly_detection_results/autoencoder_model.pth +3 -0
  6. anomaly_detection_results/autoencoder_predictions.npy +3 -0
  7. anomaly_detection_results/autoencoder_results.json +17 -0
  8. anomaly_detection_results/autoencoder_scaler.pkl +3 -0
  9. anomaly_detection_results/autoencoder_scores.npy +3 -0
  10. anomaly_detection_results/autoencoder_training.json +257 -0
  11. anomaly_detection_results/data_split_info.json +9 -0
  12. anomaly_detection_results/data_visualization.png +3 -0
  13. anomaly_detection_results/dataset_X.npy +3 -0
  14. anomaly_detection_results/dataset_info.json +17 -0
  15. anomaly_detection_results/dataset_y.npy +3 -0
  16. anomaly_detection_results/final_summary.json +181 -0
  17. anomaly_detection_results/isolation_forest_model.pkl +3 -0
  18. anomaly_detection_results/isolation_forest_predictions.npy +3 -0
  19. anomaly_detection_results/isolation_forest_results.json +9 -0
  20. anomaly_detection_results/isolation_forest_scores.npy +3 -0
  21. anomaly_detection_results/lof_predictions.npy +3 -0
  22. anomaly_detection_results/lof_results.json +9 -0
  23. anomaly_detection_results/lof_scores.npy +3 -0
  24. anomaly_detection_results/methods_comparison.png +3 -0
  25. anomaly_detection_results/one_class_svm_model.pkl +3 -0
  26. anomaly_detection_results/one_class_svm_predictions.npy +3 -0
  27. anomaly_detection_results/one_class_svm_results.json +10 -0
  28. anomaly_detection_results/one_class_svm_scores.npy +3 -0
  29. anomaly_detection_results/project_structure.json +65 -0
  30. anomaly_detection_results/statistical_predictions.npy +3 -0
  31. anomaly_detection_results/statistical_results.json +8 -0
  32. anomaly_detection_results/statistical_scaler.pkl +3 -0
  33. anomaly_detection_results/statistical_scores.npy +3 -0
  34. anomaly_detection_results/svm_scaler.pkl +3 -0
  35. anomaly_detection_results/training_progress.png +3 -0
  36. implementation.ipynb +0 -0
.gitattributes CHANGED
@@ -33,3 +33,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ anomaly_detection_results/data_visualization.png filter=lfs diff=lfs merge=lfs -text
37
+ anomaly_detection_results/methods_comparison.png filter=lfs diff=lfs merge=lfs -text
38
+ anomaly_detection_results/training_progress.png filter=lfs diff=lfs merge=lfs -text
.gitignore ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ # Jupyter Notebook Checkpoints
2
+ .ipynb_checkpoints/
anomaly_detection_results/.ipynb_checkpoints/autoencoder_config-checkpoint.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "input_dim": 2,
3
+ "hidden_dim": 8,
4
+ "learning_rate": 0.0001,
5
+ "device": "mps",
6
+ "architecture": "Simple Autoencoder",
7
+ "optimizer": "Adam",
8
+ "loss_function": "MSE"
9
+ }
anomaly_detection_results/autoencoder_config.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "input_dim": 2,
3
+ "hidden_dim": 8,
4
+ "learning_rate": 0.0001,
5
+ "device": "mps",
6
+ "architecture": "Simple Autoencoder",
7
+ "optimizer": "Adam",
8
+ "loss_function": "MSE"
9
+ }
anomaly_detection_results/autoencoder_model.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c36c486f52e49166a90b19bbb4850b751908d59f5990d903d11032561045ff02
3
+ size 15359
anomaly_detection_results/autoencoder_predictions.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e97d34430e1acce73dd29714d0fb6d08793ce12b95bdb0c160ca20501bb0d1af
3
+ size 2528
anomaly_detection_results/autoencoder_results.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "method": "Autoencoder",
3
+ "threshold_percentile": 95,
4
+ "threshold_value": 2.3291244506835938,
5
+ "auc_score": 0.9995061728395062,
6
+ "anomalies_detected": 15,
7
+ "test_samples": 300,
8
+ "config": {
9
+ "input_dim": 2,
10
+ "hidden_dim": 8,
11
+ "learning_rate": 0.0001,
12
+ "device": "mps",
13
+ "architecture": "Simple Autoencoder",
14
+ "optimizer": "Adam",
15
+ "loss_function": "MSE"
16
+ }
17
+ }
anomaly_detection_results/autoencoder_scaler.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a349918b7ee32690f43397f112f6df9dced25f9b8ba8624812c8cca53348421f
3
+ size 663
anomaly_detection_results/autoencoder_scores.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:49972cea738e409d80d9e12ebca0c0bea0f7470428a192297d1dd3236d3a6899
3
+ size 1328
anomaly_detection_results/autoencoder_training.json ADDED
@@ -0,0 +1,257 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epochs": 50,
3
+ "batch_size": 32,
4
+ "final_loss": 0.46313725682822143,
5
+ "training_history": [
6
+ {
7
+ "epoch": 0,
8
+ "loss": 1.1097910648042506,
9
+ "timestamp": "2025-07-15T17:11:05.731055"
10
+ },
11
+ {
12
+ "epoch": 1,
13
+ "loss": 1.0994476513429121,
14
+ "timestamp": "2025-07-15T17:11:05.775997"
15
+ },
16
+ {
17
+ "epoch": 2,
18
+ "loss": 1.086571755734357,
19
+ "timestamp": "2025-07-15T17:11:05.820758"
20
+ },
21
+ {
22
+ "epoch": 3,
23
+ "loss": 1.0702117369933561,
24
+ "timestamp": "2025-07-15T17:11:05.865943"
25
+ },
26
+ {
27
+ "epoch": 4,
28
+ "loss": 1.054550284689123,
29
+ "timestamp": "2025-07-15T17:11:05.909583"
30
+ },
31
+ {
32
+ "epoch": 5,
33
+ "loss": 1.043715783140876,
34
+ "timestamp": "2025-07-15T17:11:05.952754"
35
+ },
36
+ {
37
+ "epoch": 6,
38
+ "loss": 1.0321871448646893,
39
+ "timestamp": "2025-07-15T17:11:05.995843"
40
+ },
41
+ {
42
+ "epoch": 7,
43
+ "loss": 1.0173050652850757,
44
+ "timestamp": "2025-07-15T17:11:06.050334"
45
+ },
46
+ {
47
+ "epoch": 8,
48
+ "loss": 1.008200845935128,
49
+ "timestamp": "2025-07-15T17:11:06.104677"
50
+ },
51
+ {
52
+ "epoch": 9,
53
+ "loss": 0.9930228631604802,
54
+ "timestamp": "2025-07-15T17:11:06.156788"
55
+ },
56
+ {
57
+ "epoch": 10,
58
+ "loss": 0.9847063205458901,
59
+ "timestamp": "2025-07-15T17:11:06.208166"
60
+ },
61
+ {
62
+ "epoch": 11,
63
+ "loss": 0.9781877506862987,
64
+ "timestamp": "2025-07-15T17:11:06.256385"
65
+ },
66
+ {
67
+ "epoch": 12,
68
+ "loss": 0.9639836712317034,
69
+ "timestamp": "2025-07-15T17:11:06.301864"
70
+ },
71
+ {
72
+ "epoch": 13,
73
+ "loss": 0.9493654451586984,
74
+ "timestamp": "2025-07-15T17:11:06.346897"
75
+ },
76
+ {
77
+ "epoch": 14,
78
+ "loss": 0.9444698596542532,
79
+ "timestamp": "2025-07-15T17:11:06.392098"
80
+ },
81
+ {
82
+ "epoch": 15,
83
+ "loss": 0.9295310296795585,
84
+ "timestamp": "2025-07-15T17:11:06.436882"
85
+ },
86
+ {
87
+ "epoch": 16,
88
+ "loss": 0.9196815273978494,
89
+ "timestamp": "2025-07-15T17:11:06.482362"
90
+ },
91
+ {
92
+ "epoch": 17,
93
+ "loss": 0.9088561087846756,
94
+ "timestamp": "2025-07-15T17:11:06.527949"
95
+ },
96
+ {
97
+ "epoch": 18,
98
+ "loss": 0.8978394242850217,
99
+ "timestamp": "2025-07-15T17:11:06.573292"
100
+ },
101
+ {
102
+ "epoch": 19,
103
+ "loss": 0.8830725875767794,
104
+ "timestamp": "2025-07-15T17:11:06.618028"
105
+ },
106
+ {
107
+ "epoch": 20,
108
+ "loss": 0.8766727284951643,
109
+ "timestamp": "2025-07-15T17:11:06.663080"
110
+ },
111
+ {
112
+ "epoch": 21,
113
+ "loss": 0.8650026768445969,
114
+ "timestamp": "2025-07-15T17:11:06.708977"
115
+ },
116
+ {
117
+ "epoch": 22,
118
+ "loss": 0.8525960662148215,
119
+ "timestamp": "2025-07-15T17:11:06.754103"
120
+ },
121
+ {
122
+ "epoch": 23,
123
+ "loss": 0.8385005037892949,
124
+ "timestamp": "2025-07-15T17:11:06.799173"
125
+ },
126
+ {
127
+ "epoch": 24,
128
+ "loss": 0.8299174945462834,
129
+ "timestamp": "2025-07-15T17:11:06.845865"
130
+ },
131
+ {
132
+ "epoch": 25,
133
+ "loss": 0.8154754692857916,
134
+ "timestamp": "2025-07-15T17:11:06.890259"
135
+ },
136
+ {
137
+ "epoch": 26,
138
+ "loss": 0.806071316654032,
139
+ "timestamp": "2025-07-15T17:11:06.935339"
140
+ },
141
+ {
142
+ "epoch": 27,
143
+ "loss": 0.7938812402161685,
144
+ "timestamp": "2025-07-15T17:11:06.987159"
145
+ },
146
+ {
147
+ "epoch": 28,
148
+ "loss": 0.7823013216257095,
149
+ "timestamp": "2025-07-15T17:11:07.036103"
150
+ },
151
+ {
152
+ "epoch": 29,
153
+ "loss": 0.7677893597971309,
154
+ "timestamp": "2025-07-15T17:11:07.081986"
155
+ },
156
+ {
157
+ "epoch": 30,
158
+ "loss": 0.7574309097094969,
159
+ "timestamp": "2025-07-15T17:11:07.130574"
160
+ },
161
+ {
162
+ "epoch": 31,
163
+ "loss": 0.7462988102977927,
164
+ "timestamp": "2025-07-15T17:11:07.185205"
165
+ },
166
+ {
167
+ "epoch": 32,
168
+ "loss": 0.729872228069739,
169
+ "timestamp": "2025-07-15T17:11:07.239250"
170
+ },
171
+ {
172
+ "epoch": 33,
173
+ "loss": 0.7167120887474581,
174
+ "timestamp": "2025-07-15T17:11:07.291255"
175
+ },
176
+ {
177
+ "epoch": 34,
178
+ "loss": 0.7000210786407645,
179
+ "timestamp": "2025-07-15T17:11:07.336679"
180
+ },
181
+ {
182
+ "epoch": 35,
183
+ "loss": 0.684795309196819,
184
+ "timestamp": "2025-07-15T17:11:07.381283"
185
+ },
186
+ {
187
+ "epoch": 36,
188
+ "loss": 0.667480234395374,
189
+ "timestamp": "2025-07-15T17:11:07.425694"
190
+ },
191
+ {
192
+ "epoch": 37,
193
+ "loss": 0.6562202179973776,
194
+ "timestamp": "2025-07-15T17:11:07.470183"
195
+ },
196
+ {
197
+ "epoch": 38,
198
+ "loss": 0.6361582834612239,
199
+ "timestamp": "2025-07-15T17:11:07.514907"
200
+ },
201
+ {
202
+ "epoch": 39,
203
+ "loss": 0.6216159259731119,
204
+ "timestamp": "2025-07-15T17:11:07.559679"
205
+ },
206
+ {
207
+ "epoch": 40,
208
+ "loss": 0.6032482846216722,
209
+ "timestamp": "2025-07-15T17:11:07.604414"
210
+ },
211
+ {
212
+ "epoch": 41,
213
+ "loss": 0.5882792540571906,
214
+ "timestamp": "2025-07-15T17:11:07.649738"
215
+ },
216
+ {
217
+ "epoch": 42,
218
+ "loss": 0.5734457075595856,
219
+ "timestamp": "2025-07-15T17:11:07.694155"
220
+ },
221
+ {
222
+ "epoch": 43,
223
+ "loss": 0.5560962740670551,
224
+ "timestamp": "2025-07-15T17:11:07.738280"
225
+ },
226
+ {
227
+ "epoch": 44,
228
+ "loss": 0.5397378219799562,
229
+ "timestamp": "2025-07-15T17:11:07.782312"
230
+ },
231
+ {
232
+ "epoch": 45,
233
+ "loss": 0.5248382308266379,
234
+ "timestamp": "2025-07-15T17:11:07.826339"
235
+ },
236
+ {
237
+ "epoch": 46,
238
+ "loss": 0.50970935550603,
239
+ "timestamp": "2025-07-15T17:11:07.870924"
240
+ },
241
+ {
242
+ "epoch": 47,
243
+ "loss": 0.49485786936499854,
244
+ "timestamp": "2025-07-15T17:11:07.917356"
245
+ },
246
+ {
247
+ "epoch": 48,
248
+ "loss": 0.47917049107226456,
249
+ "timestamp": "2025-07-15T17:11:07.961856"
250
+ },
251
+ {
252
+ "epoch": 49,
253
+ "loss": 0.46313725682822143,
254
+ "timestamp": "2025-07-15T17:11:08.008716"
255
+ }
256
+ ]
257
+ }
anomaly_detection_results/data_split_info.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "train_samples": 700,
3
+ "test_samples": 300,
4
+ "train_anomalies": 70,
5
+ "test_anomalies": 30,
6
+ "test_size": 0.3,
7
+ "random_state": 42,
8
+ "stratified": true
9
+ }
anomaly_detection_results/data_visualization.png ADDED

Git LFS Details

  • SHA256: 3ad5e171836959ea08ae8eb19ee9cd49db81789dc5729de07225610db9f0b652
  • Pointer size: 131 Bytes
  • Size of remote file: 356 kB
anomaly_detection_results/dataset_X.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:027062ee8ce25eae3b01925926ed0b30912396d415eff31a7cca9d7172721153
3
+ size 16128
anomaly_detection_results/dataset_info.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "total_samples": 1000,
3
+ "normal_samples": 900,
4
+ "anomaly_samples": 100,
5
+ "contamination_rate": 0.1,
6
+ "feature_ranges": {
7
+ "feature_1": [
8
+ -3.2261764510638944,
9
+ 5.8698331124612775
10
+ ],
11
+ "feature_2": [
12
+ -2.938185716122409,
13
+ 6.218723265809128
14
+ ]
15
+ },
16
+ "creation_timestamp": "2025-07-15T17:11:05.449398"
17
+ }
anomaly_detection_results/dataset_y.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2061eb3423bc01e6b4d17a66e4123e38789d2828b756c38bc998c06a648a1584
3
+ size 8128
anomaly_detection_results/final_summary.json ADDED
@@ -0,0 +1,181 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "experiment_timestamp": "2025-07-15T17:11:08.699018",
3
+ "dataset_info": {
4
+ "total_test_samples": 300,
5
+ "true_anomalies": 30
6
+ },
7
+ "method_summary": {
8
+ "Statistical": {
9
+ "auc_score": 1.0,
10
+ "anomalies_detected": 26,
11
+ "precision": 1.0,
12
+ "recall": 0.8666666666666667,
13
+ "f1_score": 0.9285714285714286
14
+ },
15
+ "Isolation Forest": {
16
+ "auc_score": 0.9834567901234568,
17
+ "anomalies_detected": 31,
18
+ "precision": 0.6774193548387096,
19
+ "recall": 0.7,
20
+ "f1_score": 0.6885245901639344
21
+ },
22
+ "One-Class SVM": {
23
+ "auc_score": 0.9134567901234568,
24
+ "anomalies_detected": 32,
25
+ "precision": 0.5,
26
+ "recall": 0.5333333333333333,
27
+ "f1_score": 0.5161290322580645
28
+ },
29
+ "Local Outlier Factor": {
30
+ "auc_score": 0.6941975308641974,
31
+ "anomalies_detected": 31,
32
+ "precision": 0.45161290322580644,
33
+ "recall": 0.4666666666666667,
34
+ "f1_score": 0.45901639344262296
35
+ },
36
+ "Autoencoder": {
37
+ "auc_score": 0.9995061728395062,
38
+ "anomalies_detected": 15,
39
+ "precision": 1.0,
40
+ "recall": 0.5,
41
+ "f1_score": 0.6666666666666666
42
+ }
43
+ },
44
+ "detailed_reports": {
45
+ "Statistical": {
46
+ "Normal": {
47
+ "precision": 0.9854014598540146,
48
+ "recall": 1.0,
49
+ "f1-score": 0.9926470588235294,
50
+ "support": 270.0
51
+ },
52
+ "Anomaly": {
53
+ "precision": 1.0,
54
+ "recall": 0.8666666666666667,
55
+ "f1-score": 0.9285714285714286,
56
+ "support": 30.0
57
+ },
58
+ "accuracy": 0.9866666666666667,
59
+ "macro avg": {
60
+ "precision": 0.9927007299270073,
61
+ "recall": 0.9333333333333333,
62
+ "f1-score": 0.960609243697479,
63
+ "support": 300.0
64
+ },
65
+ "weighted avg": {
66
+ "precision": 0.9868613138686131,
67
+ "recall": 0.9866666666666667,
68
+ "f1-score": 0.9862394957983192,
69
+ "support": 300.0
70
+ }
71
+ },
72
+ "Isolation Forest": {
73
+ "Normal": {
74
+ "precision": 0.966542750929368,
75
+ "recall": 0.9629629629629629,
76
+ "f1-score": 0.9647495361781077,
77
+ "support": 270.0
78
+ },
79
+ "Anomaly": {
80
+ "precision": 0.6774193548387096,
81
+ "recall": 0.7,
82
+ "f1-score": 0.6885245901639344,
83
+ "support": 30.0
84
+ },
85
+ "accuracy": 0.9366666666666666,
86
+ "macro avg": {
87
+ "precision": 0.8219810528840388,
88
+ "recall": 0.8314814814814815,
89
+ "f1-score": 0.826637063171021,
90
+ "support": 300.0
91
+ },
92
+ "weighted avg": {
93
+ "precision": 0.9376304113203021,
94
+ "recall": 0.9366666666666666,
95
+ "f1-score": 0.9371270415766902,
96
+ "support": 300.0
97
+ }
98
+ },
99
+ "One-Class SVM": {
100
+ "Normal": {
101
+ "precision": 0.9477611940298507,
102
+ "recall": 0.9407407407407408,
103
+ "f1-score": 0.9442379182156134,
104
+ "support": 270.0
105
+ },
106
+ "Anomaly": {
107
+ "precision": 0.5,
108
+ "recall": 0.5333333333333333,
109
+ "f1-score": 0.5161290322580645,
110
+ "support": 30.0
111
+ },
112
+ "accuracy": 0.9,
113
+ "macro avg": {
114
+ "precision": 0.7238805970149254,
115
+ "recall": 0.737037037037037,
116
+ "f1-score": 0.730183475236839,
117
+ "support": 300.0
118
+ },
119
+ "weighted avg": {
120
+ "precision": 0.9029850746268657,
121
+ "recall": 0.9,
122
+ "f1-score": 0.9014270296198585,
123
+ "support": 300.0
124
+ }
125
+ },
126
+ "Local Outlier Factor": {
127
+ "Normal": {
128
+ "precision": 0.9405204460966543,
129
+ "recall": 0.937037037037037,
130
+ "f1-score": 0.9387755102040817,
131
+ "support": 270.0
132
+ },
133
+ "Anomaly": {
134
+ "precision": 0.45161290322580644,
135
+ "recall": 0.4666666666666667,
136
+ "f1-score": 0.45901639344262296,
137
+ "support": 30.0
138
+ },
139
+ "accuracy": 0.89,
140
+ "macro avg": {
141
+ "precision": 0.6960666746612304,
142
+ "recall": 0.7018518518518518,
143
+ "f1-score": 0.6988959518233523,
144
+ "support": 300.0
145
+ },
146
+ "weighted avg": {
147
+ "precision": 0.8916296918095694,
148
+ "recall": 0.89,
149
+ "f1-score": 0.8907995985279358,
150
+ "support": 300.0
151
+ }
152
+ },
153
+ "Autoencoder": {
154
+ "Normal": {
155
+ "precision": 0.9473684210526315,
156
+ "recall": 1.0,
157
+ "f1-score": 0.972972972972973,
158
+ "support": 270.0
159
+ },
160
+ "Anomaly": {
161
+ "precision": 1.0,
162
+ "recall": 0.5,
163
+ "f1-score": 0.6666666666666666,
164
+ "support": 30.0
165
+ },
166
+ "accuracy": 0.95,
167
+ "macro avg": {
168
+ "precision": 0.9736842105263157,
169
+ "recall": 0.75,
170
+ "f1-score": 0.8198198198198199,
171
+ "support": 300.0
172
+ },
173
+ "weighted avg": {
174
+ "precision": 0.9526315789473684,
175
+ "recall": 0.95,
176
+ "f1-score": 0.9423423423423424,
177
+ "support": 300.0
178
+ }
179
+ }
180
+ }
181
+ }
anomaly_detection_results/isolation_forest_model.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:55849a1382aebaa14f0edd0644ba85febaa8d25686fa247e3be3e4b3aa334d21
3
+ size 1313753
anomaly_detection_results/isolation_forest_predictions.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b5a6accc997fb6c2ff393cf10abb0dca1ced08b06e83e3fd0f1a2ddfba21d0b8
3
+ size 2528
anomaly_detection_results/isolation_forest_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "method": "Isolation Forest",
3
+ "n_estimators": 100,
4
+ "contamination": 0.1,
5
+ "auc_score": 0.9834567901234568,
6
+ "anomalies_detected": 31,
7
+ "training_samples": 700,
8
+ "test_samples": 300
9
+ }
anomaly_detection_results/isolation_forest_scores.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e468af482268a4d47f8590ece48d8fe35130a31c716e8ed3134a7a63159499bd
3
+ size 2528
anomaly_detection_results/lof_predictions.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b496d9a06ac3c6b55af441c118eee549c267ac794f4c1089ec5573d8f42ffbad
3
+ size 2528
anomaly_detection_results/lof_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "method": "Local Outlier Factor",
3
+ "n_neighbors": 20,
4
+ "contamination": 0.1,
5
+ "auc_score": 0.6941975308641974,
6
+ "anomalies_detected": 31,
7
+ "training_samples": 700,
8
+ "test_samples": 300
9
+ }
anomaly_detection_results/lof_scores.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:00b5641f9444fb8dd873b5c20f25033ead6d721b54deda122699826c9c0c667b
3
+ size 2528
anomaly_detection_results/methods_comparison.png ADDED

Git LFS Details

  • SHA256: b336808de0da172f6ef00301aa81a6b0dc4c8e8cf0bdbebb053d04daca37c8c1
  • Pointer size: 131 Bytes
  • Size of remote file: 261 kB
anomaly_detection_results/one_class_svm_model.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:36c0c5fcf1e76fdf43195ec38c8f3e2cd8d0aaa3f914b9fe5c73678fb854d6e9
3
+ size 4159
anomaly_detection_results/one_class_svm_predictions.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b2d92c5818338026ad1d713fb6ef728031653485fb1545751ccd685acf97af02
3
+ size 2528
anomaly_detection_results/one_class_svm_results.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "method": "One-Class SVM",
3
+ "nu": 0.1,
4
+ "kernel": "rbf",
5
+ "gamma": "scale",
6
+ "auc_score": 0.9134567901234568,
7
+ "anomalies_detected": 32,
8
+ "training_samples": 700,
9
+ "test_samples": 300
10
+ }
anomaly_detection_results/one_class_svm_scores.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:497b00caee571af9888e5e2aa68025f7731734b7a1bc78a442f7bed6b377c6ff
3
+ size 2528
anomaly_detection_results/project_structure.json ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "project_name": "Anomaly Detection Suite",
3
+ "creation_date": "2025-07-15T17:11:08.700607",
4
+ "total_files": 31,
5
+ "files_created": [
6
+ "autoencoder_config.json",
7
+ "autoencoder_model.pth",
8
+ "autoencoder_predictions.npy",
9
+ "autoencoder_results.json",
10
+ "autoencoder_scaler.pkl",
11
+ "autoencoder_scores.npy",
12
+ "autoencoder_training.json",
13
+ "data_split_info.json",
14
+ "data_visualization.png",
15
+ "dataset_X.npy",
16
+ "dataset_info.json",
17
+ "dataset_y.npy",
18
+ "final_summary.json",
19
+ "isolation_forest_model.pkl",
20
+ "isolation_forest_predictions.npy",
21
+ "isolation_forest_results.json",
22
+ "isolation_forest_scores.npy",
23
+ "lof_predictions.npy",
24
+ "lof_results.json",
25
+ "lof_scores.npy",
26
+ "methods_comparison.png",
27
+ "one_class_svm_model.pkl",
28
+ "one_class_svm_predictions.npy",
29
+ "one_class_svm_results.json",
30
+ "one_class_svm_scores.npy",
31
+ "statistical_predictions.npy",
32
+ "statistical_results.json",
33
+ "statistical_scaler.pkl",
34
+ "statistical_scores.npy",
35
+ "svm_scaler.pkl",
36
+ "training_progress.png"
37
+ ],
38
+ "file_descriptions": {
39
+ "dataset_X.npy": "Feature matrix of the synthetic dataset",
40
+ "dataset_y.npy": "Labels for the synthetic dataset",
41
+ "dataset_info.json": "Dataset metadata and statistics",
42
+ "data_visualization.png": "Visualization of the dataset distribution",
43
+ "statistical_*.npy": "Statistical method predictions and scores",
44
+ "statistical_results.json": "Statistical method results and metadata",
45
+ "isolation_forest_model.pkl": "Trained Isolation Forest model",
46
+ "isolation_forest_*.npy": "Isolation Forest predictions and scores",
47
+ "isolation_forest_results.json": "Isolation Forest results and metadata",
48
+ "one_class_svm_model.pkl": "Trained One-Class SVM model",
49
+ "svm_scaler.pkl": "Scaler used for SVM preprocessing",
50
+ "one_class_svm_*.npy": "SVM predictions and scores",
51
+ "one_class_svm_results.json": "SVM results and metadata",
52
+ "lof_*.npy": "LOF predictions and scores",
53
+ "lof_results.json": "LOF results and metadata",
54
+ "autoencoder_model.pth": "Trained autoencoder model with full state",
55
+ "autoencoder_scaler.pkl": "Scaler used for autoencoder preprocessing",
56
+ "autoencoder_config.json": "Autoencoder architecture configuration",
57
+ "autoencoder_training.json": "Training history and hyperparameters",
58
+ "autoencoder_*.npy": "Autoencoder predictions and scores",
59
+ "autoencoder_results.json": "Autoencoder results and metadata",
60
+ "methods_comparison.png": "Visual comparison of all methods",
61
+ "training_progress.png": "Autoencoder training loss progression",
62
+ "final_summary.json": "Comprehensive results summary",
63
+ "project_structure.json": "This file - project structure information"
64
+ }
65
+ }
anomaly_detection_results/statistical_predictions.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7a90fddc64b3a8d495fe6ee53c6401dacacb7d6fc3f789f21807932a80899f14
3
+ size 2528
anomaly_detection_results/statistical_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "method": "Statistical Z-score",
3
+ "threshold": 2.5,
4
+ "auc_score": 1.0,
5
+ "anomalies_detected": 26,
6
+ "training_samples": 700,
7
+ "test_samples": 300
8
+ }
anomaly_detection_results/statistical_scaler.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a349918b7ee32690f43397f112f6df9dced25f9b8ba8624812c8cca53348421f
3
+ size 663
anomaly_detection_results/statistical_scores.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:59d764d24761ca400bd54963b9dfef3528f9d12118914155b02180ca494d8892
3
+ size 2528
anomaly_detection_results/svm_scaler.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a349918b7ee32690f43397f112f6df9dced25f9b8ba8624812c8cca53348421f
3
+ size 663
anomaly_detection_results/training_progress.png ADDED

Git LFS Details

  • SHA256: dbd973dbd1868b2daceecd2d70f5bcdaaf95ffe8b935c467b14adc26b3042b4f
  • Pointer size: 131 Bytes
  • Size of remote file: 108 kB
implementation.ipynb ADDED
The diff for this file is too large to render. See raw diff