From 606d381a7d72fa6eb20b65b20b292612104c4ebb Mon Sep 17 00:00:00 2001 From: Petr Mukhachev Date: Sat, 18 Mar 2023 16:45:50 +0300 Subject: [PATCH] correct automatically generated documentation https://github.com/OutlierDetectionJL/OutlierDetection.jl/issues/37 --- src/base.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/base.jl b/src/base.jl index 81f4a37..70d906d 100644 --- a/src/base.jl +++ b/src/base.jl @@ -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) = """ @@ -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) ```"""