-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 Fix
CDDetector
including tests and upgrade PyOD (#6)
* upgrade to pyod version 2 * fix cd detector * fix tests to include all models * upgrade package version * fix python version to 3.12 * upgrade ci actions * fix python version to 3.11 * fix ci actions to run only on master push and pr * change to explicit sklearn python module import * remove fixed python version again
- Loading branch information
Showing
6 changed files
with
19 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
channels = ["conda-forge"] | ||
|
||
[deps] | ||
pyod = "=1" | ||
pyod = "=2" | ||
|
||
[deps.llvmlite] | ||
channel = "numba" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name = "OutlierDetectionPython" | ||
uuid = "2449c660-d36c-460e-a68b-92ab3c865b3e" | ||
authors = ["David Muhr <[email protected]> and contributors"] | ||
version = "0.2.2" | ||
version = "0.2.3" | ||
|
||
[deps] | ||
OutlierDetectionInterface = "1722ece6-f894-4ffc-b6be-6ca1174e2011" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,13 @@ | ||
using OutlierDetectionPython | ||
using OutlierDetectionTest | ||
|
||
models = eval.(OutlierDetectionPython.MODELS) | ||
|
||
# Test the metadata of all exported detectors | ||
test_meta.(eval.(OutlierDetectionPython.MODELS)) | ||
test_meta.(models) | ||
|
||
data = TestData() | ||
run_test(detector) = test_detector(detector, data) | ||
|
||
# ABOD | ||
run_test(ABODDetector()) | ||
|
||
# CBLOF | ||
run_test(CBLOFDetector(random_state=0)) | ||
|
||
# COF | ||
run_test(COFDetector()) | ||
|
||
# COPOD | ||
run_test(COPODDetector()) | ||
|
||
# HBOS | ||
run_test(HBOSDetector()) | ||
|
||
# IForest | ||
run_test(IForestDetector(random_state=0)) | ||
|
||
# KNN | ||
run_test(KNNDetector()) | ||
|
||
# LMDD | ||
run_test(LMDDDetector(random_state=0)) | ||
|
||
# LOD | ||
run_test(LODADetector()) | ||
|
||
# LOF | ||
run_test(LOFDetector()) | ||
|
||
# LOCI | ||
run_test(LOCIDetector()) | ||
|
||
# MCD | ||
run_test(MCDDetector(random_state=0)) | ||
|
||
# SVM | ||
run_test(OCSVMDetector()) | ||
|
||
# PCA | ||
run_test(PCADetector(random_state=0)) | ||
|
||
# ROD | ||
run_test(RODDetector()) | ||
|
||
# SOD | ||
run_test(SODDetector()) | ||
|
||
# SOS | ||
run_test(SOSDetector()) | ||
# Test all models with default parameters | ||
run_test.([model() for model in models]) |