db.query(labels=0) returns all data
Created by: siebenkopf
When I query the database with:
db = xbob.db.mnist.Database() training_targets = db.query("training", labels=0)[1] print (training_targets) I get all possible targets, rather than only the targets with label 0. For all other labels, this work as expected.
I guess the problem is that the value 0 is special since 0 evaluates to False when tested, e.g., using if. I will investigate.