Commit 33d195ec authored by DURIF Ghislain's avatar DURIF Ghislain

fix deprecation: transform 1x1 array into a number

parent bc1aef32
......@@ -240,7 +240,7 @@ for (j in 1:ntrain)
#constante modification
cte <- cte+sXtrain[j,]%*%gamma
expcte <- exp(cte)
expcte <- as.numeric(exp(cte))
gamma <- gamma*expcte/(1+expcte)-(gamma*expcte)*expcte/(1+expcte)^2
BETA <- BETA + gamma/ntrain
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment