You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

main.py 2.0 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. import os
  2. import fire
  3. class LearnwareMarketWorkflow:
  4. curr_root = os.path.dirname(os.path.abspath(__file__))
  5. semantic_specs = [
  6. {
  7. "Data": {"Values": ["Tabular"], "Type": "Class"},
  8. "Task": {
  9. "Values": ["Classification"],
  10. "Type": "Class",
  11. },
  12. "Device": {"Values": ["GPU"], "Type": "Tag"},
  13. "Scenario": {"Values": ["Nature"], "Type": "Tag"},
  14. "Description": {"Values": "", "Type": "Description"},
  15. "Name": {"Values": "learnware_1", "Type": "Name"},
  16. },
  17. {
  18. "Data": {"Values": ["Tabular"], "Type": "Class"},
  19. "Task": {
  20. "Values": ["Classification"],
  21. "Type": "Class",
  22. },
  23. "Device": {"Values": ["GPU"], "Type": "Tag"},
  24. "Scenario": {"Values": ["Business", "Nature"], "Type": "Tag"},
  25. "Description": {"Values": "", "Type": "Description"},
  26. "Name": {"Values": "learnware_2", "Type": "Name"},
  27. },
  28. {
  29. "Data": {"Values": ["Tabular"], "Type": "Class"},
  30. "Task": {
  31. "Values": ["Classification"],
  32. "Type": "Class",
  33. },
  34. "Device": {"Values": ["GPU"], "Type": "Tag"},
  35. "Scenario": {"Values": ["Business"], "Type": "Tag"},
  36. "Description": {"Values": "", "Type": "Description"},
  37. "Name": {"Values": "learnware_3", "Type": "Name"},
  38. },
  39. ]
  40. user_senmantic = {
  41. "Data": {"Values": ["Tabular"], "Type": "Class"},
  42. "Task": {
  43. "Values": ["Classification"],
  44. "Type": "Class",
  45. },
  46. "Device": {"Values": ["GPU"], "Type": "Tag"},
  47. "Scenario": {"Values": ["Business"], "Type": "Tag"},
  48. "Description": {"Values": "", "Type": "Description"},
  49. "Name": {"Values": "", "Type": "Name"},
  50. }
  51. if __name__ == "__main__":
  52. fire.Fire(LearnwareMarketWorkflow)

基于学件范式,全流程地支持学件上传、检测、组织、查搜、部署和复用等功能。同时,该仓库作为北冥坞系统的引擎,支撑北冥坞系统的核心功能。