jashmenn-apriori 0.1.2 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.txt CHANGED
@@ -102,6 +102,16 @@ at: http://www.borgelt.net/apriori.html
102
102
 
103
103
  * gem install --source http://gems.github.com jashmenn-apriori
104
104
 
105
+ == FAQ:
106
+
107
+ If you get the error:
108
+
109
+ undefined method `add_development_dependency' for #<Gem::Specification:0x2aabcba63ed8>
110
+
111
+ This is because hoe 1.7.0 requires rubygems 1.2.0. To upgrade, simply do the following:
112
+
113
+ gem update --system
114
+
105
115
  == LICENSE:
106
116
 
107
117
  === Apriori C code
@@ -17,6 +17,15 @@ rules = Apriori.find_association_rules(transactions,
17
17
 
18
18
  puts rules.join("\n")
19
19
 
20
+ # RETURNS:
21
+ # doritos <- beer (33.3/2, 100.0)
22
+ # beer <- doritos (50.0/3, 66.7)
23
+ # apple <- doritos (50.0/3, 33.3)
24
+ # doritos <- apple (66.7/4, 25.0)
25
+ # apple <- cheese (50.0/3, 100.0)
26
+ # cheese <- apple (66.7/4, 75.0)
27
+
28
+ # NOTE:
20
29
  # doritos <- beer (33.3/2, 100.0)
21
30
  # means:
22
31
  # * beer appears in 33.3% (2 total) of the transactions (the support)
@@ -55,10 +55,14 @@ module Apriori
55
55
  end
56
56
 
57
57
  # Returns the standard form of this rule as a string. For instance:
58
- # foo <- bar baz bangle (66.7/4, 75.0)
58
+ # bar baz bangle -> foo (66.7/4, 75.0)
59
59
  def to_s
60
- "%s <- %s (%0.01f%s, %0.01f)" % [ consequent,
61
- antecedent.join(" "),
60
+ # "%s <- %s (%0.01f%s, %0.01f)" % [ consequent,
61
+ # antecedent.join(" "),
62
+ # support,
63
+ # num_antecedent_transactions ? "/#{num_antecedent_transactions}" : "", confidence ]
64
+ "%s -> %s (%0.01f%s, %0.01f)" % [ antecedent.join(" "),
65
+ consequent,
62
66
  support,
63
67
  num_antecedent_transactions ? "/#{num_antecedent_transactions}" : "", confidence ]
64
68
  end
@@ -1,8 +1,8 @@
1
1
  module Apriori
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
- MINOR = 1
5
- TINY = 2
4
+ MINOR = 2
5
+ TINY = 0
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
data/website/index.txt CHANGED
@@ -102,6 +102,16 @@ h3. Build and test instructions
102
102
  rake test
103
103
  rake install_gem</pre>
104
104
 
105
+ h3.
106
+
107
+ If you get the error:
108
+
109
+ undefined method `add_development_dependency' for #<Gem::Specification:0x2aabcba63ed8>
110
+
111
+ This is because hoe 1.7.0 requires rubygems 1.2.0. To upgrade, simply do the following:
112
+
113
+ gem update --system
114
+
105
115
  h2. License
106
116
 
107
117
  h3. Apriori C code
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jashmenn-apriori
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nate Murray
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-09-05 00:00:00 -07:00
12
+ date: 2008-09-12 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency