Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug when checking if hasher_features is a valid option #234

Closed
desilinguist opened this issue Apr 15, 2015 · 4 comments
Closed

Bug when checking if hasher_features is a valid option #234

desilinguist opened this issue Apr 15, 2015 · 4 comments
Assignees
Labels
Milestone

Comments

@desilinguist
Copy link
Member

In experiments.py, we have the following code:

# produce warnings if hasher_features is set but feature_hasher
# is missing or set to False.
if config.has_option("Input", "hasher_features"):
    if not config.has_option("Input", "hasher_features"):
        logger.warning("Ignoring hasher_features since feature_hasher" +
                       " is missing from the config file.")
    else:
        feature_hasher = config.getboolean("Input", "feature_hasher")
        if not feature_hasher:
            logger.warning("Ignoring hasher_features since feature_hasher" +
                           " is set to False.")

The second if statement should read:

    if not config.has_option("Input", "feature_hasher"):
@dan-blanchard
Copy link
Contributor

Man, who would have done such a thing? (7a434e2) 😜

@desilinguist
Copy link
Member Author

I figured it was a copy-paste flub and I am the master of those :)

@dan-blanchard
Copy link
Contributor

Yeah, and it doesn't help how similar those two settings names are.

@desilinguist desilinguist added this to the 1.1 milestone Apr 16, 2015
@desilinguist desilinguist self-assigned this Jun 29, 2015
desilinguist added a commit that referenced this issue Jul 12, 2015
@desilinguist
Copy link
Member Author

Addressed by #245.

desilinguist added a commit that referenced this issue Jul 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants