Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Yue Zhao
pyod
Commits
eb3a920d
Commit
eb3a920d
authored
4 years ago
by
Yue Zhao
Browse files
Options
Download
Email Patches
Plain Diff
improve copod plot
parent
4b2ab157
master
development
github/fork/Dobatymo/deprecated-use-of-setuptools
github/fork/KulikDM/pythresh2
github/fork/juliamariglia/master
github/fork/luismavs/check_array
github/fork/madriss/development
github/fork/tam17aki/development
v1.0.8
v1.0.7
v1.0.6
v1.0.5
v1.0.4
v1.0.3
v1.0.2
v1.0.1
v1.0.0
v0.9.9
v0.9.8
v0.9.7
v0.9.6
v0.9.5
v0.9.4
V0.9.3
V0.9.2
V0.9.1
V0.9.0
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGES.txt
+1
-0
CHANGES.txt
pyod/models/copod.py
+6
-2
pyod/models/copod.py
with
7 additions
and
2 deletions
+7
-2
CHANGES.txt
+
1
-
0
View file @
eb3a920d
...
...
@@ -128,6 +128,7 @@ v<0.8.9>, <06/10/2021> -- Add PyTorch AutoEncoder
v<0.8.9>, <06/11/2021> -- Fix LMDD parameter (#307)
v<0.9.0>, <06/20/2021> -- Add clone test for models.
v<0.9.0>, <07/03/2021> -- ROD hot fix (#316).
v<0.9.0>, <07/04/2021> -- Improve COPOD plot with colunms parameter.
...
...
This diff is collapsed.
Click to expand it.
pyod/models/copod.py
+
6
-
2
View file @
eb3a920d
...
...
@@ -226,6 +226,9 @@ class COPOD(BaseDetector):
ind : int
The index of the data point one wishes to obtain
a dimensional outlier graph for.
columns : list
Specify a list of features/dimensions for plotting.
cutoffs : list of floats in (0., 1), optional (default=[0.95, 0.99])
The significance cutoff bands of the dimensional outlier graph.
...
...
@@ -272,6 +275,7 @@ class COPOD(BaseDetector):
index
=
ind
+
1
,
label
=
label
))
plt
.
legend
()
plt
.
show
()
return
self
.
O
.
loc
[
ind
,
columns
],
self
.
O
.
loc
[:,
columns
].
quantile
(
q
=
cutoffs
[
0
],
axis
=
0
),
self
.
O
.
loc
[:,
columns
].
quantile
(
return
self
.
O
.
loc
[
ind
,
columns
],
self
.
O
.
loc
[:,
columns
].
quantile
(
q
=
cutoffs
[
0
],
axis
=
0
),
self
.
O
.
loc
[:,
columns
].
quantile
(
q
=
cutoffs
[
1
],
axis
=
0
)
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets