Commit b479f46e1e3bb2925c1237a9fc3091a02eb9c6e1

Authored by quillotm
1 parent bdb2fd6e17
Exists in master

Add abstract class that defines the required methods to implement a clustering class.

Showing 1 changed file with 12 additions and 0 deletions Side-by-side Diff

volia/clustering_modules/abstract_clustering.py
  1 +
  2 +from abc import ABC, abstractmethod
  3 +
  4 +class AbstractClustering(ABC):
  5 +
  6 + @abstractmethod
  7 + def predict(self, features):
  8 + pass
  9 +
  10 + @abstractmethod
  11 + def load(self, features):
  12 + pass