marcotcr / anchor

Code for "High-Precision Model-Agnostic Explanations" paper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug on utils.py Neighbors

hereismari opened this issue · comments

if word.prob < -15:
--> 337                     queries += [w]
    338                 by_similarity = sorted(
    339                     queries, key=lambda w: word.similarity(w), reverse=True)

NameError: name 'w' is not defined

https://github.com/marcotcr/anchor/blob/master/anchor/utils.py#L337

Fixed in 0.0.0.4.
Thanks!