From cd75af09bcc25d655e4617d7980a9f0deced3624 Mon Sep 17 00:00:00 2001 From: bxdd Date: Mon, 24 Apr 2023 21:54:06 +0800 Subject: [PATCH] [MNT] Del wrong files --- .../workflow_by_code/test_stat/0/__init__.py | 20 ------------------- .../test_stat/0/learnware.yaml | 8 -------- .../workflow_by_code/test_stat/1/__init__.py | 20 ------------------- .../test_stat/1/learnware.yaml | 8 -------- .../workflow_by_code/test_stat/2/__init__.py | 20 ------------------- .../test_stat/2/learnware.yaml | 8 -------- .../workflow_by_code/test_stat/3/__init__.py | 20 ------------------- .../test_stat/3/learnware.yaml | 8 -------- .../workflow_by_code/test_stat/4/__init__.py | 20 ------------------- .../test_stat/4/learnware.yaml | 8 -------- 10 files changed, 140 deletions(-) delete mode 100644 examples/workflow_by_code/test_stat/0/__init__.py delete mode 100644 examples/workflow_by_code/test_stat/0/learnware.yaml delete mode 100644 examples/workflow_by_code/test_stat/1/__init__.py delete mode 100644 examples/workflow_by_code/test_stat/1/learnware.yaml delete mode 100644 examples/workflow_by_code/test_stat/2/__init__.py delete mode 100644 examples/workflow_by_code/test_stat/2/learnware.yaml delete mode 100644 examples/workflow_by_code/test_stat/3/__init__.py delete mode 100644 examples/workflow_by_code/test_stat/3/learnware.yaml delete mode 100644 examples/workflow_by_code/test_stat/4/__init__.py delete mode 100644 examples/workflow_by_code/test_stat/4/learnware.yaml diff --git a/examples/workflow_by_code/test_stat/0/__init__.py b/examples/workflow_by_code/test_stat/0/__init__.py deleted file mode 100644 index 47d3708..0000000 --- a/examples/workflow_by_code/test_stat/0/__init__.py +++ /dev/null @@ -1,20 +0,0 @@ -import os -import joblib -import numpy as np -from learnware.model import BaseModel - - -class SVM(BaseModel): - def __init__(self): - super(SVM, self).__init__(input_shape=(64,), output_shape=(10,)) - dir_path = os.path.dirname(os.path.abspath(__file__)) - self.model = joblib.load(os.path.join(dir_path, "svm.pkl")) - - def fit(self, X: np.ndarray, y: np.ndarray): - pass - - def predict(self, X: np.ndarray) -> np.ndarray: - return self.model.predict_proba(X) - - def finetune(self, X: np.ndarray, y: np.ndarray): - pass diff --git a/examples/workflow_by_code/test_stat/0/learnware.yaml b/examples/workflow_by_code/test_stat/0/learnware.yaml deleted file mode 100644 index 254bca4..0000000 --- a/examples/workflow_by_code/test_stat/0/learnware.yaml +++ /dev/null @@ -1,8 +0,0 @@ -model: - class_name: SVM - kwargs: {} -stat_specifications: - - module_path: learnware.specification - class_name: RKMEStatSpecification - file_name: svm.json - kwargs: {} \ No newline at end of file diff --git a/examples/workflow_by_code/test_stat/1/__init__.py b/examples/workflow_by_code/test_stat/1/__init__.py deleted file mode 100644 index 47d3708..0000000 --- a/examples/workflow_by_code/test_stat/1/__init__.py +++ /dev/null @@ -1,20 +0,0 @@ -import os -import joblib -import numpy as np -from learnware.model import BaseModel - - -class SVM(BaseModel): - def __init__(self): - super(SVM, self).__init__(input_shape=(64,), output_shape=(10,)) - dir_path = os.path.dirname(os.path.abspath(__file__)) - self.model = joblib.load(os.path.join(dir_path, "svm.pkl")) - - def fit(self, X: np.ndarray, y: np.ndarray): - pass - - def predict(self, X: np.ndarray) -> np.ndarray: - return self.model.predict_proba(X) - - def finetune(self, X: np.ndarray, y: np.ndarray): - pass diff --git a/examples/workflow_by_code/test_stat/1/learnware.yaml b/examples/workflow_by_code/test_stat/1/learnware.yaml deleted file mode 100644 index 254bca4..0000000 --- a/examples/workflow_by_code/test_stat/1/learnware.yaml +++ /dev/null @@ -1,8 +0,0 @@ -model: - class_name: SVM - kwargs: {} -stat_specifications: - - module_path: learnware.specification - class_name: RKMEStatSpecification - file_name: svm.json - kwargs: {} \ No newline at end of file diff --git a/examples/workflow_by_code/test_stat/2/__init__.py b/examples/workflow_by_code/test_stat/2/__init__.py deleted file mode 100644 index 47d3708..0000000 --- a/examples/workflow_by_code/test_stat/2/__init__.py +++ /dev/null @@ -1,20 +0,0 @@ -import os -import joblib -import numpy as np -from learnware.model import BaseModel - - -class SVM(BaseModel): - def __init__(self): - super(SVM, self).__init__(input_shape=(64,), output_shape=(10,)) - dir_path = os.path.dirname(os.path.abspath(__file__)) - self.model = joblib.load(os.path.join(dir_path, "svm.pkl")) - - def fit(self, X: np.ndarray, y: np.ndarray): - pass - - def predict(self, X: np.ndarray) -> np.ndarray: - return self.model.predict_proba(X) - - def finetune(self, X: np.ndarray, y: np.ndarray): - pass diff --git a/examples/workflow_by_code/test_stat/2/learnware.yaml b/examples/workflow_by_code/test_stat/2/learnware.yaml deleted file mode 100644 index 254bca4..0000000 --- a/examples/workflow_by_code/test_stat/2/learnware.yaml +++ /dev/null @@ -1,8 +0,0 @@ -model: - class_name: SVM - kwargs: {} -stat_specifications: - - module_path: learnware.specification - class_name: RKMEStatSpecification - file_name: svm.json - kwargs: {} \ No newline at end of file diff --git a/examples/workflow_by_code/test_stat/3/__init__.py b/examples/workflow_by_code/test_stat/3/__init__.py deleted file mode 100644 index 47d3708..0000000 --- a/examples/workflow_by_code/test_stat/3/__init__.py +++ /dev/null @@ -1,20 +0,0 @@ -import os -import joblib -import numpy as np -from learnware.model import BaseModel - - -class SVM(BaseModel): - def __init__(self): - super(SVM, self).__init__(input_shape=(64,), output_shape=(10,)) - dir_path = os.path.dirname(os.path.abspath(__file__)) - self.model = joblib.load(os.path.join(dir_path, "svm.pkl")) - - def fit(self, X: np.ndarray, y: np.ndarray): - pass - - def predict(self, X: np.ndarray) -> np.ndarray: - return self.model.predict_proba(X) - - def finetune(self, X: np.ndarray, y: np.ndarray): - pass diff --git a/examples/workflow_by_code/test_stat/3/learnware.yaml b/examples/workflow_by_code/test_stat/3/learnware.yaml deleted file mode 100644 index 254bca4..0000000 --- a/examples/workflow_by_code/test_stat/3/learnware.yaml +++ /dev/null @@ -1,8 +0,0 @@ -model: - class_name: SVM - kwargs: {} -stat_specifications: - - module_path: learnware.specification - class_name: RKMEStatSpecification - file_name: svm.json - kwargs: {} \ No newline at end of file diff --git a/examples/workflow_by_code/test_stat/4/__init__.py b/examples/workflow_by_code/test_stat/4/__init__.py deleted file mode 100644 index 47d3708..0000000 --- a/examples/workflow_by_code/test_stat/4/__init__.py +++ /dev/null @@ -1,20 +0,0 @@ -import os -import joblib -import numpy as np -from learnware.model import BaseModel - - -class SVM(BaseModel): - def __init__(self): - super(SVM, self).__init__(input_shape=(64,), output_shape=(10,)) - dir_path = os.path.dirname(os.path.abspath(__file__)) - self.model = joblib.load(os.path.join(dir_path, "svm.pkl")) - - def fit(self, X: np.ndarray, y: np.ndarray): - pass - - def predict(self, X: np.ndarray) -> np.ndarray: - return self.model.predict_proba(X) - - def finetune(self, X: np.ndarray, y: np.ndarray): - pass diff --git a/examples/workflow_by_code/test_stat/4/learnware.yaml b/examples/workflow_by_code/test_stat/4/learnware.yaml deleted file mode 100644 index 254bca4..0000000 --- a/examples/workflow_by_code/test_stat/4/learnware.yaml +++ /dev/null @@ -1,8 +0,0 @@ -model: - class_name: SVM - kwargs: {} -stat_specifications: - - module_path: learnware.specification - class_name: RKMEStatSpecification - file_name: svm.json - kwargs: {} \ No newline at end of file