Skip to content

Commit f59d191

Browse files
start implementing TUDataset
1 parent 07c8d36 commit f59d191

File tree

12 files changed

+119
-21
lines changed

12 files changed

+119
-21
lines changed

docs/src/datasets/SVHN2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ SVHN2.classnames
128128
SVHN2.convert2image
129129
```
130130

131-
## References
131+
### References
132132

133133
- **Authors**: Yuval Netzer, Tao Wang, Adam Coates, Alessandro Bissacco, Bo Wu, Andrew Y. Ng
134134

docs/src/datasets/UD_English.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ devdata = UD_English.devdata()
1111
testdata = UD_English.devdata()
1212
```
1313

14-
## Data Size
14+
# Data Size
1515

1616
| | Train x | Train y | Test x | Test y |
1717
|:--:|:-------:|:-------:|:------:|:------:|

src/BostonHousing/BostonHousing.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Harrison and Rubinfeld do not mention any censoring.
4444
The data file stored in this repo is a copy of the This is a copy of UCI ML housing dataset.
4545
https://archive.ics.uci.edu/ml/machine-learning-databases/housing/
4646
47-
## Interface
47+
# Interface
4848
4949
- [`BostonHousing.features`](@ref)
5050
- [`BostonHousing.targets`](@ref)

src/CiteSeer/CiteSeer.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ The dataset is designed for the node classification task.
1010
The task is to predict the category of certain paper.
1111
The dataset is retrieved from Ref. [2].
1212
13-
## Interface
13+
# Interface
1414
1515
- [`CiteSeer.dataset`](@ref)
1616
17-
## References
17+
# References
1818
1919
[1]: [Deep Gaussian Embedding of Graphs: Unsupervised Inductive Learning via Ranking](https://arxiv.org/abs/1707.03815)
2020
[2]: [Planetoid](https://github.com/kimiyoung/planetoid)
@@ -63,7 +63,7 @@ the reverse of each edge and the graph will be undirected.
6363
6464
See also [`CiteSeer`](@ref).
6565
66-
## Usage Examples
66+
# Usage Examples
6767
6868
```julia
6969
using MLDatasets: CiteSeer

src/Cora/Cora.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The dataset is designed for the node classification task.
1111
The task is to predict the category of certain paper.
1212
The dataset is retrieved from Ref. [2].
1313
14-
## Statistics
14+
# Statistics
1515
1616
- Nodes: 2708
1717
- Edges: 10556
@@ -24,11 +24,11 @@ The dataset is retrieved from Ref. [2].
2424
The split is the one used in the original paper [1] and
2525
doesn't consider all nodes.
2626
27-
## Interface
27+
# Interface
2828
2929
- [`Cora.dataset`](@ref)
3030
31-
## References
31+
# References
3232
3333
[1]: [Deep Gaussian Embedding of Graphs: Unsupervised Inductive Learning via Ranking](https://arxiv.org/abs/1707.03815)
3434
[2]: [Planetoid](https://github.com/kimiyoung/planetoid
@@ -78,7 +78,7 @@ the reverse of each edge and the graph will be undirected.
7878
7979
See also [`Cora`](@ref).
8080
81-
## Usage Examples
81+
# Usage Examples
8282
8383
```juliarepl
8484
using MLDatasets: Cora

src/FashionMNIST/FashionMNIST.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ examples. Each example is a 28x28 grayscale image, associated
1212
with a label from 10 classes. It can serve as a drop-in
1313
replacement for MNIST.
1414
15-
## Interface
15+
# Interface
1616
1717
- [`FashionMNIST.traintensor`](@ref), [`FashionMNIST.trainlabels`](@ref), [`FashionMNIST.traindata`](@ref)
1818
- [`FashionMNIST.testtensor`](@ref), [`FashionMNIST.testlabels`](@ref), [`FashionMNIST.testdata`](@ref)
1919
20-
## Utilities
20+
# Utilities
2121
2222
- [`FashionMNIST.download`](@ref)
2323

src/Iris/Iris.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ The module retrieves the data from the [UCI Machine Learning Repository](https:/
1313
1414
NOTE: no pre-defined train-test split for this dataset, `features` and `labels` return the whole dataset.
1515
16-
## Interface
16+
# Interface
1717
1818
- [`Iris.features`](@ref)
1919
- [`Iris.labels`](@ref)
2020
21-
## Utilities
21+
# Utilities
2222
2323
- [`Iris.download`](@ref)
2424
"""

src/MLDatasets.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ include("planetoid.jl")
5151
include("Cora/Cora.jl")
5252
include("PubMed/PubMed.jl")
5353
include("CiteSeer/CiteSeer.jl")
54+
include("TUDataset/TUDataset.jl")
5455

5556
function __init__()
5657
# initialize optional dependencies

src/MNIST/MNIST.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ used in small-scale machine learning experiments. It contains
1212
pixel gray-scale image that depicts a handwritten version of 1 of
1313
the 10 possible digits (0-9).
1414
15-
## Interface
15+
# Interface
1616
1717
- [`MNIST.traintensor`](@ref), [`MNIST.trainlabels`](@ref), [`MNIST.traindata`](@ref)
1818
- [`MNIST.testtensor`](@ref), [`MNIST.testlabels`](@ref), [`MNIST.testdata`](@ref)
1919
20-
## Utilities
20+
# Utilities
2121
2222
- [`MNIST.download`](@ref)
2323
- [`MNIST.convert2image`](@ref)

src/PubMed/PubMed.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ The dataset is designed for the node classification task.
1010
The task is to predict the category of certain paper.
1111
The dataset is retrieved from Ref. [2].
1212
13-
## Interface
13+
# Interface
1414
1515
- [`PubMed.dataset`](@ref)
1616
17-
## References
17+
# References
1818
1919
[1]: [Deep Gaussian Embedding of Graphs: Unsupervised Inductive Learning via Ranking](https://arxiv.org/abs/1707.03815)
2020
[2]: [Planetoid](https://github.com/kimiyoung/planetoid)
@@ -63,7 +63,7 @@ the reverse of each edge and the graph will be undirected.
6363
6464
See also [`PubMed`](@ref).
6565
66-
## Usage Examples
66+
# Usage Examples
6767
6868
```julia
6969
using MLDatasets: PubMed

0 commit comments

Comments
 (0)