Browse Source

[MNT] Add some example

tags/v0.3.2
bxdd 3 years ago
parent
commit
90e21822a3
5 changed files with 55 additions and 0 deletions
  1. +0
    -0
      examples/example1.py
  2. +1
    -0
      examples/examples1/example1.py
  3. +3
    -0
      learnware/learnware/__init__.py
  4. +1
    -0
      learnware/market/__init__.py
  5. +50
    -0
      learnware/market/base.py

+ 0
- 0
examples/example1.py View File


+ 1
- 0
examples/examples1/example1.py View File

@@ -0,0 +1 @@
from learnware.market import LearnwareMarket

+ 3
- 0
learnware/learnware/__init__.py View File

@@ -0,0 +1,3 @@
class BaseLearnware:
def __init__(self) -> None:
pass

+ 1
- 0
learnware/market/__init__.py View File

@@ -0,0 +1 @@
from .base import LearnwareMarket

+ 50
- 0
learnware/market/base.py View File

@@ -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")

Loading…
Cancel
Save