CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Thu, 24 Jul 2025 19:42:27 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20090907104714
location: https://web.archive.org/web/20090907104714/https://github.com/danielsdeleo/Decider
server-timing: captures_list;dur=0.904968, exclusion.robots;dur=0.038546, exclusion.robots.policy;dur=0.020645, esindex;dur=0.014273, cdx.remote;dur=66.008740, LoadShardBlock;dur=493.991010, PetaboxLoader3.datanode;dur=186.797051, PetaboxLoader3.resolve;dur=138.848662
x-app-server: wwwb-app200
x-ts: 302
x-tr: 600
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: SERVER=wwwb-app200; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 301
server: nginx
date: Thu, 24 Jul 2025 19:42:28 GMT
content-type: text/html; charset=utf-8
content-length: 116
x-archive-orig-server: nginx/0.6.31
x-archive-orig-date: Mon, 07 Sep 2009 10:47:13 GMT
x-archive-orig-connection: close
x-archive-orig-status: 301 Moved Permanently
x-archive-orig-x-runtime: 299ms
location: https://web.archive.org/web/20090907104714/https://github.com/danielsdeleo/Decider/tree/master
x-archive-orig-cache-control: no-cache
x-archive-orig-content-length: 116
cache-control: max-age=1800
memento-datetime: Mon, 07 Sep 2009 10:47:14 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Mon, 07 Sep 2009 10:47:14 GMT", ; rel="memento"; datetime="Mon, 07 Sep 2009 10:47:14 GMT", ; rel="next memento"; datetime="Sun, 14 Feb 2010 15:23:22 GMT", ; rel="last memento"; datetime="Thu, 24 Apr 2025 02:51:37 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_11_20090907080341_crawl103.gpg-c/52_11_20090907104627_crawl101.arc.gz
server-timing: captures_list;dur=7.047694, exclusion.robots;dur=0.049254, exclusion.robots.policy;dur=0.029332, esindex;dur=0.020570, cdx.remote;dur=76.031230, LoadShardBlock;dur=659.017372, PetaboxLoader3.datanode;dur=397.202624, PetaboxLoader3.resolve;dur=416.693358, load_resource;dur=215.270058
x-app-server: wwwb-app200
x-ts: 301
x-tr: 1018
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Thu, 24 Jul 2025 19:42:29 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.6.26
x-archive-orig-date: Mon, 07 Sep 2009 10:47:14 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-etag: "538654022488313bf755716ad0e375ba"
x-archive-orig-x-runtime: 836ms
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-orig-content-length: 26954
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Mon, 07 Sep 2009 10:47:14 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Mon, 07 Sep 2009 10:47:14 GMT", ; rel="memento"; datetime="Mon, 07 Sep 2009 10:47:14 GMT", ; rel="next memento"; datetime="Fri, 11 Sep 2009 17:58:36 GMT", ; rel="last memento"; datetime="Sat, 12 Sep 2009 22:32:44 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_11_20090907080341_crawl103.gpg-c/52_11_20090907104627_crawl101.arc.gz
server-timing: captures_list;dur=1.003678, exclusion.robots;dur=0.038806, exclusion.robots.policy;dur=0.024570, esindex;dur=0.015765, cdx.remote;dur=83.642025, LoadShardBlock;dur=224.052549, PetaboxLoader3.datanode;dur=188.978623, PetaboxLoader3.resolve;dur=249.963126, load_resource;dur=234.560495
x-app-server: wwwb-app200
x-ts: 200
x-tr: 710
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
danielsdeleo's Decider at master - GitHub
This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (

This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (

Description: | Flexible and Extensible Machine Learning in Ruby edit |
Homepage: | edit |
Public Clone URL: |
git://github.com/danielsdeleo/Decider.git
Give this clone URL to anyone.
git clone git://github.com/danielsdeleo/Decider.git
|
Your Clone URL: |
Use this clone URL yourself.
git clone git@github.com:danielsdeleo/Decider.git
|
Decider /
name | age | message | |
---|---|---|---|
![]() |
.gitignore | Sun Aug 09 10:00:58 -0700 2009 | don't git intermediate results [danielsdeleo] |
![]() |
LICENSE | Tue Jul 07 21:58:25 -0700 2009 | do what thou wilt shall be the whole of the law [danielsdeleo] |
![]() |
README.rdoc | Tue Aug 04 22:20:01 -0700 2009 | a bit more about performance [danielsdeleo] |
![]() |
Rakefile | Fri Jul 03 21:36:23 -0700 2009 | initial commit [danielsdeleo] |
![]() |
TODO.feature | Wed Jul 08 21:36:20 -0700 2009 | moved bayes to its own module and improved impl... [danielsdeleo] |
![]() |
benchmark/ | Thu Aug 20 06:10:33 -0700 2009 | latest run; group repos via jaccard dist. k=50 [Ubuntu] |
![]() |
examples/ | Sun Aug 02 10:14:03 -0700 2009 | adjust example to updated method signature [danielsdeleo] |
![]() |
lib/ | Sun Aug 30 15:07:18 -0700 2009 | add caching to vector computations & refactor v... [danielsdeleo] |
![]() |
spec/ | Sun Aug 30 15:07:18 -0700 2009 | add caching to vector computations & refactor v... [danielsdeleo] |
README.rdoc
Decider
Yet Another Ruby Machine Learning Library
Manifesto
There are other ruby machine learning libraries out there:
So why another one?
- You can install it and try it in irb right away. You don’t need to
learn how a half-dozen classes work to get started:
c = Decider.classifier(:spam, :ham) c.spam << "some spammy text" c.ham << "some hammy goodness" c.spam?("more spammy text") # => true
The default configuration is about 96% accurate as an email spam classifier.
- You can control how it processes its input easily. Decider has built-in support for plain text and URIs, stemming words, stop word removal, and n-grams. All of these can easily be combined at your option (see "Getting Started" below for a quick example). Additional tokenization strategies or support for non-text document types can be added with a minimum of hassle.
- Persist (Save) with Moneta. Pretty much any storage mechanism that’s available in ruby is supported. Save to a database and implement distributed classification if you like.
- Clustering Analysis. Useful for recommendation algorithms. (In Progress)
Getting Started
c = Decider.classifier(:spam, :ham) do |doc| doc.plain_text doc.ngrams(2..3) doc.stem end c.spam << "buy viagra, jerk" << "get enormous hot dog for make women happy" c.ham << "check out my code on github homie" << "let's go out for beers after work" p c.spam?("viagra for huge hot dog") # => true puts "term frequencies:" puts "spam: #{c.spam.term_frequency.inspect}" puts "ham: #{c.ham.term_frequency.inspect}" puts "" p c.scores("let's write code and drink some beers") # => {:spam=>0.0, :ham=>1.0} p c.classify("let's write code and drink some beers") # => :ham
Performance
Decider has several benchmarks that also double as integration tests. These are run regularly and used to pinpoint CPU and RAM bottlenecks.
Decider does a lot of math and is fairly computationally intensive, so you want all the extra speed you can get. It is regularly tested with Ruby 1.9 and Jruby. I highly recommend using one of these Ruby implementations if at all possible if you plan on doing anything serious with Decider.
Also keep in mind that your dataset should reside entirely in memory or else you’ll hit a brick wall.
This feature is coming soon. Sit tight!