We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 574b696 commit c59bb97Copy full SHA for c59bb97
src/predict.jl
@@ -27,8 +27,8 @@ prediction = Maxnet.predict(bradypus_model, env)
27
"""
28
function predict(m::MaxnetModel, x; link = CloglogLink(), clamp = false)
29
predictors = Tables.columntable(x)
30
- for k in keys(predictors)
31
- k in keys(m.predictor_data) || error("$k is not found in the predictors")
+ for k in keys(m.predictor_data)
+ k in keys(predictors) || error("$k is not found in the predictors")
32
end
33
34
# clamp the predictors
0 commit comments