Predictions Logistic Regression model using fitglm
Mostrar comentarios más antiguos
I created a logistic regression model with four continuous variables as input, using the function fitglm for binary classification. The functions 'predict' and 'feval' say in their documentation that they are only for linear regression models, but when I apply them on my model they do work. I am unsure how to interpret the output. My questions are:
- Is the output of both predict and feval the probability that the sample belongs to the positive class?
- Is there a different function for model evaluation that is a better fit for my model?
My code:
mdl = fitglm(data,modelspec,'Distribution','binomial');
out = predict(mdl,testdata);
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Linear Predictive Coding en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!