|
75 | 75 | Flux.train!(loss, [θ], ncycle(d, 10), Descent(0.1))
|
76 | 76 | @test norm(θ .- 1) < 1e-10
|
77 | 77 | end
|
78 |
| - |
79 |
| -@testset "CMUDict" begin |
80 |
| - @test cmudict()["CATASTROPHE"] == :[K,AH0,T,AE1,S,T,R,AH0,F,IY0].args |
81 |
| - |
82 |
| - @test length(CMUDict.phones()) == 39 |
83 |
| - |
84 |
| - @test length(CMUDict.symbols()) == 84 |
85 |
| -end |
86 |
| - |
87 |
| -@testset "MNIST" begin |
88 |
| - @test MNIST.images()[1] isa Matrix |
89 |
| - @test MNIST.labels() isa Vector{Int64} |
90 |
| -end |
91 |
| - |
92 |
| -@testset "FashionMNIST" begin |
93 |
| - @test FashionMNIST.images()[1] isa Matrix |
94 |
| - @test FashionMNIST.labels() isa Vector{Int64} |
95 |
| -end |
96 |
| - |
97 |
| -@testset "Sentiment" begin |
98 |
| - @test Data.Sentiment.train() isa Vector{Data.Tree{Any}} |
99 |
| -end |
100 |
| - |
101 |
| -@testset "Iris" begin |
102 |
| - @test Iris.features() isa Matrix |
103 |
| - @test size(Iris.features()) == (4,150) |
104 |
| - |
105 |
| - @test Iris.labels() isa Vector{String} |
106 |
| - @test size(Iris.labels()) == (150,) |
107 |
| -end |
108 |
| - |
109 |
| - |
110 |
| -@testset "Housing" begin |
111 |
| - @test Housing.features() isa Matrix # test broken due to SSL certifate expiration problem |
112 |
| - @test size(Housing.features()) == (506, 13) |
113 |
| - |
114 |
| - @test Housing.targets() isa Array{Float64} |
115 |
| - @test size(Housing.targets()) == (506, 1) |
116 |
| -end |
117 |
| - |
118 |
| -@testset "Tree show" begin |
119 |
| - # testcase for issue #1354 |
120 |
| - # testing that methods(Base.show) does not throw. Having something more specific would be too fragile |
121 |
| - buf = IOBuffer() |
122 |
| - Base.show(buf, filter(x->x.module == Flux, methods(Base.show).ms)) |
123 |
| - str_repr = String(take!(buf)) |
124 |
| - @test !isempty(str_repr) |
125 |
| -end |
0 commit comments