tensorflow / data-validation

Library for exploring and validating machine learning data

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeError: __init__() got an unexpected keyword argument 'feature_whitelist'

opened this issue · comments

According to the documentation of tfdv.StatsOptions, it accepts a parameter called feature_whitelist, which is not true for the website documentation. I'm trying to pass a list of feature names, however I get the following error (tfdv version 1.2.0):

TypeError: __init__() got an unexpected keyword argument 'feature_whitelist'

I understand that the class may be fully functional without that attribute however, the difference in both docs can be misleading.

@schissmantics , thank you for reporting this bug. "feature_whitelist" has been depreciated from tfdv==0.28.0 and replaced with feature_allowlist as mentioned in release note and codebase.

@alternativebug As per above comment "feature_whitelist" has been depreciated from tfdv==0.28.0 and replaced with feature_allowlist, Could you please confirm status on this issue?

Thanks, I'll take this into consideration next time I come back to this.