Borrar filtros
Borrar filtros

Loss function or error rate using logistical regression

1 visualización (últimos 30 días)
Dhruv Ghulati
Dhruv Ghulati el 25 de Dic. de 2015
Hi there,
I am trying to perform logistic regression using a test set and training set.
My loss rate should be simply
errs = logisticPred ~= yTest;
testErrRateLogistic = 100*sum(errs)/numel(errs);
However, I don't know how to get the y values obtained from a logistic regression classification in MATLAB? Nothing in http://uk.mathworks.com/help/stats/mnrfit.html tells you anything about how to obtain the predictions, only the p values and F statistics for the overall model.
I have a predictor matrix of 6 variables, and a categorical response matrix that has only 2 categories (binary classification).

Respuestas (0)

Categorías

Más información sobre Statistics and Machine Learning Toolbox en Help Center y File Exchange.

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by