How to print defaultdict variable without its type?
Funny solution ! ( works also if you have defaultdict of defaultdict ! )
import json
import pprint
pprint.pprint(json.loads(json.dumps(confusion_proba_dict)))
just transform it to a regular dict
print( dict(confusion_proba_dict) )
but if you are going to use like that, just use a regular dict as you don't use any of the advantages of defaultdict
Python 2:
print dict(confusion_proba_dict)
Python 3:
print(dict(confusion_proba_dict))