Numpy-Neuron / cluster /clusterer.py
Jensen-holm's picture
instead of returning the image bytes to the api user, we are moving towards hosting them on the backend but we need to be careful moving forwards and make sure that we delete the images after use
28d5b3d
raw
history blame
316 Bytes
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)