srome / pykliep

A density ratio estimator package for python using the KLIEP algorithm.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

pankaj-kvhld opened this issue · comments

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)

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

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

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