Skip to content

Commit

Permalink
fix default link in mlj predict
Browse files Browse the repository at this point in the history
  • Loading branch information
tiemvanderdeure committed Dec 23, 2023
1 parent 1c073fe commit 3a0b72a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mlj_interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function MMI.fit(m::MaxnetBinaryClassifier, verbosity::Int, X, y)
end

function MMI.predict(m::MaxnetBinaryClassifier, (fitresult, decode), Xnew;
link = Cloglog(), clamp = false)
link = CloglogLink(), clamp = false)
p = predict(fitresult, Xnew; link = link, clamp = clamp)
MMI.UnivariateFinite(decode, [1 .- p, p])
end

0 comments on commit 3a0b72a

Please sign in to comment.