|
|
|
@@ -10,17 +10,29 @@ class Specification: |
|
|
|
|
|
|
|
def get_property(self): |
|
|
|
return self.property |
|
|
|
|
|
|
|
def add_stat_spec(self, name, new_stat_spec:BaseStatSpecification): |
|
|
|
self.stat_spec[name] = new_stat_spec |
|
|
|
|
|
|
|
def get_stat_spec_by_name(self, name:str): |
|
|
|
if not name in self.stat_spec: |
|
|
|
return None |
|
|
|
|
|
|
|
return self.stat_spec[name] |
|
|
|
|
|
|
|
def update_stat_spec(self): # update specification method |
|
|
|
pass |
|
|
|
|
|
|
|
class StatSpecification: |
|
|
|
class BaseStatSpecification: |
|
|
|
def __init__(self): |
|
|
|
pass |
|
|
|
|
|
|
|
def generate_stat_spec_from_data(self, X: np.ndarray): |
|
|
|
raise NotImplementedError("generate_stat_spec_from_data is not implemented") |
|
|
|
|
|
|
|
def save(self, filepath: str = "./stat_spec.npy"): |
|
|
|
def save(self, filepath: str): |
|
|
|
raise NotImplementedError("save is not implemented") |
|
|
|
|
|
|
|
|
|
|
|
def load(self, filepath: str = "./stat_spec.npy"): |
|
|
|
def load(self, filepath: str): |
|
|
|
raise NotImplementedError("load is not implemented") |