From b3c50926d42b59e82db1dc155c4b86b98b64cb92 Mon Sep 17 00:00:00 2001 From: bxdd Date: Mon, 4 Dec 2023 14:54:48 +0800 Subject: [PATCH] [MNT] add dist method in base stat_spec class --- learnware/specification/base.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/learnware/specification/base.py b/learnware/specification/base.py index 064173d..6b1c5f5 100644 --- a/learnware/specification/base.py +++ b/learnware/specification/base.py @@ -1,3 +1,5 @@ +from __future__ import annotations + import copy import numpy as np from typing import Dict @@ -22,6 +24,9 @@ class BaseStatSpecification: def get_states(self): return {k: v for k, v in self.__dict__.items() if not k.startswith("_")} + def dist(self, stat_spec: BaseStatSpecification): + raise NotImplementedError("dist is not implemented") + def save(self, filepath: str): """Save the statistical specification into file in filepath