slope_one 0.1 → 0.1.1
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.markdown +3 -5
- data/lib/slope_one.rb +1 -1
- metadata +3 -2
data/README.markdown
CHANGED
@@ -2,9 +2,7 @@
|
|
2
2
|
|
3
3
|
## DESCRIPTION:
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
Ported to Ruby from Bryan O’Sullivan's [Python implementation](http://www.serpentine.com/blog/2006/12/12/collaborative-filtering-made-easy/). All credit goes to him.
|
5
|
+
Ruby implementation of the [Slope One](http://en.wikipedia.org/wiki/Slope_One) recommendation algorithm. Ported from Bryan O’Sullivan's awesome [Python implementation](http://www.serpentine.com/blog/2006/12/12/collaborative-filtering-made-easy/).
|
8
6
|
|
9
7
|
## SYNOPSIS:
|
10
8
|
|
@@ -37,7 +35,7 @@ Ported to Ruby from Bryan O’Sullivan's [Python implementation](http://www.serp
|
|
37
35
|
}
|
38
36
|
|
39
37
|
slope_one = SlopeOne.new
|
40
|
-
slope_one.
|
38
|
+
slope_one.insert(user_data)
|
41
39
|
puts slope_one.predict({"House" => 3, "Big Bang Theory" => 7.5}).inspect
|
42
40
|
|
43
41
|
## INSTALL:
|
@@ -50,7 +48,7 @@ or in your Gemfile:
|
|
50
48
|
|
51
49
|
## LICENSE:
|
52
50
|
|
53
|
-
Copyright 2006 Bryan O'Sullivan <bos@serpentine.com> (Original implementation)
|
51
|
+
Copyright 2006 Bryan O'Sullivan <bos@serpentine.com> (Original implementation)
|
54
52
|
Copyright 2010 Ashley Williams <hi@ashleyw.co.uk> (Ruby port)
|
55
53
|
|
56
54
|
This software may be used and distributed according to the terms
|
data/lib/slope_one.rb
CHANGED
metadata
CHANGED
@@ -5,7 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
|
8
|
+
- 1
|
9
|
+
version: 0.1.1
|
9
10
|
platform: ruby
|
10
11
|
authors:
|
11
12
|
- Ashley Williams
|
@@ -37,7 +38,7 @@ files:
|
|
37
38
|
- test/test_helper.rb
|
38
39
|
- test/test_slope_one.rb
|
39
40
|
has_rdoc: true
|
40
|
-
homepage: http://github.com/ashleyw/
|
41
|
+
homepage: http://github.com/ashleyw/Slope-One
|
41
42
|
licenses: []
|
42
43
|
|
43
44
|
post_install_message:
|