Skip to content

Commit

Permalink
correct automatically generated documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
rolling-robot committed Mar 18, 2023
1 parent 68dce35 commit 606d381
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/base.jl
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ SCORE_UNSUPERVISED(name::String) = """
using OutlierDetection: $name, fit, score
detector = $name()
X = rand(10, 100)
result = fit(detector, X)
test_scores = transform(detector, result.model, X)
model, result = fit(detector, X)
test_scores = transform(detector, model, X)
```"""

SCORE_SUPERVISED(name::String) = """
Expand All @@ -84,7 +84,7 @@ using OutlierDetection: $name, fit, score
detector = $name()
X = rand(10, 100)
y = rand([-1,1], 100)
model = fit(detector, X, y)
model = fit(detector, X, y; verbosity=0)
train_scores, test_scores = score(detector, model, X)
```"""

Expand Down

0 comments on commit 606d381

Please sign in to comment.