Update README.rst

This commit is contained in:
Hongzuo Xu 2022-11-02 22:54:51 +08:00 committed by GitHub
parent ae73402c1d
commit d99bb0f39f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -31,6 +31,6 @@ DeepOD can be used in a few lines of code. This API style is the same with sklea
# weakly-supervised methods
from deepod.models.devnet import DevNet
clf = DevNet()
clf.fit(X_train, y=semi_y) # semi_y use 1 for known anomalies, and 0 for unlabeled data
clf.fit(X_train, y=semi_y) # semi_y uses 1 for known anomalies, and 0 for unlabeled data
scores = clf.decision_function(X_test)