diff --git a/examples/example1.py b/examples/example1.py deleted file mode 100644 index e69de29..0000000 diff --git a/examples/examples1/example1.py b/examples/examples1/example1.py new file mode 100644 index 0000000..d78df49 --- /dev/null +++ b/examples/examples1/example1.py @@ -0,0 +1 @@ +from learnware.market import LearnwareMarket diff --git a/learnware/learnware/__init__.py b/learnware/learnware/__init__.py index e69de29..7a90eec 100644 --- a/learnware/learnware/__init__.py +++ b/learnware/learnware/__init__.py @@ -0,0 +1,3 @@ +class BaseLearnware: + def __init__(self) -> None: + pass diff --git a/learnware/market/__init__.py b/learnware/market/__init__.py index e69de29..0fef201 100644 --- a/learnware/market/__init__.py +++ b/learnware/market/__init__.py @@ -0,0 +1 @@ +from .base import LearnwareMarket diff --git a/learnware/market/base.py b/learnware/market/base.py new file mode 100644 index 0000000..f14c7c6 --- /dev/null +++ b/learnware/market/base.py @@ -0,0 +1,50 @@ +import numpy as np +import pandas as pd +from typing import List, Set, Dict + + +class LearnwareMarket: + def __init__(self): + pass + + def _reload_market(self, a: np.ndarray, b: float, c: List[int], d: Dict[int, float]) -> pd.DataFrame: + """_summary_ + + Parameters + ---------- + a : np.ndarray + _description_ + b : float + _description_ + c : List[int] + _description_ + d : Dict[int, float] + _description_ + + Returns + ------- + pd.DataFrame + _description_ + + Raises + ------ + NotImplemented + _description_ + """ + + raise NotImplemented(f"_reload_market is not implemented") + + def add_learnware(self): + raise NotImplemented("add_learnware is not implemented") + + def search_learnware(self): + raise NotImplemented("search_learnwars is not implemented") + + def get_learnware_by_ids(self): + raise NotImplemented("get_learnware_by_ids is not implemented") + + def delete_learnware(self): + raise NotImplemented("delete_learnware is not implemented") + + def get_sematic_list(self): + raise NotImplemented("get_sematic_list is not implemented")