Raschka-research-group / coral-cnn

Rank Consistent Ordinal Regression for Neural Networks with Application to Age Estimation
https://www.sciencedirect.com/science/article/pii/S016786552030413X
MIT License
335 stars 62 forks source link

curious about the feature #35

Closed annoyc closed 3 years ago

annoyc commented 3 years ago

if I change the num_classes to double counts, like num_classes=10, and I change it to num_classes= 20. while training, the probas with a sample in the end would become like this [0.9617, 0.9617, 0.9601, 0.9601, 0.9568, 0.9568, 0.9448, 0.9448, 0.9117, 0.9117, 0.8685, 0.8685, 0.8398, 0.8398, 0.8279, 0.8279, 0.8223, 0.8223]. why it is the same value along, I thought it would be 18 different value each other,,,I want to know what decide this and how to become what i expect...

rasbt commented 3 years ago

When I understand correctly, you have a fixed dataset with 10 classes but then set the number of classes in CORAL to 20? If you have class labels 0, 2, 4, 6, ... then this is probably what I would expect in the results.

Say the model learns to predict

and it has never seen data for p(y > 1). In this case, it makes sense that the value is

What value would you have expected? A value between 0.9617 and 0.9601?

annoyc commented 3 years ago

thanks for reply so quickly, yes, that's exactly what I thought.. i just dont know why its the same as p(y>0) = p(y>1)...