r"""Citeseer citation network dataset. Nodes mean scientific publications and edges mean citation relationships. Each node has a predefined feature with 3703 dimensions. The dataset is designed for the node classification task. The task is to predict the category of certain
| 416 | |
| 417 | |
| 418 | class CiteseerGraphDataset(CitationGraphDataset): |
| 419 | r"""Citeseer citation network dataset. |
| 420 | |
| 421 | Nodes mean scientific publications and edges |
| 422 | mean citation relationships. Each node has a |
| 423 | predefined feature with 3703 dimensions. The |
| 424 | dataset is designed for the node classification |
| 425 | task. The task is to predict the category of |
| 426 | certain publication. |
| 427 | |
| 428 | Statistics: |
| 429 | |
| 430 | - Nodes: 3327 |
| 431 | - Edges: 9228 |
| 432 | - Number of Classes: 6 |
| 433 | - Label Split: |
| 434 | |
| 435 | - Train: 120 |
| 436 | - Valid: 500 |
| 437 | - Test: 1000 |
| 438 | |
| 439 | Parameters |
| 440 | ----------- |
| 441 | raw_dir : str |
| 442 | Raw file directory to download/contains the input data directory. |
| 443 | Default: ~/.dgl/ |
| 444 | force_reload : bool |
| 445 | Whether to reload the dataset. Default: False |
| 446 | verbose : bool |
| 447 | Whether to print out progress information. Default: True. |
| 448 | reverse_edge : bool |
| 449 | Whether to add reverse edges in graph. Default: True. |
| 450 | transform : callable, optional |
| 451 | A transform that takes in a :class:`~dgl.DGLGraph` object and returns |
| 452 | a transformed version. The :class:`~dgl.DGLGraph` object will be |
| 453 | transformed before every access. |
| 454 | reorder : bool |
| 455 | Whether to reorder the graph using :func:`~dgl.reorder_graph`. Default: False. |
| 456 | |
| 457 | Attributes |
| 458 | ---------- |
| 459 | num_classes: int |
| 460 | Number of label classes |
| 461 | |
| 462 | Notes |
| 463 | ----- |
| 464 | The node feature is row-normalized. |
| 465 | |
| 466 | In citeseer dataset, there are some isolated nodes in the graph. |
| 467 | These isolated nodes are added as zero-vecs into the right position. |
| 468 | |
| 469 | Examples |
| 470 | -------- |
| 471 | >>> dataset = CiteseerGraphDataset() |
| 472 | >>> g = dataset[0] |
| 473 | >>> num_class = dataset.num_classes |
| 474 | >>> |
| 475 | >>> # get node feature |
no outgoing calls
no test coverage detected