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

Set Redis keys only if they don't exist #156

Merged
merged 1 commit into from
Mar 2, 2017

Conversation

AlexDWu
Copy link
Contributor

@AlexDWu AlexDWu commented Mar 1, 2017

My use case is to train a model in Redis and then periodically reconnect to the model to classify a thing. For some reason every time I would reconnect, classifications have confidences of Infinity. Then I found out that initializing a BayesRedisBackend was resetting the total_words and total_trainings keys.

@Ch4s3
Copy link
Member

Ch4s3 commented Mar 2, 2017

good catch

@Ch4s3 Ch4s3 merged commit 997d2f7 into jekyll:master Mar 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants