Upload files to "wyniki/eksperyment_glowny/1"

This commit is contained in:
Michał Kasprowicz 2025-08-30 11:57:59 +00:00
parent d1ce280f57
commit 0abdb2eb22
5 changed files with 627 additions and 0 deletions

View File

@ -0,0 +1,105 @@
======= KLASYCZNY SVM (BASELINE) =======
Najlepsze parametry klasycznego SVM: {'C': 1, 'gamma': 'scale', 'kernel': 'linear'}
Dokładność klasycznego SVM: 1.0
Raport klasyfikacji (klasyczny SVM):
precision recall f1-score support
-- 1.00 1.00 1.00 3
Astrocytoma, NOS 1.00 1.00 1.00 21
Astrocytoma, anaplastic 1.00 1.00 1.00 42
Glioblastoma 1.00 1.00 1.00 90
Mixed glioma 1.00 1.00 1.00 39
Oligodendroglioma, NOS 1.00 1.00 1.00 37
Oligodendroglioma, anaplastic 1.00 1.00 1.00 27
accuracy 1.00 259
macro avg 1.00 1.00 1.00 259
weighted avg 1.00 1.00 1.00 259
Szczegółowe metryki dla modelu Klasyczny SVM:
Accuracy: 1.0000
Precision: 1.0000
Recall: 1.0000
F1 Score: 1.0000
ROC AUC: N/A
Macierz pomyłek:
[[ 3 0 0 0 0 0 0]
[ 0 21 0 0 0 0 0]
[ 0 0 42 0 0 0 0]
[ 0 0 0 90 0 0 0]
[ 0 0 0 0 39 0 0]
[ 0 0 0 0 0 37 0]
[ 0 0 0 0 0 0 27]]
Czas trenowania i ewaluacji klasycznego SVM: 18.56 sekund
======= KWANTOWY SVM Z Z FEATURE MAPS =======
Testowanie 2 map cech: ['Z1', 'Z2']
Testowanie Z1 z C=0.1...
Dokładność kwantowego SVM z Z1, C=0.1: 0.3651 (czas: 8904.41 s)
Testowanie Z1 z C=1.0...
Dokładność kwantowego SVM z Z1, C=1.0: 0.3751 (czas: 8928.09 s)
Testowanie Z1 z C=10.0...
Dokładność kwantowego SVM z Z1, C=10.0: 0.3784 (czas: 8991.56 s)
Testowanie Z2 z C=0.1...
Dokładność kwantowego SVM z Z2, C=0.1: 0.3651 (czas: 13132.41 s)
Testowanie Z2 z C=1.0...
Dokładność kwantowego SVM z Z2, C=1.0: 0.3784 (czas: 13144.15 s)
Testowanie Z2 z C=10.0...
Dokładność kwantowego SVM z Z2, C=10.0: 0.3751 (czas: 13101.69 s)
Najlepszy kwantowy SVM: Z1 z C=10.0, dokładność: 0.3784
Raport klasyfikacji (najlepszy kwantowy SVM):
precision recall f1-score support
-- 0.00 0.00 0.00 3
Astrocytoma, NOS 0.00 0.00 0.00 21
Astrocytoma, anaplastic 0.00 0.00 0.00 42
Glioblastoma 0.35 1.00 0.52 90
Mixed glioma 1.00 0.08 0.14 39
Oligodendroglioma, NOS 0.00 0.00 0.00 37
Oligodendroglioma, anaplastic 0.00 0.00 0.00 27
accuracy 0.36 259
macro avg 0.19 0.15 0.09 259
weighted avg 0.27 0.36 0.20 259
Szczegółowe metryki dla modelu Kwantowy SVM Z1:
Accuracy: 0.3591
Precision: 0.2727
Recall: 0.3591
F1 Score: 0.2023
ROC AUC: N/A
Macierz pomyłek:
[[ 0 0 0 3 0 0 0]
[ 0 0 0 21 0 0 0]
[ 0 0 0 42 0 0 0]
[ 0 0 0 90 0 0 0]
[ 0 0 0 36 3 0 0]
[ 0 0 0 37 0 0 0]
[ 0 0 0 27 0 0 0]]
Całkowity czas dla kwantowego SVM: 67872.63 sekund
======= PORÓWNANIE WYNIKÓW =======
Klasyczny SVM: 1.0000
Kwantowy SVM: 0.3591
======= ANALIZA ZNACZENIA CECH =======
Najważniejsze cechy dla klasyfikacji:
Primary_Diagnosis_Glioblastoma: 0.3548
Primary_Diagnosis_Astrocytoma, anaplastic: 0.1780
Primary_Diagnosis_Mixed glioma: 0.1764
Primary_Diagnosis_Oligodendroglioma, NOS: 0.1683
Primary_Diagnosis_Oligodendroglioma, anaplastic: 0.1143
Primary_Diagnosis_Astrocytoma, NOS: 0.0869
Czas analizy znaczenia cech: 238.68 sekund
======= PODSUMOWANIE EKSPERYMENTU Z =======
Data i czas zakończenia: 2025-08-28 03:38:02
Całkowity czas eksperymentu: 1756345082.65 sekund

View File

@ -0,0 +1,105 @@
======= KLASYCZNY SVM (BASELINE) =======
Najlepsze parametry klasycznego SVM: {'C': 0.1, 'gamma': 'scale', 'kernel': 'linear'}
Dokładność klasycznego SVM: 1.0
Raport klasyfikacji (klasyczny SVM):
precision recall f1-score support
-- 1.00 1.00 1.00 8
Astrocytoma, NOS 1.00 1.00 1.00 32
Astrocytoma, anaplastic 1.00 1.00 1.00 79
Glioblastoma 1.00 1.00 1.00 203
Mixed glioma 1.00 1.00 1.00 69
Oligodendroglioma, NOS 1.00 1.00 1.00 76
Oligodendroglioma, anaplastic 1.00 1.00 1.00 51
accuracy 1.00 518
macro avg 1.00 1.00 1.00 518
weighted avg 1.00 1.00 1.00 518
Szczegółowe metryki dla modelu Klasyczny SVM:
Accuracy: 1.0000
Precision: 1.0000
Recall: 1.0000
F1 Score: 1.0000
ROC AUC: N/A
Macierz pomyłek:
[[ 8 0 0 0 0 0 0]
[ 0 32 0 0 0 0 0]
[ 0 0 79 0 0 0 0]
[ 0 0 0 203 0 0 0]
[ 0 0 0 0 69 0 0]
[ 0 0 0 0 0 76 0]
[ 0 0 0 0 0 0 51]]
Czas trenowania i ewaluacji klasycznego SVM: 59.94 sekund
======= KWANTOWY SVM Z Z FEATURE MAPS =======
Testowanie 2 map cech: ['Z1', 'Z2']
Testowanie Z1 z C=0.1...
Dokładność kwantowego SVM z Z1, C=0.1: 0.3873 (czas: 35749.63 s)
Testowanie Z1 z C=1.0...
Dokładność kwantowego SVM z Z1, C=1.0: 0.4329 (czas: 36047.64 s)
Testowanie Z1 z C=10.0...
Dokładność kwantowego SVM z Z1, C=10.0: 0.4486 (czas: 35880.68 s)
Testowanie Z2 z C=0.1...
Dokładność kwantowego SVM z Z2, C=0.1: 0.3873 (czas: 52941.61 s)
Testowanie Z2 z C=1.0...
Dokładność kwantowego SVM z Z2, C=1.0: 0.4859 (czas: 52630.07 s)
Testowanie Z2 z C=10.0...
Dokładność kwantowego SVM z Z2, C=10.0: 0.5149 (czas: 52626.82 s)
Najlepszy kwantowy SVM: Z2 z C=10.0, dokładność: 0.5149
Raport klasyfikacji (najlepszy kwantowy SVM):
precision recall f1-score support
-- 0.00 0.00 0.00 8
Astrocytoma, NOS 1.00 0.16 0.27 32
Astrocytoma, anaplastic 0.74 0.41 0.52 79
Glioblastoma 0.48 0.99 0.64 203
Mixed glioma 0.80 0.29 0.43 69
Oligodendroglioma, NOS 0.74 0.18 0.29 76
Oligodendroglioma, anaplastic 0.75 0.06 0.11 51
accuracy 0.53 518
macro avg 0.64 0.30 0.32 518
weighted avg 0.65 0.53 0.46 518
Szczegółowe metryki dla modelu Kwantowy SVM Z2:
Accuracy: 0.5309
Precision: 0.6504
Recall: 0.5309
F1 Score: 0.4594
ROC AUC: N/A
Macierz pomyłek:
[[ 0 0 0 8 0 0 0]
[ 0 5 3 24 0 0 0]
[ 0 0 32 43 0 4 0]
[ 0 0 0 201 1 1 0]
[ 0 0 0 49 20 0 0]
[ 0 0 8 51 2 14 1]
[ 0 0 0 46 2 0 3]]
Całkowity czas dla kwantowego SVM: 275772.32 sekund
======= PORÓWNANIE WYNIKÓW =======
Klasyczny SVM: 1.0000
Kwantowy SVM: 0.5309
======= ANALIZA ZNACZENIA CECH =======
Najważniejsze cechy dla klasyfikacji:
Primary_Diagnosis_Glioblastoma: 0.3268
Primary_Diagnosis_Astrocytoma, anaplastic: 0.1573
Primary_Diagnosis_Oligodendroglioma, NOS: 0.1448
Primary_Diagnosis_Mixed glioma: 0.1434
Primary_Diagnosis_Oligodendroglioma, anaplastic: 0.1087
Primary_Diagnosis_Astrocytoma, NOS: 0.0651
Czas analizy znaczenia cech: 824.92 sekund
======= PODSUMOWANIE EKSPERYMENTU Z =======
Data i czas zakończenia: 2025-08-24 22:59:18
Całkowity czas eksperymentu: 1756069158.04 sekund

View File

@ -0,0 +1,105 @@
======= KLASYCZNY SVM (BASELINE) =======
Najlepsze parametry klasycznego SVM: {'C': 1, 'gamma': 'scale', 'kernel': 'linear'}
Dokładność klasycznego SVM: 1.0
Raport klasyfikacji (klasyczny SVM):
precision recall f1-score support
-- 1.00 1.00 1.00 7
Astrocytoma, NOS 1.00 1.00 1.00 24
Astrocytoma, anaplastic 1.00 1.00 1.00 46
Glioblastoma 1.00 1.00 1.00 94
Mixed glioma 1.00 1.00 1.00 31
Oligodendroglioma, NOS 1.00 1.00 1.00 33
Oligodendroglioma, anaplastic 1.00 1.00 1.00 24
accuracy 1.00 259
macro avg 1.00 1.00 1.00 259
weighted avg 1.00 1.00 1.00 259
Szczegółowe metryki dla modelu Klasyczny SVM:
Accuracy: 1.0000
Precision: 1.0000
Recall: 1.0000
F1 Score: 1.0000
ROC AUC: N/A
Macierz pomyłek:
[[ 7 0 0 0 0 0 0]
[ 0 24 0 0 0 0 0]
[ 0 0 46 0 0 0 0]
[ 0 0 0 94 0 0 0]
[ 0 0 0 0 31 0 0]
[ 0 0 0 0 0 33 0]
[ 0 0 0 0 0 0 24]]
Czas trenowania i ewaluacji klasycznego SVM: 19.07 sekund
======= KWANTOWY SVM Z Z FEATURE MAPS =======
Testowanie 2 map cech: ['Z1', 'Z2']
Testowanie Z1 z C=0.1...
Dokładność kwantowego SVM z Z1, C=0.1: 0.3518 (czas: 8886.35 s)
Testowanie Z1 z C=1.0...
Dokładność kwantowego SVM z Z1, C=1.0: 0.3518 (czas: 8922.95 s)
Testowanie Z1 z C=10.0...
Dokładność kwantowego SVM z Z1, C=10.0: 0.3518 (czas: 8959.67 s)
Testowanie Z2 z C=0.1...
Dokładność kwantowego SVM z Z2, C=0.1: 0.3518 (czas: 13257.14 s)
Testowanie Z2 z C=1.0...
Dokładność kwantowego SVM z Z2, C=1.0: 0.3518 (czas: 13345.56 s)
Testowanie Z2 z C=10.0...
Dokładność kwantowego SVM z Z2, C=10.0: 0.3551 (czas: 13155.90 s)
Najlepszy kwantowy SVM: Z2 z C=10.0, dokładność: 0.3551
Raport klasyfikacji (najlepszy kwantowy SVM):
precision recall f1-score support
-- 0.00 0.00 0.00 7
Astrocytoma, NOS 0.00 0.00 0.00 24
Astrocytoma, anaplastic 0.00 0.00 0.00 46
Glioblastoma 0.36 0.99 0.53 94
Mixed glioma 0.00 0.00 0.00 31
Oligodendroglioma, NOS 0.00 0.00 0.00 33
Oligodendroglioma, anaplastic 0.00 0.00 0.00 24
accuracy 0.36 259
macro avg 0.05 0.14 0.08 259
weighted avg 0.13 0.36 0.19 259
Szczegółowe metryki dla modelu Kwantowy SVM Z2:
Accuracy: 0.3591
Precision: 0.1313
Recall: 0.3591
F1 Score: 0.1923
ROC AUC: N/A
Macierz pomyłek:
[[ 0 0 0 7 0 0 0]
[ 0 0 0 24 0 0 0]
[ 0 0 0 45 1 0 0]
[ 0 0 0 93 1 0 0]
[ 0 0 0 31 0 0 0]
[ 0 0 0 33 0 0 0]
[ 0 0 0 24 0 0 0]]
Całkowity czas dla kwantowego SVM: 68999.79 sekund
======= PORÓWNANIE WYNIKÓW =======
Klasyczny SVM: 1.0000
Kwantowy SVM: 0.3591
======= ANALIZA ZNACZENIA CECH =======
Najważniejsze cechy dla klasyfikacji:
Primary_Diagnosis_Glioblastoma: 0.3977
Primary_Diagnosis_Astrocytoma, anaplastic: 0.2104
Primary_Diagnosis_Oligodendroglioma, NOS: 0.1544
Primary_Diagnosis_Mixed glioma: 0.1475
Primary_Diagnosis_Oligodendroglioma, anaplastic: 0.1131
Primary_Diagnosis_Astrocytoma, NOS: 0.1035
Czas analizy znaczenia cech: 258.50 sekund
======= PODSUMOWANIE EKSPERYMENTU Z =======
Data i czas zakończenia: 2025-08-28 22:52:40
Całkowity czas eksperymentu: 1756414360.14 sekund

View File

@ -0,0 +1,219 @@
======= KLASYCZNY SVM (BASELINE) =======
Najlepsze parametry klasycznego SVM: {'C': 1, 'gamma': 'scale', 'kernel': 'linear'}
Dokładność klasycznego SVM: 0.9991701244813278
Raport klasyfikacji (klasyczny SVM):
precision recall f1-score support
-- 1.00 1.00 1.00 2
Astrocytoma, NOS 1.00 1.00 1.00 26
Astrocytoma, anaplastic 1.00 1.00 1.00 83
Glioblastoma 1.00 1.00 1.00 222
Mixed glioma 1.00 1.00 1.00 67
Oligodendroglioma, NOS 1.00 1.00 1.00 74
Oligodendroglioma, anaplastic 1.00 1.00 1.00 44
accuracy 1.00 518
macro avg 1.00 1.00 1.00 518
weighted avg 1.00 1.00 1.00 518
Szczegółowe metryki dla modelu Klasyczny SVM:
Accuracy: 1.0000
Precision: 1.0000
Recall: 1.0000
F1 Score: 1.0000
ROC AUC: N/A
Macierz pomyłek:
[[ 2 0 0 0 0 0 0]
[ 0 26 0 0 0 0 0]
[ 0 0 83 0 0 0 0]
[ 0 0 0 222 0 0 0]
[ 0 0 0 0 67 0 0]
[ 0 0 0 0 0 74 0]
[ 0 0 0 0 0 0 44]]
Czas trenowania i ewaluacji klasycznego SVM: 56.22 sekund
======= KWANTOWY SVM Z ZZ FEATURE MAPS =======
Testowanie 2 map cech: ['ZZ1', 'ZZ2']
Pomijanie już przetestowanej kombinacji: ZZ1, C=0.1
Pomijanie już przetestowanej kombinacji: ZZ1, C=1.0
Testowanie ZZ1 z C=10.0...
Wymiary danych: X_train_reduced (1206, 14)
Sprawdzenie NaN: 0
Sprawdzenie inf: 0
Zakres danych: [-6.6025, 16.5347]
Testowanie quantum kernel...
Test kernel shape: (2, 2)
Test kernel range: [0.0000, 1.0000]
Fold 1/10: train (1085, 14), val (121, 14)
Fold 1 score: 0.7438
Fold 2/10: train (1085, 14), val (121, 14)
Fold 2 score: 0.7273
Fold 3/10: train (1085, 14), val (121, 14)
Fold 3 score: 0.7273
Fold 4/10: train (1085, 14), val (121, 14)
Fold 4 score: 0.7025
Fold 5/10: train (1085, 14), val (121, 14)
Fold 5 score: 0.6860
Fold 6/10: train (1085, 14), val (121, 14)
Fold 6 score: 0.7521
Fold 7/10: train (1086, 14), val (120, 14)
Fold 7 score: 0.7083
Fold 8/10: train (1086, 14), val (120, 14)
Fold 8 score: 0.7667
Fold 9/10: train (1086, 14), val (120, 14)
Fold 9 score: 0.7500
Fold 10/10: train (1086, 14), val (120, 14)
Fold 10 score: 0.7083
Wszystkie scores: [0.743801652892562, 0.7272727272727273, 0.7272727272727273, 0.7024793388429752, 0.6859504132231405, 0.7520661157024794, 0.7083333333333334, 0.7666666666666667, 0.75, 0.7083333333333334]
Mean score: 0.7272 ± 0.0245
Dokładność kwantowego SVM z ZZ1, C=10.0: 0.7272 (czas: 168973.22 s)
Testowanie ZZ2 z C=0.1...
Wymiary danych: X_train_reduced (1206, 14)
Sprawdzenie NaN: 0
Sprawdzenie inf: 0
Zakres danych: [-6.6025, 16.5347]
Testowanie quantum kernel...
Test kernel shape: (2, 2)
Test kernel range: [0.0000, 1.0000]
Fold 1/10: train (1085, 14), val (121, 14)
Fold 1 score: 0.4628
Fold 2/10: train (1085, 14), val (121, 14)
Fold 2 score: 0.3967
Fold 3/10: train (1085, 14), val (121, 14)
Fold 3 score: 0.4132
Fold 4/10: train (1085, 14), val (121, 14)
Fold 4 score: 0.3471
Fold 5/10: train (1085, 14), val (121, 14)
Fold 5 score: 0.3967
Fold 6/10: train (1085, 14), val (121, 14)
Fold 6 score: 0.4298
Fold 7/10: train (1086, 14), val (120, 14)
Fold 7 score: 0.4417
Fold 8/10: train (1086, 14), val (120, 14)
Fold 8 score: 0.4417
Fold 9/10: train (1086, 14), val (120, 14)
Fold 9 score: 0.4083
Fold 10/10: train (1086, 14), val (120, 14)
Fold 10 score: 0.3917
Wszystkie scores: [0.4628099173553719, 0.39669421487603307, 0.4132231404958678, 0.34710743801652894, 0.39669421487603307, 0.4297520661157025, 0.44166666666666665, 0.44166666666666665, 0.4083333333333333, 0.39166666666666666]
Mean score: 0.4130 ± 0.0312
Dokładność kwantowego SVM z ZZ2, C=0.1: 0.4130 (czas: 294001.40 s)
Testowanie ZZ2 z C=1.0...
Wymiary danych: X_train_reduced (1206, 14)
Sprawdzenie NaN: 0
Sprawdzenie inf: 0
Zakres danych: [-6.6025, 16.5347]
Testowanie quantum kernel...
Test kernel shape: (2, 2)
Test kernel range: [0.0000, 1.0000]
Fold 1/10: train (1085, 14), val (121, 14)
Fold 1 score: 0.7273
Fold 2/10: train (1085, 14), val (121, 14)
Fold 2 score: 0.6860
Fold 3/10: train (1085, 14), val (121, 14)
Fold 3 score: 0.7025
Fold 4/10: train (1085, 14), val (121, 14)
Fold 4 score: 0.6777
Fold 5/10: train (1085, 14), val (121, 14)
Fold 5 score: 0.6777
Fold 6/10: train (1085, 14), val (121, 14)
Fold 6 score: 0.7107
Fold 7/10: train (1086, 14), val (120, 14)
Fold 7 score: 0.6917
Fold 8/10: train (1086, 14), val (120, 14)
Fold 8 score: 0.7417
Fold 9/10: train (1086, 14), val (120, 14)
Fold 9 score: 0.7250
Fold 10/10: train (1086, 14), val (120, 14)
Fold 10 score: 0.6917
Wszystkie scores: [0.7272727272727273, 0.6859504132231405, 0.7024793388429752, 0.6776859504132231, 0.6776859504132231, 0.7107438016528925, 0.6916666666666667, 0.7416666666666667, 0.725, 0.6916666666666667]
Mean score: 0.7032 ± 0.0211
Dokładność kwantowego SVM z ZZ2, C=1.0: 0.7032 (czas: 300831.29 s)
Testowanie ZZ2 z C=10.0...
Wymiary danych: X_train_reduced (1206, 14)
Sprawdzenie NaN: 0
Sprawdzenie inf: 0
Zakres danych: [-6.6025, 16.5347]
Testowanie quantum kernel...
Test kernel shape: (2, 2)
Test kernel range: [0.0000, 1.0000]
Fold 1/10: train (1085, 14), val (121, 14)
Fold 1 score: 0.7273
Fold 2/10: train (1085, 14), val (121, 14)
Fold 2 score: 0.6860
Fold 3/10: train (1085, 14), val (121, 14)
Fold 3 score: 0.7025
Fold 4/10: train (1085, 14), val (121, 14)
Fold 4 score: 0.6777
Fold 5/10: train (1085, 14), val (121, 14)
Fold 5 score: 0.6777
Fold 6/10: train (1085, 14), val (121, 14)
Fold 6 score: 0.7107
Fold 7/10: train (1086, 14), val (120, 14)
Fold 7 score: 0.6917
Fold 8/10: train (1086, 14), val (120, 14)
Fold 8 score: 0.7417
Fold 9/10: train (1086, 14), val (120, 14)
Fold 9 score: 0.7250
Fold 10/10: train (1086, 14), val (120, 14)
Fold 10 score: 0.6917
Wszystkie scores: [0.7272727272727273, 0.6859504132231405, 0.7024793388429752, 0.6776859504132231, 0.6776859504132231, 0.7107438016528925, 0.6916666666666667, 0.7416666666666667, 0.725, 0.6916666666666667]
Mean score: 0.7032 ± 0.0211
Dokładność kwantowego SVM z ZZ2, C=10.0: 0.7032 (czas: 296354.21 s)
Najlepszy kwantowy SVM: ZZ1 z C=10.0, dokładność: 0.7272
Raport klasyfikacji (najlepszy kwantowy SVM):
precision recall f1-score support
-- 1.00 0.50 0.67 2
Astrocytoma, NOS 1.00 0.73 0.84 26
Astrocytoma, anaplastic 1.00 0.66 0.80 83
Glioblastoma 0.65 1.00 0.79 222
Mixed glioma 1.00 0.58 0.74 67
Oligodendroglioma, NOS 1.00 0.45 0.62 74
Oligodendroglioma, anaplastic 1.00 0.68 0.81 44
accuracy 0.77 518
macro avg 0.95 0.66 0.75 518
weighted avg 0.85 0.77 0.76 518
Szczegółowe metryki dla modelu Kwantowy SVM ZZ1:
Accuracy: 0.7703
Precision: 0.8504
Recall: 0.7703
F1 Score: 0.7628
ROC AUC: N/A
Macierz pomyłek:
[[ 1 0 0 1 0 0 0]
[ 0 19 0 7 0 0 0]
[ 0 0 55 28 0 0 0]
[ 0 0 0 222 0 0 0]
[ 0 0 0 28 39 0 0]
[ 0 0 0 41 0 33 0]
[ 0 0 0 14 0 0 30]]
Całkowity czas dla kwantowego SVM: 1090413.59 sekund
======= PORÓWNANIE WYNIKÓW =======
Klasyczny SVM: 1.0000
Kwantowy SVM: 0.7703
======= ANALIZA ZNACZENIA CECH =======
Najważniejsze cechy dla klasyfikacji:
Primary_Diagnosis_Glioblastoma: 0.2664
Primary_Diagnosis_Astrocytoma, anaplastic: 0.1461
Primary_Diagnosis_Oligodendroglioma, NOS: 0.1305
Primary_Diagnosis_Mixed glioma: 0.1195
Primary_Diagnosis_Oligodendroglioma, anaplastic: 0.0846
Primary_Diagnosis_Astrocytoma, NOS: 0.0486
Czas analizy znaczenia cech: 652.50 sekund
======= PODSUMOWANIE EKSPERYMENTU ZZ =======
Data i czas zakończenia: 2025-08-27 01:34:42
Całkowity czas eksperymentu: 1756251282.45 sekund

View File

@ -0,0 +1,93 @@
======= KLASYCZNY SVM (BASELINE) =======
Najlepsze parametry klasycznego SVM: {'C': 1, 'gamma': 'scale', 'kernel': 'linear'}
Dokładność klasycznego SVM: 0.9983402489626556
Raport klasyfikacji (klasyczny SVM):
precision recall f1-score support
-- 1.00 1.00 1.00 2
Astrocytoma, NOS 1.00 1.00 1.00 27
Astrocytoma, anaplastic 1.00 1.00 1.00 84
Glioblastoma 1.00 1.00 1.00 220
Mixed glioma 1.00 1.00 1.00 69
Oligodendroglioma, NOS 1.00 1.00 1.00 73
Oligodendroglioma, anaplastic 1.00 1.00 1.00 43
accuracy 1.00 518
macro avg 1.00 1.00 1.00 518
weighted avg 1.00 1.00 1.00 518
Szczegółowe metryki dla modelu Klasyczny SVM:
Accuracy: 1.0000
Precision: 1.0000
Recall: 1.0000
F1 Score: 1.0000
ROC AUC: N/A
Macierz pomyłek:
[[ 2 0 0 0 0 0 0]
[ 0 27 0 0 0 0 0]
[ 0 0 84 0 0 0 0]
[ 0 0 0 220 0 0 0]
[ 0 0 0 0 69 0 0]
[ 0 0 0 0 0 73 0]
[ 0 0 0 0 0 0 43]]
Czas trenowania i ewaluacji klasycznego SVM: 50.84 sekund
======= KWANTOWY SVM Z ZZ FEATURE MAPS =======
Testowanie 2 map cech: ['ZZ1', 'ZZ2']
Testowanie ZZ1 z C=0.1...
Wymiary danych: X_train_reduced (1206, 14)
Sprawdzenie NaN: 0
Sprawdzenie inf: 0
Zakres danych: [-5.5499, 14.8471]
Testowanie quantum kernel...
Test kernel shape: (2, 2)
Test kernel range: [0.0000, 1.0000]
Fold 1/10: train (1085, 14), val (121, 14)
Fold 1 score: 0.4545
Fold 2/10: train (1085, 14), val (121, 14)
Fold 2 score: 0.3884
Fold 3/10: train (1085, 14), val (121, 14)
Fold 3 score: 0.4132
Fold 4/10: train (1085, 14), val (121, 14)
Fold 4 score: 0.3471
Fold 5/10: train (1085, 14), val (121, 14)
Fold 5 score: 0.4132
Fold 6/10: train (1085, 14), val (121, 14)
Fold 6 score: 0.4298
Fold 7/10: train (1086, 14), val (120, 14)
Fold 7 score: 0.4333
Fold 8/10: train (1086, 14), val (120, 14)
Fold 8 score: 0.4417
Fold 9/10: train (1086, 14), val (120, 14)
Fold 9 score: 0.4083
Fold 10/10: train (1086, 14), val (120, 14)
Fold 10 score: 0.3833
Wszystkie scores: [0.45454545454545453, 0.3884297520661157, 0.4132231404958678, 0.34710743801652894, 0.4132231404958678, 0.4297520661157025, 0.43333333333333335, 0.44166666666666665, 0.4083333333333333, 0.38333333333333336]
Mean score: 0.4113 ± 0.0301
Dokładność kwantowego SVM z ZZ1, C=0.1: 0.4113 (czas: 160747.59 s)
Testowanie ZZ1 z C=1.0...
Wymiary danych: X_train_reduced (1206, 14)
Sprawdzenie NaN: 0
Sprawdzenie inf: 0
Zakres danych: [-5.5499, 14.8471]
Testowanie quantum kernel...
Test kernel shape: (2, 2)
Test kernel range: [0.0000, 1.0000]
Fold 1/10: train (1085, 14), val (121, 14)
Fold 1 score: 0.5207
Fold 2/10: train (1085, 14), val (121, 14)
Fold 2 score: 0.4711
Fold 3/10: train (1085, 14), val (121, 14)
Fold 3 score: 0.5289
Fold 4/10: train (1085, 14), val (121, 14)
Fold 4 score: 0.4463
Fold 5/10: train (1085, 14), val (121, 14)
Fold 5 score: 0.5041
Fold 6/10: train (1085, 14), val (121, 14)
Fold 6 score: 0.4793
Fold 7/10: train (1086, 14), val (120, 14)
Fold 7 score: 0.5167
Fold 8/10: train (1086, 14), val (120, 14)