-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kl_divergence inside QBC does not work #134
Comments
It seems like the avg_kl is empty in this case. Can you make sure that the unlabeled pool is not empty? |
Thanks for this notification. I used some flags and i noticed that the avg_kl ndarray consists of nan values, except one only. Is this the proper function? |
I am using ExtraTrees and SVC, but i tried also LogisticRegression as the example in the corresponding script, but i got the same error. |
Can you use a python debugger to check the value in the variable Thanks. |
The dimensions of the exported proba are: (935, 3, 8) -> (number of unlabeled instances, number of students, numbers of classes) The result of print np.sum(proba[:,0]) , np.sum(proba[:,1]) , np.sum(proba[:,2]) is 935.0 935.0 935.0 |
The probability should also not being 0 in I would suggest using https://github.com/gotcha/ipdb to trace the code and find out where the nan starts to come out. |
I am trying to get appropriate results through the disagreement method of kl_divergence, but an error is returned each time, reporting "mtrand.pyx", line 1121, in mtrand.RnadomState.choice - ValueError: a must be non-empty
Any ideas?
Thanks in advance.
The text was updated successfully, but these errors were encountered: