classification
Accuracy(features=None)
Bases: SelectMixin, LazyMixin, Metric
Accuracy classification score.
As defined by scikit-learn.
Initialize metric.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
features
|
list[str] | None
|
The features to calculate the metric for. If None, the metric uses all features in the data. |
None
|
Source code in src/flowcean/sklearn/metrics/classification.py
15 16 17 18 19 20 21 22 23 24 25 | |
ClassificationReport(features=None)
Bases: SelectMixin, LazyMixin, Metric
Build a text report showing the main classification metrics.
As defined by scikit-learn.
Initialize metric.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
features
|
list[str] | None
|
The features to calculate the metric for. If None, the metric uses all features in the data. |
None
|
Source code in src/flowcean/sklearn/metrics/classification.py
38 39 40 41 42 43 44 45 46 47 48 | |
FBetaScore(*, beta=1.0, features=None)
Bases: SelectMixin, LazyMixin, Metric
F-beta score.
As defined by scikit-learn.
Initialize metric.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
beta
|
float
|
The beta parameter. |
1.0
|
features
|
list[str] | None
|
The features to calculate the metric for. If None, the metric uses all features in the data. |
None
|
Source code in src/flowcean/sklearn/metrics/classification.py
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | |
PrecisionScore(features=None)
Bases: SelectMixin, LazyMixin, Metric
Precision classification score.
As defined by scikit-learn.
Initialize metric.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
features
|
list[str] | None
|
The features to calculate the metric for. If None, the metric uses all features in the data. |
None
|
Source code in src/flowcean/sklearn/metrics/classification.py
90 91 92 93 94 95 96 97 98 99 100 | |
Recall(features=None)
Bases: SelectMixin, LazyMixin, Metric
Recall classification score.
As defined by scikit-learn.
Initialize metric.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
features
|
list[str] | None
|
The features to calculate the metric for. If None, the metric uses all features in the data. |
None
|
Source code in src/flowcean/sklearn/metrics/classification.py
113 114 115 116 117 118 119 120 121 122 123 | |