File size: 3,017 Bytes
9305e83
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
Fitting 5 folds for each of 5 candidates, totalling 25 fits
[CV 1/5] END .............................C=0.1;, score=0.875 total time=   0.0s
[CV 2/5] END ..............................C=10;, score=0.714 total time=   0.0s
[CV 3/5] END ..............................C=10;, score=0.857 total time=   0.0s
[CV 4/5] END ..............................C=10;, score=0.857 total time=   0.0s
[CV 5/5] END ..............................C=10;, score=0.857 total time=   0.0s
[CV 1/5] END .............................C=100;, score=0.750 total time=   0.0s
[CV 2/5] END .............................C=100;, score=0.714 total time=   0.0s
[CV 4/5] END .............................C=0.1;, score=0.857 total time=   0.0s
[CV 5/5] END .............................C=0.1;, score=0.857 total time=   0.0s
[CV 2/5] END .............................C=0.1;, score=0.714 total time=   0.0s
[CV 3/5] END .............................C=100;, score=0.857 total time=   0.0s
[CV 5/5] END ...............................C=1;, score=0.857 total time=   0.0s
[CV 2/5] END ...............................C=1;, score=0.714 total time=   0.0s
[CV 4/5] END .............................C=100;, score=0.857 total time=   0.0s
[CV 1/5] END ...............................C=1;, score=0.750 total time=   0.0s
[CV 5/5] END .............................C=100;, score=0.857 total time=   0.0s
[CV 4/5] END ...............................C=1;, score=0.857 total time=   0.0s
/opt/homebrew/anaconda3/lib/python3.11/site-packages/sklearn/svm/_base.py:1244: ConvergenceWarning: Liblinear failed to converge, increase the number of iterations.
  warnings.warn(
[CV 1/5] END ............................C=1000;, score=0.750 total time=   0.0s
[CV 3/5] END ...............................C=1;, score=0.857 total time=   0.0s
[CV 4/5] END ............................C=1000;, score=0.857 total time=   0.0s
[CV 3/5] END .............................C=0.1;, score=0.857 total time=   0.0s
[CV 1/5] END ..............................C=10;, score=0.750 total time=   0.0s
[CV 3/5] END ............................C=1000;, score=0.857 total time=   0.0s
[CV 2/5] END ............................C=1000;, score=0.714 total time=   0.0s
/opt/homebrew/anaconda3/lib/python3.11/site-packages/sklearn/svm/_base.py:1244: ConvergenceWarning: Liblinear failed to converge, increase the number of iterations.
  warnings.warn(
[CV 5/5] END ............................C=1000;, score=0.857 total time=   0.0s
Cross-validation Accuracy Scores: [0.875      0.71428571 0.85714286 0.85714286 0.85714286]
Mean Cross-validation Accuracy: 0.8321428571428571
Test Set Accuracy: 0.8
Classification Report:
               precision    recall  f1-score   support

           0       1.00      1.00      1.00         5
           1       0.60      1.00      0.75         3
           2       1.00      0.00      0.00         2

    accuracy                           0.80        10
   macro avg       0.87      0.67      0.58        10
weighted avg       0.88      0.80      0.72        10