Browse Source

[MNT] Modify examples2

tags/v0.3.2
bxdd 2 years ago
parent
commit
00a22563b2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      examples/examples2/example_learnware.py

+ 1
- 1
examples/examples2/example_learnware.py View File

@@ -28,7 +28,7 @@ def test_API():
print(type(svm))

model = {"module_path": "./svm/__init__.py", "class_name": "SVM"}
spec = specification.rkme.RKMESpecification()
spec = specification.rkme.RKMEStatSpecification()
spec.load("./svm/spec.json")
learnware = Learnware(id="A0", name="SVM", model=model, specification=spec, desc="svm")
pred_y2 = learnware.predict(text_X)


Loading…
Cancel
Save