Skip to content

Commit

Permalink
Merge pull request #36 from pygod-team/dev
Browse files Browse the repository at this point in the history
hot fix doc for v0.3.0
  • Loading branch information
kayzliu authored Jun 25, 2022
2 parents 7108258 + 089bc9c commit 7de5d92
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions pygod/utils/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,6 @@ def load_data(name, cache_dir=None):
- 2: structural outlier only
- 3: both contextual outlier and structural outlier
Examples to convert the labels are as follows:
>>> y = data.y.bool() # binary labels (inlier/outlier)
>>> yc = data.y >> 0 & 1 # contextual outliers
>>> ys = data.y >> 1 & 1 # structural outliers
Parameters
----------
name : str
Expand All @@ -163,6 +158,9 @@ def load_data(name, cache_dir=None):
--------
>>> from pygod.utils import load_data
>>> data = load_data(name='weibo') # in PyG format
>>> y = data.y.bool() # binary labels (inlier/outlier)
>>> yc = data.y >> 0 & 1 # contextual outliers
>>> ys = data.y >> 1 & 1 # structural outliers
"""

if cache_dir is None:
Expand Down

0 comments on commit 7de5d92

Please sign in to comment.