18 lines
385 B
Python
18 lines
385 B
Python
from dataclasses import dataclass
|
|
from typing import List
|
|
|
|
from backend.metric.model import MetricValue
|
|
from backend.tree.model import Rule, TreeNode
|
|
|
|
|
|
@dataclass
|
|
class ClassificationResult:
|
|
tree: List[TreeNode]
|
|
rules: List[Rule]
|
|
precision: MetricValue
|
|
recall: MetricValue
|
|
accuracy: MetricValue
|
|
f1: MetricValue
|
|
mcc: MetricValue
|
|
cohen_kappa: MetricValue
|