Open tsiakmaki opened 4 years ago
I think the nan should come from here, if predict_proba from the classifier outputs a 0 probability, the kldivergence will have a nan value https://github.com/ntucllab/libact/blob/c3babc89ee4cc7672539de46f5a9267d16dccc1b/libact/query_strategies/query_by_committee.py#L156
Hi. thank you for your contribution. When testing the QueryByCommittee and the 'kl_divergence' method, i get the above error:
In my case, it seems that
avg_kl
https://github.com/ntucllab/libact/blob/master/libact/query_strategies/query_by_committee.py#L205 containsNaN
, and as such the max is nan. But also there are cases where all values areNan
, and i get theJust a notice, in case it makes sense to anyone else.