Browse Source

[MNT] Semantic spec: change the type of name and descrition

tags/v0.3.2
xiey 3 years ago
parent
commit
3689ed5255
6 changed files with 42 additions and 42 deletions
  1. +8
    -8
      examples/example_image/main.py
  2. +8
    -8
      examples/example_m5/main.py
  3. +8
    -8
      examples/example_market_db/example_db.py
  4. +8
    -8
      examples/example_pfs/main.py
  5. +8
    -8
      examples/workflow_by_code/main.py
  6. +2
    -2
      learnware/config.py

+ 8
- 8
examples/example_image/main.py View File

@@ -44,8 +44,8 @@ semantic_specs = [
},
"Device": {"Values": ["GPU"], "Type": "Tag"},
"Scenario": {"Values": ["Nature"], "Type": "Tag"},
"Description": {"Values": "", "Type": "Description"},
"Name": {"Values": "learnware_1", "Type": "Name"},
"Description": {"Values": "", "Type": "String"},
"Name": {"Values": "learnware_1", "Type": "String"},
},
{
"Data": {"Values": ["Tabular"], "Type": "Class"},
@@ -55,8 +55,8 @@ semantic_specs = [
},
"Device": {"Values": ["GPU"], "Type": "Tag"},
"Scenario": {"Values": ["Business", "Nature"], "Type": "Tag"},
"Description": {"Values": "", "Type": "Description"},
"Name": {"Values": "learnware_2", "Type": "Name"},
"Description": {"Values": "", "Type": "String"},
"Name": {"Values": "learnware_2", "Type": "String"},
},
{
"Data": {"Values": ["Tabular"], "Type": "Class"},
@@ -66,8 +66,8 @@ semantic_specs = [
},
"Device": {"Values": ["GPU"], "Type": "Tag"},
"Scenario": {"Values": ["Business"], "Type": "Tag"},
"Description": {"Values": "", "Type": "Description"},
"Name": {"Values": "learnware_3", "Type": "Name"},
"Description": {"Values": "", "Type": "String"},
"Name": {"Values": "learnware_3", "Type": "String"},
},
]

@@ -79,8 +79,8 @@ user_senmantic = {
},
"Device": {"Values": ["GPU"], "Type": "Tag"},
"Scenario": {"Values": ["Business"], "Type": "Tag"},
"Description": {"Values": "", "Type": "Description"},
"Name": {"Values": "", "Type": "Name"},
"Description": {"Values": "", "Type": "String"},
"Name": {"Values": "", "Type": "String"},
}




+ 8
- 8
examples/example_m5/main.py View File

@@ -21,8 +21,8 @@ semantic_specs = [
},
"Device": {"Values": ["GPU"], "Type": "Tag"},
"Scenario": {"Values": ["Nature"], "Type": "Tag"},
"Description": {"Values": "", "Type": "Description"},
"Name": {"Values": "learnware_1", "Type": "Name"},
"Description": {"Values": "", "Type": "String"},
"Name": {"Values": "learnware_1", "Type": "String"},
},
{
"Data": {"Values": ["Tabular"], "Type": "Class"},
@@ -32,8 +32,8 @@ semantic_specs = [
},
"Device": {"Values": ["GPU"], "Type": "Tag"},
"Scenario": {"Values": ["Business", "Nature"], "Type": "Tag"},
"Description": {"Values": "", "Type": "Description"},
"Name": {"Values": "learnware_2", "Type": "Name"},
"Description": {"Values": "", "Type": "String"},
"Name": {"Values": "learnware_2", "Type": "String"},
},
{
"Data": {"Values": ["Tabular"], "Type": "Class"},
@@ -43,8 +43,8 @@ semantic_specs = [
},
"Device": {"Values": ["GPU"], "Type": "Tag"},
"Scenario": {"Values": ["Business"], "Type": "Tag"},
"Description": {"Values": "", "Type": "Description"},
"Name": {"Values": "learnware_3", "Type": "Name"},
"Description": {"Values": "", "Type": "String"},
"Name": {"Values": "learnware_3", "Type": "String"},
},
]

@@ -56,8 +56,8 @@ user_senmantic = {
},
"Device": {"Values": ["GPU"], "Type": "Tag"},
"Scenario": {"Values": ["Business"], "Type": "Tag"},
"Description": {"Values": "", "Type": "Description"},
"Name": {"Values": "", "Type": "Name"},
"Description": {"Values": "", "Type": "String"},
"Name": {"Values": "", "Type": "String"},
}




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

@@ -17,24 +17,24 @@ semantic_specs = [
"Task": {"Values": ["Classification"], "Type": "Class"},
"Device": {"Values": ["GPU"], "Type": "Tag"},
"Scenario": {"Values": ["Nature"], "Type": "Tag"},
"Description": {"Values": "", "Type": "Description"},
"Name": {"Values": "learnware_1", "Type": "Name"},
"Description": {"Values": "", "Type": "String"},
"Name": {"Values": "learnware_1", "Type": "String"},
},
{
"Data": {"Values": ["Tabular"], "Type": "Class"},
"Task": {"Values": ["Classification"], "Type": "Class"},
"Device": {"Values": ["GPU"], "Type": "Tag"},
"Scenario": {"Values": ["Business", "Nature"], "Type": "Tag"},
"Description": {"Values": "", "Type": "Description"},
"Name": {"Values": "learnware_2", "Type": "Name"},
"Description": {"Values": "", "Type": "String"},
"Name": {"Values": "learnware_2", "Type": "String"},
},
{
"Data": {"Values": ["Tabular"], "Type": "Class"},
"Task": {"Values": ["Regression"], "Type": "Class"},
"Device": {"Values": ["GPU"], "Type": "Tag"},
"Scenario": {"Values": ["Business"], "Type": "Tag"},
"Description": {"Values": "", "Type": "Description"},
"Name": {"Values": "learnware_3", "Type": "Name"},
"Description": {"Values": "", "Type": "String"},
"Name": {"Values": "learnware_3", "Type": "String"},
},
]

@@ -46,8 +46,8 @@ user_senmantic = {
},
"Device": {"Values": ["GPU"], "Type": "Tag"},
"Scenario": {"Values": ["Business"], "Type": "Tag"},
"Description": {"Values": "", "Type": "Description"},
"Name": {"Values": "learnware", "Type": "Name"},
"Description": {"Values": "", "Type": "String"},
"Name": {"Values": "learnware", "Type": "String"},
}




+ 8
- 8
examples/example_pfs/main.py View File

@@ -21,8 +21,8 @@ semantic_specs = [
},
"Device": {"Values": ["GPU"], "Type": "Tag"},
"Scenario": {"Values": ["Nature"], "Type": "Tag"},
"Description": {"Values": "", "Type": "Description"},
"Name": {"Values": "learnware_1", "Type": "Name"},
"Description": {"Values": "", "Type": "String"},
"Name": {"Values": "learnware_1", "Type": "String"},
},
{
"Data": {"Values": ["Tabular"], "Type": "Class"},
@@ -32,8 +32,8 @@ semantic_specs = [
},
"Device": {"Values": ["GPU"], "Type": "Tag"},
"Scenario": {"Values": ["Business", "Nature"], "Type": "Tag"},
"Description": {"Values": "", "Type": "Description"},
"Name": {"Values": "learnware_2", "Type": "Name"},
"Description": {"Values": "", "Type": "String"},
"Name": {"Values": "learnware_2", "Type": "String"},
},
{
"Data": {"Values": ["Tabular"], "Type": "Class"},
@@ -43,8 +43,8 @@ semantic_specs = [
},
"Device": {"Values": ["GPU"], "Type": "Tag"},
"Scenario": {"Values": ["Business"], "Type": "Tag"},
"Description": {"Values": "", "Type": "Description"},
"Name": {"Values": "learnware_3", "Type": "Name"},
"Description": {"Values": "", "Type": "String"},
"Name": {"Values": "learnware_3", "Type": "String"},
},
]

@@ -56,8 +56,8 @@ user_senmantic = {
},
"Device": {"Values": ["GPU"], "Type": "Tag"},
"Scenario": {"Values": ["Business"], "Type": "Tag"},
"Description": {"Values": "", "Type": "Description"},
"Name": {"Values": "", "Type": "Name"},
"Description": {"Values": "", "Type": "String"},
"Name": {"Values": "", "Type": "String"},
}




+ 8
- 8
examples/workflow_by_code/main.py View File

@@ -24,8 +24,8 @@ semantic_specs = [
},
"Device": {"Values": ["GPU"], "Type": "Tag"},
"Scenario": {"Values": ["Nature"], "Type": "Tag"},
"Description": {"Values": "", "Type": "Description"},
"Name": {"Values": "learnware_1", "Type": "Name"},
"Description": {"Values": "", "Type": "String"},
"Name": {"Values": "learnware_1", "Type": "String"},
},
{
"Data": {"Values": ["Tabular"], "Type": "Class"},
@@ -35,8 +35,8 @@ semantic_specs = [
},
"Device": {"Values": ["GPU"], "Type": "Tag"},
"Scenario": {"Values": ["Business", "Nature"], "Type": "Tag"},
"Description": {"Values": "", "Type": "Description"},
"Name": {"Values": "learnware_2", "Type": "Name"},
"Description": {"Values": "", "Type": "String"},
"Name": {"Values": "learnware_2", "Type": "String"},
},
{
"Data": {"Values": ["Tabular"], "Type": "Class"},
@@ -46,8 +46,8 @@ semantic_specs = [
},
"Device": {"Values": ["GPU"], "Type": "Tag"},
"Scenario": {"Values": ["Business"], "Type": "Tag"},
"Description": {"Values": "", "Type": "Description"},
"Name": {"Values": "learnware_3", "Type": "Name"},
"Description": {"Values": "", "Type": "String"},
"Name": {"Values": "learnware_3", "Type": "String"},
},
]

@@ -59,8 +59,8 @@ user_senmantic = {
},
"Device": {"Values": ["GPU"], "Type": "Tag"},
"Scenario": {"Values": ["Business"], "Type": "Tag"},
"Description": {"Values": "", "Type": "Description"},
"Name": {"Values": "", "Type": "Name"},
"Description": {"Values": "", "Type": "String"},
"Name": {"Values": "", "Type": "String"},
}




+ 2
- 2
learnware/config.py View File

@@ -107,11 +107,11 @@ semantic_config = {
},
"Description": {
"Values": None,
"Type": "Description",
"Type": "String",
},
"Name": {
"Values": None,
"Type": "Name",
"Type": "String",
},
}



Loading…
Cancel
Save