Skip to content

Commit 10e307a

Browse files
Update README.md
1 parent 3362f56 commit 10e307a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,22 +32,22 @@ Dataset({
3232
# Indexing starts with 1.
3333
# Python types are returned by default.
3434
julia> train_data[1]
35-
Python dict: {'image': <PIL.PngImagePlugin.PngImageFile image mode=L size=28x28 at 0x2B64E2E90>, 'label': 5}
35+
Python: {'image': <PIL.PngImagePlugin.PngImageFile image mode=L size=28x28 at 0x7F04DE661CD0>, 'label': 5}
3636

3737
julia> length(train_data)
3838
60000
3939

4040
# Now we set the julia format
4141
julia> train_data = load_dataset("mnist", split = "train").with_format("julia");
4242

43-
# Returned observations are julia objects
43+
# Returned observations are now julia objects
4444
julia> train_data[1]
4545
Dict{String, Any} with 2 entries:
4646
"label" => 5
47-
"image" => ColorTypes.Gray{FixedPointNumbers.N0f8}[Gray{N0f8}(0.0) Gray{N0f8}(0.0) Gray{N0f8}(0.0) Gray{N0f8}(0.0); Gray{N
47+
"image" => Gray{N0f8}[Gray{N0f8}(0.0) Gray{N0f8}(0.0) Gray{N0f8}(0.0) Gray{N0f8}(0.0); Gray{N0f8}(0.0) Gray{N0f8}(0.0) Gray{N0f8}(0.0) Gray{N0f8}(0.0); ; Gray{N0f8}(0.0) Gray{N0f8}(0.0)
4848

4949
julia> train_data[1:2]
5050
Dict{String, Vector} with 2 entries:
5151
"label" => [5, 0]
52-
"image" => Base.ReinterpretArray{Gray{N0f8}, 2, UInt8, Matrix{UInt8}, false}[[Gray{N0f8}(0.0) Gray{N0f8}(0.0) Gray{N0f8}(0.0) Gra
52+
"image" => ReinterpretArray{Gray{N0f8}, 2, UInt8, Matrix{UInt8}, false}[[Gray{N0f8}(0.0) Gray{N0f8}(0.0) Gray{N0f8}(0.0) Gray{N0f8}(0.0); Gray{N0f8}(0.0) Gray{N0f8}(0.0) Gray{N0f8}(0.0) Gra
5353
```

0 commit comments

Comments
 (0)