You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AFAIR:
In the examples that I used it wasn't very useful because several choices had no predicted class.
to get predicted classification: I used predicted.argmax(1) the choice with the highest prediction
How many observations do you have for the different levels, especially in the last 3?
my only guess is that there are few observations with y == "5.dllm"
It looks like we are not protecting that the prob becones zero.
I think we will need to add a lower bound to force a minimal value on the constants that so we have strictly increasing thresholds.
Can you add more of the earlier lines of the traceback?
The problem might be already in finding the start_params.
you could try using fit(start_params= ...) with start_params similar to the coef in summary, except replacing -inf by, for example, -5
3.dilim 1152
2.dilim 590
1.dilim 365
4.dilim 210
5.dilim 50
Here , you could want to ordinal levels. But ı think if ı remove last levels issue is fixed.
Activity
ucmazsinan commentedon Feb 18, 2022
here ı dont want to get probability, instead classification labeled data
josef-pkt commentedon Feb 18, 2022
I have it somewhere (?) but haven't found it yet.
AFAIR:
In the examples that I used it wasn't very useful because several choices had no predicted class.
to get predicted classification: I used
predicted.argmax(1)the choice with the highest predictionmodel.endog should be the integer labeled choices
josef-pkt commentedon Feb 18, 2022
the results class has a
OrderedResults.pred_tablemethod that returns a pandas dataframe (but without text labels.https://www.statsmodels.org/dev/generated/statsmodels.miscmodels.ordinal_model.OrderedResults.pred_table.html
ucmazsinan commentedon Feb 19, 2022
You say meant, argmax my splitting test data set,
and pred_table show all predicted results
josef-pkt commentedon Feb 19, 2022
we don't have out of sample measures in the models.
you can use the code https://www.statsmodels.org/dev/_modules/statsmodels/miscmodels/ordinal_model.html#OrderedResults.pred_table
and
replace endog by y_test
and add x_test to predict
ucmazsinan commentedon Feb 22, 2022
thanks sir, for your support.

if ı want to draw roc-curve ı should use this table either which outputs.
josef-pkt commentedon Feb 22, 2022
I never looked at multiclass AUC
We don't have direct support for classification in statsmodels.
We are estimating predicted probabilities. How do convert those to a decision for classification is up to the user.
A quick search finds some crossvalidated answers
https://stats.stackexchange.com/questions/209374/with-multinomial-regression-how-to-predict-an-event-and-get-the-roc-curve
https://stats.stackexchange.com/questions/2151/how-to-plot-roc-curves-in-multiclass-classification
The same will apply for ordinal models, except that we have some additional measures on ordered probabilities like probability residuals.
ucmazsinan commentedon Apr 3, 2022
Hi Sir,

Again me ı have a problem about doing classification. giving error messages and ı try the solve using some parameters or different code blocks :
here
https://www.statsmodels.org/dev/generated/statsmodels.discrete.discrete_model.Logit.fit.html
and here
https://www.statsmodels.org/dev/examples/notebooks/generated/ordinal_regression.html
but ı cant solve, what ı should ı do , solve the problem.
josef-pkt commentedon Apr 4, 2022
How many observations do you have for the different levels, especially in the last 3?
my only guess is that there are few observations with y == "5.dllm"
It looks like we are not protecting that the prob becones zero.
I think we will need to add a lower bound to force a minimal value on the constants that so we have strictly increasing thresholds.
Can you add more of the earlier lines of the traceback?
The problem might be already in finding the start_params.
you could try using
fit(start_params= ...)with start_params similar to thecoefin summary, except replacing -inf by, for example, -5ucmazsinan commentedon Apr 4, 2022
3.dilim 1152
2.dilim 590
1.dilim 365
4.dilim 210
5.dilim 50
Here , you could want to ordinal levels. But ı think if ı remove last levels issue is fixed.
ucmazsinan commentedon Apr 4, 2022
so how do ı get rmse , ı have predicted probability. Could I find actual probability.

ucmazsinan commentedon Apr 5, 2022
Can ı use this code for prections isntead of confusion matrix