Skip to content

Commit

Permalink
fix predict - add entropy to exponent
Browse files Browse the repository at this point in the history
  • Loading branch information
tiemvanderdeure committed Dec 15, 2023
1 parent abed52c commit 1d2d52f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/predict.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function predict(m::MaxnetModel, x; link = CloglogLink())
feature_cols(continuous_predictors, categorical_predictors, fe, 10)
end

exponent = mm * m.coefs .+ m.alpha
exponent = mm * m.coefs .+ m.alpha .+ m.entropy

GLM.linkinv.(Ref(link), exponent)
end

0 comments on commit 1d2d52f

Please sign in to comment.