diff --git a/examples/example_image/main.py b/examples/example_image/main.py index 1a65272..45aac50 100644 --- a/examples/example_image/main.py +++ b/examples/example_image/main.py @@ -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"}, } diff --git a/examples/example_m5/main.py b/examples/example_m5/main.py index b14f194..e3e4390 100644 --- a/examples/example_m5/main.py +++ b/examples/example_m5/main.py @@ -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"}, } diff --git a/examples/example_market_db/example_db.py b/examples/example_market_db/example_db.py index a7b0585..11eb4cc 100644 --- a/examples/example_market_db/example_db.py +++ b/examples/example_market_db/example_db.py @@ -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"}, } diff --git a/examples/example_pfs/main.py b/examples/example_pfs/main.py index c306203..3d0fd3e 100644 --- a/examples/example_pfs/main.py +++ b/examples/example_pfs/main.py @@ -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"}, } diff --git a/examples/workflow_by_code/main.py b/examples/workflow_by_code/main.py index 842d9aa..2b72e27 100644 --- a/examples/workflow_by_code/main.py +++ b/examples/workflow_by_code/main.py @@ -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"}, } diff --git a/learnware/config.py b/learnware/config.py index 4d2e0ea..5323994 100644 --- a/learnware/config.py +++ b/learnware/config.py @@ -107,11 +107,11 @@ semantic_config = { }, "Description": { "Values": None, - "Type": "Description", + "Type": "String", }, "Name": { "Values": None, - "Type": "Name", + "Type": "String", }, }