From 17be3bc76a5dc0f4860dc48eb0a59f3f866e3bb5 Mon Sep 17 00:00:00 2001 From: "Anthony D. Blaom" Date: Tue, 4 Feb 2020 15:27:51 +1300 Subject: [PATCH 1/2] fix logging test --- test/learning_curves.jl | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/test/learning_curves.jl b/test/learning_curves.jl index cb8fed3..1acd96b 100644 --- a/test/learning_curves.jl +++ b/test/learning_curves.jl @@ -26,19 +26,15 @@ y = 2*x1 .+ 5*x2 .- 3*x3 .+ 0.2*rand(100); r_lambda = range(ensemble, :(atom.lambda), lower=0.0001, upper=0.1, scale=:log10) - # Something wrong with @test_logs in julia 1.1.1 and - # 1.0.5. Getting "Internal error: encountered unexpected error in - # runtime: MethodError(f=typeof(Core.Compiler.fieldindex)(), - # args=(MLJTuning.DeterministicTunedModel{T, M, R} where R, - # :acceleration, false), world=0x0000000000000eb9)" - if accel == CPU1() && VERSION > v"1.2" - curve = @test_logs((:info, r"No measure"), - (:info, r"Training"), - learning_curve(mach; range=r_lambda, - acceleration=accel)) + if accel == CPU1() + curve = @test_logs((:info, r"No measure"), + (:info, r"Training"), + (:info, r"Attempting"), + learning_curve(mach; range=r_lambda, + acceleration=accel)) else curve = learning_curve(mach; range=r_lambda, - acceleration=accel) + acceleration=accel) end @test curve isa NamedTuple{(:parameter_name, :parameter_scale, From 22e7f3cd67d0f99e0cb390580b68e011f0b9e99b Mon Sep 17 00:00:00 2001 From: "Anthony D. Blaom" Date: Tue, 4 Feb 2020 15:28:31 +1300 Subject: [PATCH 2/2] bump to 0.1.2 --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 1d5002b..3b2170b 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "MLJTuning" uuid = "03970b2e-30c4-11ea-3135-d1576263f10f" authors = ["Anthony D. Blaom "] -version = "0.1.1" +version = "0.1.2" [deps] ComputationalResources = "ed09eef8-17a6-5b46-8889-db040fac31e3"