|
|
|
@@ -164,7 +164,7 @@ class TestMarket(unittest.TestCase): |
|
|
|
hetero_market = self._init_learnware_market() |
|
|
|
self.test_prepare_learnware_randomly(learnware_num) |
|
|
|
self.learnware_num = learnware_num |
|
|
|
hetero_market.learnware_organizer.reset(auto_update=True, auto_update_limit=learnware_num) |
|
|
|
hetero_market.learnware_organizer.reset(auto_update=False, auto_update_limit=learnware_num) |
|
|
|
|
|
|
|
print("Total Item:", len(hetero_market)) |
|
|
|
assert len(hetero_market) == 0, f"The market should be empty!" |
|
|
|
@@ -303,7 +303,7 @@ class TestMarket(unittest.TestCase): |
|
|
|
semantic_spec["Input"] = copy.deepcopy(input_description_list[idx % 2]) |
|
|
|
semantic_spec["Input"]["Dimension"] = user_dim - 2 |
|
|
|
semantic_spec["Input"]["Description"] = { |
|
|
|
"key": semantic_spec["Input"]["Description"][str(key)] for key in range(user_dim) |
|
|
|
str(key): semantic_spec["Input"]["Description"][str(key)] for key in range(user_dim) |
|
|
|
} |
|
|
|
|
|
|
|
user_info = BaseUserInfo(semantic_spec=semantic_spec, stat_info={"RKMETableSpecification": user_spec}) |
|
|
|
|