Numpy-Neuron / cluster /clusterer.py
Jensen-holm's picture
getting rid of some more problematic type hints
0e83192
raw
history blame
312 Bytes
from dataclasses import dataclass
from typing import Callable
@dataclass
class Clusterer:
cluster_func: Callable
plot = None
def eval(
self,
pred_labels,
true_labels,
) -> None:
...
@classmethod
def from_dict(cls, dct: dict):
return cls(**dct)