File size: 316 Bytes
932b3cb
 
3cab2dd
932b3cb
 
 
 
28d5b3d
932b3cb
3cab2dd
 
0e83192
 
3cab2dd
 
932b3cb
 
3cab2dd
932b3cb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from dataclasses import dataclass
from typing import Callable


@dataclass
class Clusterer:
    cluster_func: Callable
    plot_key = None

    def eval(
        self,
        pred_labels,
        true_labels,
    ) -> None:
        ...

    @classmethod
    def from_dict(cls, dct: dict):
        return cls(**dct)