From 089bc9cc7d94fb7c0b55f84ea037a70eaeba229d Mon Sep 17 00:00:00 2001 From: kayzliu Date: Sat, 25 Jun 2022 00:56:50 -0700 Subject: [PATCH] update doc --- pygod/utils/utility.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/pygod/utils/utility.py b/pygod/utils/utility.py index ffcc579..87f3529 100644 --- a/pygod/utils/utility.py +++ b/pygod/utils/utility.py @@ -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 @@ -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: