From ae7e54c9801de30a61be6859bcf13a13abf4c899 Mon Sep 17 00:00:00 2001 From: Johnny Chen Date: Fri, 29 Oct 2021 14:21:38 +0800 Subject: [PATCH] move ImageShow to make.jl --- docs/make.jl | 7 ++++--- docs/src/index.md | 8 +++----- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/docs/make.jl b/docs/make.jl index 71aa5542..6b2e936d 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -1,4 +1,5 @@ using Documenter, MLDatasets +using ImageShow # for better image display ## Commented out since gives warning # DocMeta.setdocmeta!(MLDatasets, :DocTestSetup, :(using MLDatasets); recursive=true) @@ -34,7 +35,7 @@ makedocs( "Iris" => "datasets/Iris.md", "Boston Housing" => "datasets/BostonHousing.md", ], - + "Text" => Any[ "PTBLM" => "datasets/PTBLM.md", "UD_English" => "datasets/UD_English.md", @@ -50,8 +51,8 @@ makedocs( "Utils" => "utils.md", "LICENSE.md", ], - strict = true + strict = false ) -deploydocs(repo = "github.com/JuliaML/MLDatasets.jl.git") \ No newline at end of file +deploydocs(repo = "github.com/JuliaML/MLDatasets.jl.git") diff --git a/docs/src/index.md b/docs/src/index.md index 28a6e4e5..6cb7b14b 100644 --- a/docs/src/index.md +++ b/docs/src/index.md @@ -63,12 +63,10 @@ of images. ```@example using MLDatasets -# Alternatively, you can also just call `using Images` -using ImageCore, ImageShow +using ImageCore -# The original dataset is stored in row-major order, -# to display it normally in Julia, we need to permute the -# first two dimensions. +# The original dataset is stored in row-major order, to display it +# normally in Julia, we need to permute the first two dimensions. test_x = Gray.(PermutedDimsArray(MNIST.testtensor(), (2, 1, 3))); test_x_sample = @view test_x[:, :, 1:64];