From b479f46e1e3bb2925c1237a9fc3091a02eb9c6e1 Mon Sep 17 00:00:00 2001 From: quillotm Date: Wed, 11 Aug 2021 07:36:23 +0200 Subject: [PATCH] Add abstract class that defines the required methods to implement a clustering class. --- volia/clustering_modules/abstract_clustering.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 volia/clustering_modules/abstract_clustering.py diff --git a/volia/clustering_modules/abstract_clustering.py b/volia/clustering_modules/abstract_clustering.py new file mode 100644 index 0000000..45aac9e --- /dev/null +++ b/volia/clustering_modules/abstract_clustering.py @@ -0,0 +1,12 @@ + +from abc import ABC, abstractmethod + +class AbstractClustering(ABC): + + @abstractmethod + def predict(self, features): + pass + + @abstractmethod + def load(self, features): + pass -- 1.8.2.3