Browse Source

[FIX] fix semantic spec in example_db

tags/v0.3.2
xiey 3 years ago
parent
commit
15dfd6e1b1
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      examples/example_market_db/example_db.py

+ 2
- 2
examples/example_market_db/example_db.py View File

@@ -41,7 +41,7 @@ semantic_specs = [
user_senmantic = {
"Data": {"Values": ["Tabular"], "Type": "Class"},
"Task": {"Values": ["Classification"], "Type": "Class"},
"Device": {"Values": ["GPU"], "Type": "Class"},
"Library": {"Values": ["Scikit-learn"], "Type": "Class"},
"Scenario": {"Values": ["Business"], "Type": "Tag"},
"Description": {"Values": "", "Type": "String"},
"Name": {"Values": "learnware", "Type": "String"},
@@ -92,7 +92,7 @@ def test_market():

for idx, zip_path in enumerate(zip_path_list):
semantic_spec = semantic_specs[idx % 3]
semantic_spec["Name"]["Values"] = "learnware_%d" % (idx)
semantic_spec["Name"]["Values"] = "Learnware_%d" % (idx)
semantic_spec["Description"]["Values"] = "test_learnware_number_%d" % (idx)
easy_market.add_learnware(zip_path, semantic_spec)



Loading…
Cancel
Save