forked from JointCloud/JCC-DeepOD
Update README.rst
This commit is contained in:
parent
ae73402c1d
commit
d99bb0f39f
|
@ -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
|
# weakly-supervised methods
|
||||||
from deepod.models.devnet import DevNet
|
from deepod.models.devnet import DevNet
|
||||||
clf = 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)
|
scores = clf.decision_function(X_test)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue