srome / pykliep

A density ratio estimator package for python using the KLIEP algorithm.
MIT License
105 stars 22 forks source link

AttributeError: 'dict' object has no attribute 'iteritems' #4

Closed pankaj-kvhld closed 5 years ago

pankaj-kvhld commented 5 years ago

As I execute:

kliep.fit(X_train, X_test)

AttributeError: 'dict' object has no attribute 'iteritems' come. How to resolve this.

Bothe X_train and X_test sets have shape of (5000, 256)

rafmacalaba commented 5 years ago

dict.iteritems() was removed in python3 in favor of dict.items(), considering this was built 2 years ago.

srome commented 5 years ago

Good point. It may have even originally been written on python 2. Mind submitting a pull request?

rafmacalaba commented 5 years ago

Yeah sure, I'll check when I have the lux of time.