Predictions Logistic Regression model using fitglm
Show older comments
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);
Accepted Answer
More Answers (0)
Categories
Find more on Linear Predictive Coding in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!