class_docstr: Reddit dataset implementation.
  
  Args:
  
      normalize (bool): Whether to normalize feature.
  
      symmetry (bool): Whether to create symmetry edges.
  
  Attributes:
  
      graph (pgl.Graph): The :code:`Graph` data object.
  
      feature (numpy.ndarray): The feature of nodes.
  
      num_classes (int): Number of classes.
  
      train_index (numpy.ndarray): The index for nodes in training set.
  
      val_index (numpy.ndarray): The index for nodes in validation set.
  
      test_index (numpy.ndarray): The index for nodes in test set.
  
      train_label (numpy.ndarray): The label for nodes in training set.
  
      val_label (numpy.ndarray): The label for nodes in validation set.
  
      test_label (numpy.ndarray): The label for nodes in test set.
class_docstr_tok: ["Reddit","dataset","implementation",".","Args",":","normalize","(","bool",")",":","Whether","to","normalize","feature",".","symmetry","(","bool",")",":","Whether","to","create","symmetry","edges",".","Attributes",":","graph","(","pgl.Graph",")",":","The",":","code",":","`","Graph","`","data","object",".","feature","(","numpy.ndarray",")",":","The","feature","of","nodes",".","num_classes","(","int",")",":","Number","of","classes",".","train_index","(","numpy.ndarray",")",":","The","index","for","nodes","in","training","set",".","val_index","(","numpy.ndarray",")",":","The","index","for","nodes","in","validation","set",".","test_index","(","numpy.ndarray",")",":","The","index","for","nodes","in","test","set",".","train_label","(","numpy.ndarray",")",":","The","label","for","nodes","in","training","set",".","val_label","(","numpy.ndarray",")",":","The","label","for","nodes","in","validation","set",".","test_label","(","numpy.ndarray",")",":","The","label","for","nodes","in","test","set","."]
code: def __init__(self, normalize=True, symmetry=True):
      download_help_str = r"""
              data from https://github.com/matenure/FastGCN/issues/8
  
              You can download from Aistudio:
                  https://aistudio.baidu.com/aistudio/datasetdetail/39616
              or google drive:
              reddit_adj.npz: https://drive.google.com/open?id=174vb0Ws7Vxk_QTUtxqTgDHSQ4El4qDHt
              reddit.npz: https://drive.google.com/open?id=19SphVl_Oe8SJ1r87Hr5a6znx3nJu1F2J
              """
      self.path = get_default_data_dir("reddit")
      if not os.path.exists(self.path):
          raise ValueError(
              "\n Please download the dataset to \n "
              " \t{} \n before use it.\n More information about download: {}".format(
                  self.path, download_help_str
              )
          )
      self._load_data(normalize, symmetry)
  
imports: import os
  import io
  import sys
  import numpy
  import pickle
  from pgl.graph import Graph
label_desc: Use image node_id 1 to create a new RedditDataset object from inherited base classes: object with example: obj = RedditDataset(normalize, symmetry)