Skip to content

Commit

Permalink
Merge pull request #513 from alan-turing-institute/dev
Browse files Browse the repository at this point in the history
For a 0.17.2 release
  • Loading branch information
ablaom authored Feb 3, 2021
2 parents 11ef61d + 17f26fe commit 6d3b404
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "MLJBase"
uuid = "a7f614a8-145f-11e9-1d2a-a57a1082229d"
authors = ["Anthony D. Blaom <[email protected]>"]
version = "0.17.1"
version = "0.17.2"

[deps]
CategoricalArrays = "324d7699-5711-5eae-9e2f-1d82baa6b597"
Expand Down
2 changes: 2 additions & 0 deletions src/composition/learning_networks/machines.jl
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ function model_supertype(signature)

end

caches_data_by_default(::Type{<:Surrogate}) = false

function machine(model::Surrogate, _sources::Source...; pair_itr...)

# named tuple, such as `(predict=yhat, transform=W)`:
Expand Down
4 changes: 4 additions & 0 deletions test/composition/learning_networks/machines.jl
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ MLJBase.predict(model::DummyClusterer, fitresult, Xnew) =
# supervised - predict_mode
fit!(mach)
@test predict_mode(mach, X) == mode.(predict(mach, X))
@test predict(mach, rows=1:2) == predict(mach, rows=:)[1:2]

# evaluate a learning machine
evaluate!(mach, measure=LogLoss())

# supervised - predict_median, predict_mean
X, y = make_regression(20)
Expand Down
6 changes: 3 additions & 3 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,6 @@ end
@test include("hyperparam/one_dimensional_range_methods.jl")
end

@testset "openml" begin
@test include("openml.jl")
end
# @testset "openml" begin
# @test include("openml.jl")
# end

0 comments on commit 6d3b404

Please sign in to comment.