I’m trying to use a Logistic Regression algorithm to find a classification model, but i get stuck with an error “failure to converge after 30 iterations” i have changed the maxIter arg to an higher value, but the error only disappears with a very high value of iterations, in the small example below with a population of 1000 elements and with a very simple implicit model i need 2000 iterations! Am i doing something wrong?

Blockquote

df=DataFrame()

n=1000

df[:x]=rand(n)

df[:y]=rand(n)

df[:z]=rand(n)

df[:valid]=map((x,y)->(x2-y6)>0? true : false,df[:x],df[:y])

glm(@formula(valid ~ x+y+z), df, Binomial(), LogitLink())