# What is BayesOnRedis?
Bayesian classifier on top of Redis
## Why on Redis?
[Redis](http://code.google.com/p/redis) is a persistent in-memory database with supports for various data structures such as lists, sets, and ordered sets. All this data types can be manipulated with atomic operations to push/pop elements, add/remove elements, perform server side union, intersection, difference between sets, and so forth.
Because of Redis properties:
It is extremely easy to implement simple algorithm such as bayesian filter.
The persistence of Redis means that the Bayesian implementation can be used in real production environment.
Even though I don’t particularly care about performance at the moment. Redis benchmarks give me confidence that the implementation can scale to relatively large training data.
## How to install? (Ruby version)
gem install bayes_on_redis
## Getting started
# Create instance of BayesOnRedis and pass your Redis information. # Of course, use real sentences for much better accuracy. # Unless if you want to train spam related things. bor = BayesOnRedis.new(:redis_host => ‘127.0.0.1’, :redis_port => 6379, :redis_db => 5)
# Teach it bor.train “good”, “sweet awesome kick-ass cool pretty smart” bor.train “bad”, “sucks lame boo death bankrupt loser sad”
# Then ask it to classify text. bor.classify(“awesome kick-ass ninja can still be lame.”)
## for Pythonistas
BayesOnRedis is also available in Python. With the same API.
## Contributing
[Fork http://github.com/didip/bayes_on_redis](http://github.com/didip/bayes_on_redis) and send pull requests.
Metadata
Release files for bayes_on_redis 0.1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bayes_on_redis-0.1.9-py2.6.egg | Legacy Egg format | - | - | Details for bayes_on_redis-0.1.9-py2.6.egg |
Release files / bayes_on_redis-0.1.9-py2.6.egg
| Download URL | bayes_on_redis-0.1.9-py2.6.egg |
|---|---|
| Size | 7.8 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
a344b8dd8ff77a33a2a80a9a7a2b17ca2fd885ac7df5644ed4e37ce577aec13d
|
|
BLAKE2b-256 checksum How to use checksums |
115f8559016559cfc551a9816001255bee54131ceeed3cc95f698bb31309ace5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for bayes_on_redis 0.1.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.