Skip to content

Commit 3f7ebbd

Browse files
fixes
1 parent 39ce482 commit 3f7ebbd

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/abstract_datasets.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ end
4545
_summary(x) = x
4646
_summary(x::Symbol) = ":$x"
4747
_summary(x::Union{Dict, AbstractArray, DataFrame}) = summary(x)
48-
_summary(x::Union{Tuple, NamedTuple}) = map(summary, x)
48+
_summary(x::Union{Tuple, NamedTuple}) = map(_summary, x)
4949
_summary(x::BitVector) = summary(x) * " with $(count(x)) trues"
5050

5151
"""

src/datasets/graphs/reddit.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ This dataset contains 232,965 posts.
2727
The first 20 days are used for training and the remaining days for testing (with 30% used for validation).
2828
Each node is represented by a 602 word vector.
2929
30-
Use `full=false` to lod only a subsample of the dataset.
30+
Use `full=false` to load only a subsample of the dataset.
3131
3232
3333
# References

src/graph.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ import Graphs, MLDatasets
5050
5151
## From Graphs.jl to MLDatasets.Graphs
5252
53-
# A directed graph
53+
# From a directed graph
5454
g = Graphs.erdos_renyi(10, 20, is_directed=true)
5555
s = [e.src for e in Graphs.edges(g)]
5656
t = [e.dst for e in Graphs.edges(g)]
5757
mlg = MLDatasets.Graph(num_nodes=10, edge_index=(s, t))
5858
59-
# An undirected graphs
59+
# From an undirected graph
6060
g = Graphs.erdos_renyi(10, 20, is_directed=false)
6161
s = [e.src for e in Graphs.edges(g)]
6262
t = [e.dst for e in Graphs.edges(g)]
@@ -65,8 +65,8 @@ mlg = MLDatasets.Graph(num_nodes=10, edge_index=(s, t))
6565
6666
# From Graphs.jl to MLDatasets.Graphs
6767
s, t = mlg.edge_index
68-
g = Graphs.DiGraph()
69-
for (i, j) in zip(s, t):
68+
g = Graphs.DiGraph(mlg.num_nodes)
69+
for (i, j) in zip(s, t)
7070
Graphs.add_edge!(g, i, j)
7171
end
7272
```

0 commit comments

Comments
 (0)