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
int top_score_neg = (int) ((1.5 * tmodels[i]->nSV[1])/(nr_class-1) ) ;
if( (top_score_neg >= ncnt) )
top_score_neg = tmodels[i]->nSV[1]/ (nr_class-1);
if( (top_score_neg <= 3) )
top_score_neg = tmodels[i]->nSV[1];
My main question:
I've noticed that even when there are enough samples given to the method for training, it can raise the exception Error: Minimum 3 samples are needed for Weibull fitting in class %d. For example, I had the following problem:
Training binary 1-vs-rest WSVM for class 26 with 82 pos and 78 neg examples Error: Minimum 3 samples are needed for Weibull fitting in class 26
Then I realized that what matters is the number of support vectors per class (and not the number of samples given to the method). It means that when the problem is well separable, it probably is going to raise this exception. Right?
If I comment the lines below, the program runs nicely, i.e., the part of the method responsible for calculating the Weibull is not raising any exception. Is it OK to just ignore the part of the code below?
What is the reason for the value 1.5 in the lines below?
libsvm-openset/svm.cpp
Lines 2630 to 2637 in 122298c
My main question:
I've noticed that even when there are enough samples given to the method for training, it can raise the exception
Error: Minimum 3 samples are needed for Weibull fitting in class %d
. For example, I had the following problem:Then I realized that what matters is the number of support vectors per class (and not the number of samples given to the method). It means that when the problem is well separable, it probably is going to raise this exception. Right?
If I comment the lines below, the program runs nicely, i.e., the part of the method responsible for calculating the Weibull is not raising any exception. Is it OK to just ignore the part of the code below?
libsvm-openset/svm.cpp
Lines 2638 to 2645 in 122298c
The text was updated successfully, but these errors were encountered: