Skip to content

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

@ghost

Description

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.

Activity

self-assigned this
on Aug 9, 2021
arghyaganguly

arghyaganguly commented on Aug 9, 2021

@arghyaganguly
Contributor

@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.

pindinagesh

pindinagesh commented on Feb 8, 2022

@pindinagesh

@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?

ghost

ghost commented on Feb 8, 2022

@ghost

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

ghost closed this as completedon Feb 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Participants

    @arghyaganguly@pindinagesh

    Issue actions

      TypeError: __init__() got an unexpected keyword argument 'feature_whitelist' · Issue #188 · tensorflow/data-validation