Cleaning up css and nav menus, ready to start porting pages

Project: http://git-wip-us.apache.org/repos/asf/mahout/repo
Commit: http://git-wip-us.apache.org/repos/asf/mahout/commit/3a724deb
Tree: http://git-wip-us.apache.org/repos/asf/mahout/tree/3a724deb
Diff: http://git-wip-us.apache.org/repos/asf/mahout/diff/3a724deb

Branch: refs/heads/website
Commit: 3a724debcff6c26765a77300d79b28b32b7e3398
Parents: 0e718ec
Author: Trevor <[email protected]>
Authored: Sat Apr 29 14:14:29 2017 -0500
Committer: Trevor <[email protected]>
Committed: Sat Apr 29 14:14:29 2017 -0500

----------------------------------------------------------------------
 website/README.md                               |    5 +-
 website/assets/themes/mahout3/css/style.css     |   50 +-
 website/docs/_includes/navbar.html              |   14 +-
 website/docs/algorithms/reccomenders/CCO.md     |    9 -
 .../reccomenders/intro-cooccurrence-spark.md    |  446 ++
 .../reccomenders/recommender-overview.md        |   33 +
 website/docs/native-solvers/cuda.md             |    6 +
 website/docs/native-solvers/viennacl-omp.md     |    6 +
 website/docs/native-solvers/viennacl.md         |    6 +
 website/front/_includes/navbar.html             |   46 +-
 .../front/assets_bu/img/Mahout-logo-82x100.png  |  Bin 5140 -> 0 bytes
 .../assets_bu/themes/mahout2/css/Supernice.css  | 5909 -----------------
 .../themes/mahout2/css/bootstrap-theme.min.css  |    7 -
 .../themes/mahout2/css/bootstrap.min.css        |    7 -
 .../themes/mahout2/css/bs-sticky-footer.css     |   29 -
 .../assets_bu/themes/mahout2/css/style.css      |  126 -
 .../fonts/glyphicons-halflings-regular.eot      |  Bin 20290 -> 0 bytes
 .../fonts/glyphicons-halflings-regular.svg      |  229 -
 .../fonts/glyphicons-halflings-regular.ttf      |  Bin 41236 -> 0 bytes
 .../fonts/glyphicons-halflings-regular.woff     |  Bin 23292 -> 0 bytes
 .../themes/mahout2/js/bootstrap.min.js          |    7 -
 .../retro-mahout/css/bootstrap-responsive.css   | 1109 ----
 .../css/bootstrap-responsive.min.css            |    9 -
 .../themes/retro-mahout/css/bootstrap.css       | 6158 ------------------
 .../themes/retro-mahout/css/bootstrap.min.css   |    9 -
 .../themes/retro-mahout/css/global.css          |  938 ---
 .../themes/retro-mahout/css/global__.css        |  886 ---
 .../assets_bu/themes/retro-mahout/css/main.css  |    4 -
 .../themes/retro-mahout/js/bootstrap.js         | 2276 -------
 .../themes/retro-mahout/js/bootstrap.min.js     |    6 -
 .../assets_bu/themes/retro-mahout/js/effects.js | 1130 ----
 .../themes/retro-mahout/js/jquery-1.9.1.min.js  |    5 -
 .../themes/retro-mahout/js/prototype.js         | 4320 ------------
 .../assets_bu/themes/retro-mahout/js/search.js  |   21 -
 .../assets_bu/themes/retro-mahout/js/slides.js  |  109 -
 .../assets_bu/themes/retro-mahout/js/widgets.js |   45 -
 website/front/community/blogs.md                |   18 +
 .../community/books-tutorials-and-talks.md      |  122 -
 website/front/community/buildingmahout.md       |  113 +-
 website/front/community/faq.md                  |  105 -
 website/front/community/glossary.mdtext         |    6 -
 website/front/community/gsoc.md                 |    7 +-
 website/front/community/history.md              |   20 +
 website/front/community/mahout-benchmarks.md    |  153 -
 website/front/community/mahout-wiki.md          |  200 -
 website/front/community/mailing-lists.md        |   91 +-
 website/front/community/powered-by-mahout.md    |  129 -
 website/front/community/professional-support.md |   39 -
 website/front/developers/githubPRs.md           |   16 +-
 website/front/developers/key-concepts.md        |   43 +
 website/front/developers/reference.md           |   73 -
 .../front/developers/thirdparty-dependencies.md |   30 -
 website/front/index.md                          |   77 +-
 53 files changed, 853 insertions(+), 24349 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mahout/blob/3a724deb/website/README.md
----------------------------------------------------------------------
diff --git a/website/README.md b/website/README.md
index 197bc59..339df5f 100644
--- a/website/README.md
+++ b/website/README.md
@@ -155,4 +155,7 @@ This is a helpful tool for reference 
http://pikock.github.io/bootstrap-magic/3.0
 - [-] Get rid of `developer/patch-check-list.md` and add it to the notes as a 
checkbox when opening a PR (see zeppelin)
 - [x] `developer/release-notes.md` stuck on 0.12.0... bump it. 
 - [x] refactor to 'top-site' and 'docs' as we need a different jekyll build to 
change base path for new docs version
-- [x] Sign up for google analytics
\ No newline at end of file
+- [x] Sign up for google analytics
+- [ ] add links to `community/blogs`
+- [ ] would like to see `community/buidingmahout.md` cleaned up a bit (just 
coppied new instructions from README.md)
+- [ ] writeups for native solvers in /docs/native-solvers/
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/mahout/blob/3a724deb/website/assets/themes/mahout3/css/style.css
----------------------------------------------------------------------
diff --git a/website/assets/themes/mahout3/css/style.css 
b/website/assets/themes/mahout3/css/style.css
index c0e274a..349d20d 100644
--- a/website/assets/themes/mahout3/css/style.css
+++ b/website/assets/themes/mahout3/css/style.css
@@ -90,12 +90,7 @@ h1, h2, h3, h4 {
   color: #FFF; }
 
 
-.newMahout {
-  text-align: center;
-  background-color: #03c0ff;
-  padding-bottom: 28px;
-  color: #0099cc;
-}
+
 
 /** A handy link for new navbars: 
https://work.smarchal.com/twbscolor/css/e74c3c91d9e8ecf0f1ffbbbc0 **/
 .navbar-default{
@@ -123,3 +118,46 @@ h1, h2, h3, h4 {
   color: #5F6BAD;
 }
 
+/* Light Green Box */
+.mahoutBox1 {
+  text-align: center;
+  background-color: #DCF8E6;
+  padding: 5px;
+  margin: 4px;
+  color: #5F6BAD;
+}
+
+/* Light Purple Box */
+.mahoutBox2 {
+  text-align: center;
+  background-color: #DEE2F7;
+  padding: 5px;
+  margin: 4px;
+  color: #58B77B;
+}
+
+/* Light Blue Box */
+.mahoutBox3 {
+  text-align: center;
+  background-color: #DBEEF6;
+  padding: 5px;
+  margin: 4px;
+  color: #50889E;
+}
+body {
+    padding-top: 65px;
+}
+
+
+/* Light Blue Box */
+.mahoutMailListBox1 {
+  background-color: #DBEEF6;
+  padding: 0px;
+  margin: 0px;
+}
+
+.mahoutMailListBox2 {
+  background-color: #DCF8E6;
+  padding: 0px;
+  margin: 0px;
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/mahout/blob/3a724deb/website/docs/_includes/navbar.html
----------------------------------------------------------------------
diff --git a/website/docs/_includes/navbar.html 
b/website/docs/_includes/navbar.html
index 3727bec..1c8295d 100644
--- a/website/docs/_includes/navbar.html
+++ b/website/docs/_includes/navbar.html
@@ -11,17 +11,22 @@
         </li>
 
         <li id="dropdown">
-            <a href="#" class="dropdown-toggle" data-toggle="dropdown" 
role="button" aria-haspopup="true" aria-expanded="false">Mahout-Samsara<span 
class="caret"></span></a>
+            <a href="#" class="dropdown-toggle" data-toggle="dropdown" 
role="button" aria-haspopup="true" aria-expanded="false">Key Concepts<span 
class="caret"></span></a>
             <ul class="dropdown-menu">
-                <li><span><b>Reference Info</b><span></li>
+                <li><span><b>&nbsp;&nbsp;Scala DSL</b><span></li>
                 <li><a href="{{ BASE_PATH 
}}/mahout-samsara/in-core-reference.html">In-core Reference</a></li>
                 <li><a href="{{ BASE_PATH 
}}/mahout-samsara/out-of-core-reference.html">Out-of-core Reference</a></li>
                 <li><a href="{{ BASE_PATH }}/mahout-samsara/faq.html">Samsara 
FAQ</a></li>
                 <li role="separator" class="divider"></li>
-                <li><span><b>Bindings</b><span></li>
+                <li><span>&nbsp;&nbsp;<b>Bindings</b><span></li>
                 <li><a href="{{ BASE_PATH 
}}/distributed/spark-bindings.html">Spark Bindings</a></li>
                 <li><a href="{{ BASE_PATH 
}}/distributed/flink-bindings.html">Flink Bindings</a></li>
                 <li><a href="{{ BASE_PATH 
}}/distributed/flink-bindings.html">H20 Bindings</a></li>
+                <li role="separator" class="divider"></li>
+                <li><span>&nbsp;&nbsp;<b>Native Solvers</b><span></li>
+                <li><a href="{{ BASE_PATH 
}}/native-solvers/viennacl.html">Spark Bindings</a></li>
+                <li><a href="{{ BASE_PATH 
}}/native-solvers/viennacl-omp.html">Flink Bindings</a></li>
+                <li><a href="{{ BASE_PATH }}/native-solvers/cuda.html">H20 
Bindings</a></li>
             </ul>
         </li>
 
@@ -62,7 +67,8 @@
                 <li><a href="{{ 
BASE_PATH}}/algorithms/preprocessors/AsFactor.html">AsFactor (a.k.a. "one-hot 
encoding")</a></li>
                 <li role="separator" class="divider"></li>
                 <li><span><b>&nbsp;Reccomenders</b><span></li>
-                <li><a href="{{ 
BASE_PATH}}/algorithms/reccomenders/CCO.html">CCO</a></li>
+                <!--<li><a href="{{ 
BASE_PATH}}/algorithms/reccomenders/recommender-overview.html">Reccomender 
Overview</a></li> Do we still need? seems like short version of next post-->
+                <li><a href="{{ 
BASE_PATH}}/algorithms/reccomenders/intro-cooccurrence-spark.html">Intro to 
Coocurrence With Spark</a></li>
             </ul>
         </li>
 

http://git-wip-us.apache.org/repos/asf/mahout/blob/3a724deb/website/docs/algorithms/reccomenders/CCO.md
----------------------------------------------------------------------
diff --git a/website/docs/algorithms/reccomenders/CCO.md 
b/website/docs/algorithms/reccomenders/CCO.md
deleted file mode 100644
index 0516fa3..0000000
--- a/website/docs/algorithms/reccomenders/CCO.md
+++ /dev/null
@@ -1,9 +0,0 @@
----
-layout: page
-title: CCO
-theme:
-    name: mahout2
----
-
-TODO: Fill this out!
-Stub
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/mahout/blob/3a724deb/website/docs/algorithms/reccomenders/intro-cooccurrence-spark.md
----------------------------------------------------------------------
diff --git a/website/docs/algorithms/reccomenders/intro-cooccurrence-spark.md 
b/website/docs/algorithms/reccomenders/intro-cooccurrence-spark.md
new file mode 100644
index 0000000..f8b4c12
--- /dev/null
+++ b/website/docs/algorithms/reccomenders/intro-cooccurrence-spark.md
@@ -0,0 +1,446 @@
+---
+layout: default
+title: Intro to Cooccurrence Recommenders with Spark
+theme:
+    name: retro-mahout
+---
+
+# Intro to Cooccurrence Recommenders with Spark
+
+Mahout provides several important building blocks for creating recommendations 
using Spark. *spark-itemsimilarity* can 
+be used to create "other people also liked these things" type recommendations 
and paired with a search engine can 
+personalize recommendations for individual users. *spark-rowsimilarity* can 
provide non-personalized content based 
+recommendations and when paired with a search engine can be used to 
personalize content based recommendations.
+
+![image](http://s6.postimg.org/r0m8bpjw1/recommender_architecture.png)
+
+This is a simplified Lambda architecture with Mahout's *spark-itemsimilarity* 
playing the batch model building role and a search engine playing the realtime 
serving role.
+
+You will create two collections, one for user history and one for item 
"indicators". Indicators are user interactions that lead to the wished for 
interaction. So for example if you wish a user to purchase something and you 
collect all users purchase interactions *spark-itemsimilarity* will create a 
purchase indicator from them. But you can also use other user interactions in a 
cross-cooccurrence calculation, to create purchase indicators. 
+
+User history is used as a query on the item collection with its cooccurrence 
and cross-cooccurrence indicators (there may be several indicators). The 
primary interaction or action is picked to be the thing you want to recommend, 
other actions are believed to be corelated but may not indicate exactly the 
same user intent. For instance in an ecom recommender a purchase is a very good 
primary action, but you may also know product detail-views, or 
additions-to-wishlists. These can be considered secondary actions which may all 
be used to calculate cross-cooccurrence indicators. The user history that forms 
the recommendations query will contain recorded primary and secondary actions 
all targetted towards the correct indicator fields.
+
+## References
+
+1. A free ebook, which talks about the general idea: [Practical Machine 
Learning](https://www.mapr.com/practical-machine-learning)
+2. A slide deck, which talks about mixing actions or other indicators: 
[Creating a Unified 
Recommender](http://occamsmachete.com/ml/2014/10/07/creating-a-unified-recommender-with-mahout-and-a-search-engine/)
+3. Two blog posts: [What's New in Recommenders: part 
#1](http://occamsmachete.com/ml/2014/08/11/mahout-on-spark-whats-new-in-recommenders/)
+and  [What's New in Recommenders: part 
#2](http://occamsmachete.com/ml/2014/09/09/mahout-on-spark-whats-new-in-recommenders-part-2/)
+3. A post describing the loglikelihood ratio:  [Surprise and 
Coinsidense](http://tdunning.blogspot.com/2008/03/surprise-and-coincidence.html)
  LLR is used to reduce noise in the data while keeping the calculations O(n) 
complexity.
+
+Below are the command line jobs but the drivers and associated code can also 
be customized and accessed from the Scala APIs.
+
+## 1. spark-itemsimilarity
+*spark-itemsimilarity* is the Spark counterpart of the of the Mahout mapreduce 
job called *itemsimilarity*. It takes in elements of interactions, which have 
userID, itemID, and optionally a value. It will produce one of more indicator 
matrices created by comparing every user's interactions with every other user. 
The indicator matrix is an item x item matrix where the values are 
log-likelihood ratio strengths. For the legacy mapreduce version, there were 
several possible similarity measures but these are being deprecated in favor of 
LLR because in practice it performs the best.
+
+Mahout's mapreduce version of itemsimilarity takes a text file that is 
expected to have user and item IDs that conform to 
+Mahout's ID requirements--they are non-negative integers that can be viewed as 
row and column numbers in a matrix.
+
+*spark-itemsimilarity* also extends the notion of cooccurrence to 
cross-cooccurrence, in other words the Spark version will 
+account for multi-modal interactions and create cross-cooccurrence indicator 
matrices allowing the use of much more data in 
+creating recommendations or similar item lists. People try to do this by 
mixing different actions and giving them weights. 
+For instance they might say an item-view is 0.2 of an item purchase. In 
practice this is often not helpful. Spark-itemsimilarity's
+cross-cooccurrence is a more principled way to handle this case. In effect it 
scrubs secondary actions with the action you want
+to recommend.   
+
+
+    spark-itemsimilarity Mahout 1.0
+    Usage: spark-itemsimilarity [options]
+    
+    Disconnected from the target VM, address: '127.0.0.1:64676', transport: 
'socket'
+    Input, output options
+      -i <value> | --input <value>
+            Input path, may be a filename, directory name, or comma delimited 
list of HDFS supported URIs (required)
+      -i2 <value> | --input2 <value>
+            Secondary input path for cross-similarity calculation, same 
restrictions as "--input" (optional). Default: empty.
+      -o <value> | --output <value>
+            Path for output, any local or HDFS supported URI (required)
+    
+    Algorithm control options:
+      -mppu <value> | --maxPrefs <value>
+            Max number of preferences to consider per user (optional). 
Default: 500
+      -m <value> | --maxSimilaritiesPerItem <value>
+            Limit the number of similarities per item to this number 
(optional). Default: 100
+    
+    Note: Only the Log Likelihood Ratio (LLR) is supported as a similarity 
measure.
+    
+    Input text file schema options:
+      -id <value> | --inDelim <value>
+            Input delimiter character (optional). Default: "[,\t]"
+      -f1 <value> | --filter1 <value>
+            String (or regex) whose presence indicates a datum for the primary 
item set (optional). Default: no filter, all data is used
+      -f2 <value> | --filter2 <value>
+            String (or regex) whose presence indicates a datum for the 
secondary item set (optional). If not present no secondary dataset is collected
+      -rc <value> | --rowIDColumn <value>
+            Column number (0 based Int) containing the row ID string 
(optional). Default: 0
+      -ic <value> | --itemIDColumn <value>
+            Column number (0 based Int) containing the item ID string 
(optional). Default: 1
+      -fc <value> | --filterColumn <value>
+            Column number (0 based Int) containing the filter string 
(optional). Default: -1 for no filter
+    
+    Using all defaults the input is expected of the form: "userID<tab>itemId" 
or "userID<tab>itemID<tab>any-text..." and all rows will be used
+    
+    File discovery options:
+      -r | --recursive
+            Searched the -i path recursively for files that match 
--filenamePattern (optional), Default: false
+      -fp <value> | --filenamePattern <value>
+            Regex to match in determining input files (optional). Default: 
filename in the --input option or "^part-.*" if --input is a directory
+    
+    Output text file schema options:
+      -rd <value> | --rowKeyDelim <value>
+            Separates the rowID key from the vector values list (optional). 
Default: "\t"
+      -cd <value> | --columnIdStrengthDelim <value>
+            Separates column IDs from their values in the vector values list 
(optional). Default: ":"
+      -td <value> | --elementDelim <value>
+            Separates vector element values in the values list (optional). 
Default: " "
+      -os | --omitStrength
+            Do not write the strength to the output files (optional), Default: 
false.
+    This option is used to output indexable data for creating a search engine 
recommender.
+    
+    Default delimiters will produce output of the form: 
"itemID1<tab>itemID2:value2<space>itemID10:value10..."
+    
+    Spark config options:
+      -ma <value> | --master <value>
+            Spark Master URL (optional). Default: "local". Note that you can 
specify the number of cores to get a performance improvement, for example 
"local[4]"
+      -sem <value> | --sparkExecutorMem <value>
+            Max Java heap available as "executor memory" on each node 
(optional). Default: 4g
+      -rs <value> | --randomSeed <value>
+            
+      -h | --help
+            prints this usage text
+
+This looks daunting but defaults to simple fairly sane values to take exactly 
the same input as legacy code and is pretty flexible. It allows the user to 
point to a single text file, a directory full of files, or a tree of 
directories to be traversed recursively. The files included can be specified 
with either a regex-style pattern or filename. The schema for the file is 
defined by column numbers, which map to the important bits of data including 
IDs and values. The files can even contain filters, which allow unneeded rows 
to be discarded or used for cross-cooccurrence calculations.
+
+See ItemSimilarityDriver.scala in Mahout's spark module if you want to 
customize the code. 
+
+### Defaults in the _**spark-itemsimilarity**_ CLI
+
+If all defaults are used the input can be as simple as:
+
+    userID1,itemID1
+    userID2,itemID2
+    ...
+
+With the command line:
+
+
+    bash$ mahout spark-itemsimilarity --input in-file --output out-dir
+
+
+This will use the "local" Spark context and will output the standard text 
version of a DRM
+
+    itemID1<tab>itemID2:value2<space>itemID10:value10...
+
+### <a name="multiple-actions">How To Use Multiple User Actions</a>
+
+Often we record various actions the user takes for later analytics. These can 
now be used to make recommendations. 
+The idea of a recommender is to recommend the action you want the user to 
make. For an ecom app this might be 
+a purchase action. It is usually not a good idea to just treat other actions 
the same as the action you want to recommend. 
+For instance a view of an item does not indicate the same intent as a purchase 
and if you just mixed the two together you 
+might even make worse recommendations. It is tempting though since there are 
so many more views than purchases. With *spark-itemsimilarity*
+we can now use both actions. Mahout will use cross-action cooccurrence 
analysis to limit the views to ones that do predict purchases.
+We do this by treating the primary action (purchase) as data for the indicator 
matrix and use the secondary action (view) 
+to calculate the cross-cooccurrence indicator matrix.  
+
+*spark-itemsimilarity* can read separate actions from separate files or from a 
mixed action log by filtering certain lines. For a mixed 
+action log of the form:
+
+    u1,purchase,iphone
+    u1,purchase,ipad
+    u2,purchase,nexus
+    u2,purchase,galaxy
+    u3,purchase,surface
+    u4,purchase,iphone
+    u4,purchase,galaxy
+    u1,view,iphone
+    u1,view,ipad
+    u1,view,nexus
+    u1,view,galaxy
+    u2,view,iphone
+    u2,view,ipad
+    u2,view,nexus
+    u2,view,galaxy
+    u3,view,surface
+    u3,view,nexus
+    u4,view,iphone
+    u4,view,ipad
+    u4,view,galaxy
+
+###Command Line
+
+
+Use the following options:
+
+    bash$ mahout spark-itemsimilarity \
+       --input in-file \     # where to look for data
+        --output out-path \   # root dir for output
+        --master masterUrl \  # URL of the Spark master server
+        --filter1 purchase \  # word that flags input for the primary action
+        --filter2 view \      # word that flags input for the secondary action
+        --itemIDPosition 2 \  # column that has the item ID
+        --rowIDPosition 0 \   # column that has the user ID
+        --filterPosition 1    # column that has the filter word
+
+
+
+### Output
+
+The output of the job will be the standard text version of two Mahout DRMs. 
This is a case where we are calculating 
+cross-cooccurrence so a primary indicator matrix and cross-cooccurrence 
indicator matrix will be created
+
+    out-path
+      |-- similarity-matrix - TDF part files
+      \-- cross-similarity-matrix - TDF part-files
+
+The similarity-matrix will contain the lines:
+
+    galaxy\tnexus:1.7260924347106847
+    ipad\tiphone:1.7260924347106847
+    nexus\tgalaxy:1.7260924347106847
+    iphone\tipad:1.7260924347106847
+    surface
+
+The cross-similarity-matrix will contain:
+
+    iphone\tnexus:1.7260924347106847 iphone:1.7260924347106847 
ipad:1.7260924347106847 galaxy:1.7260924347106847
+    ipad\tnexus:0.6795961471815897 iphone:0.6795961471815897 
ipad:0.6795961471815897 galaxy:0.6795961471815897
+    nexus\tnexus:0.6795961471815897 iphone:0.6795961471815897 
ipad:0.6795961471815897 galaxy:0.6795961471815897
+    galaxy\tnexus:1.7260924347106847 iphone:1.7260924347106847 
ipad:1.7260924347106847 galaxy:1.7260924347106847
+    surface\tsurface:4.498681156950466 nexus:0.6795961471815897
+
+**Note:** You can run this multiple times to use more than two actions or you 
can use the underlying 
+SimilarityAnalysis.cooccurrence API, which will more efficiently calculate any 
number of cross-cooccurrence indicators.
+
+### Log File Input
+ 
+A common method of storing data is in log files. If they are written using 
some delimiter they can be consumed directly by spark-itemsimilarity. For 
instance input of the form:
+
+    2014-06-23 14:46:53.115\tu1\tpurchase\trandom text\tiphone
+    2014-06-23 14:46:53.115\tu1\tpurchase\trandom text\tipad
+    2014-06-23 14:46:53.115\tu2\tpurchase\trandom text\tnexus
+    2014-06-23 14:46:53.115\tu2\tpurchase\trandom text\tgalaxy
+    2014-06-23 14:46:53.115\tu3\tpurchase\trandom text\tsurface
+    2014-06-23 14:46:53.115\tu4\tpurchase\trandom text\tiphone
+    2014-06-23 14:46:53.115\tu4\tpurchase\trandom text\tgalaxy
+    2014-06-23 14:46:53.115\tu1\tview\trandom text\tiphone
+    2014-06-23 14:46:53.115\tu1\tview\trandom text\tipad
+    2014-06-23 14:46:53.115\tu1\tview\trandom text\tnexus
+    2014-06-23 14:46:53.115\tu1\tview\trandom text\tgalaxy
+    2014-06-23 14:46:53.115\tu2\tview\trandom text\tiphone
+    2014-06-23 14:46:53.115\tu2\tview\trandom text\tipad
+    2014-06-23 14:46:53.115\tu2\tview\trandom text\tnexus
+    2014-06-23 14:46:53.115\tu2\tview\trandom text\tgalaxy
+    2014-06-23 14:46:53.115\tu3\tview\trandom text\tsurface
+    2014-06-23 14:46:53.115\tu3\tview\trandom text\tnexus
+    2014-06-23 14:46:53.115\tu4\tview\trandom text\tiphone
+    2014-06-23 14:46:53.115\tu4\tview\trandom text\tipad
+    2014-06-23 14:46:53.115\tu4\tview\trandom text\tgalaxy    
+
+Can be parsed with the following CLI and run on the cluster producing the same 
output as the above example.
+
+    bash$ mahout spark-itemsimilarity \
+        --input in-file \
+        --output out-path \
+        --master spark://sparkmaster:4044 \
+        --filter1 purchase \
+        --filter2 view \
+        --inDelim "\t" \
+        --itemIDPosition 4 \
+        --rowIDPosition 1 \
+        --filterPosition 2
+
+## 2. spark-rowsimilarity
+
+*spark-rowsimilarity* is the companion to *spark-itemsimilarity* the primary 
difference is that it takes a text file version of 
+a matrix of sparse vectors with optional application specific IDs and it finds 
similar rows rather than items (columns). Its use is
+not limited to collaborative filtering. The input is in text-delimited form 
where there are three delimiters used. By 
+default it reads 
(rowID&lt;tab>columnID1:strength1&lt;space>columnID2:strength2...) Since this 
job only supports LLR similarity,
+ which does not use the input strengths, they may be omitted in the input. It 
writes 
+(rowID&lt;tab>rowID1:strength1&lt;space>rowID2:strength2...) 
+The output is sorted by strength descending. The output can be interpreted as 
a row ID from the primary input followed 
+by a list of the most similar rows.
+
+The command line interface is:
+
+    spark-rowsimilarity Mahout 1.0
+    Usage: spark-rowsimilarity [options]
+    
+    Input, output options
+      -i <value> | --input <value>
+            Input path, may be a filename, directory name, or comma delimited 
list of HDFS supported URIs (required)
+      -o <value> | --output <value>
+            Path for output, any local or HDFS supported URI (required)
+    
+    Algorithm control options:
+      -mo <value> | --maxObservations <value>
+            Max number of observations to consider per row (optional). 
Default: 500
+      -m <value> | --maxSimilaritiesPerRow <value>
+            Limit the number of similarities per item to this number 
(optional). Default: 100
+    
+    Note: Only the Log Likelihood Ratio (LLR) is supported as a similarity 
measure.
+    Disconnected from the target VM, address: '127.0.0.1:49162', transport: 
'socket'
+    
+    Output text file schema options:
+      -rd <value> | --rowKeyDelim <value>
+            Separates the rowID key from the vector values list (optional). 
Default: "\t"
+      -cd <value> | --columnIdStrengthDelim <value>
+            Separates column IDs from their values in the vector values list 
(optional). Default: ":"
+      -td <value> | --elementDelim <value>
+            Separates vector element values in the values list (optional). 
Default: " "
+      -os | --omitStrength
+            Do not write the strength to the output files (optional), Default: 
false.
+    This option is used to output indexable data for creating a search engine 
recommender.
+    
+    Default delimiters will produce output of the form: 
"itemID1<tab>itemID2:value2<space>itemID10:value10..."
+    
+    File discovery options:
+      -r | --recursive
+            Searched the -i path recursively for files that match 
--filenamePattern (optional), Default: false
+      -fp <value> | --filenamePattern <value>
+            Regex to match in determining input files (optional). Default: 
filename in the --input option or "^part-.*" if --input is a directory
+    
+    Spark config options:
+      -ma <value> | --master <value>
+            Spark Master URL (optional). Default: "local". Note that you can 
specify the number of cores to get a performance improvement, for example 
"local[4]"
+      -sem <value> | --sparkExecutorMem <value>
+            Max Java heap available as "executor memory" on each node 
(optional). Default: 4g
+      -rs <value> | --randomSeed <value>
+            
+      -h | --help
+            prints this usage text
+
+See RowSimilarityDriver.scala in Mahout's spark module if you want to 
customize the code. 
+
+# 3. Using *spark-rowsimilarity* with Text Data
+
+Another use case for *spark-rowsimilarity* is in finding similar textual 
content. For instance given the tags associated with 
+a blog post,
+ which other posts have similar tags. In this case the columns are tags and 
the rows are posts. Since LLR is 
+the only similarity method supported this is not the optimal way to determine 
general "bag-of-words" document similarity. 
+LLR is used more as a quality filter than as a similarity measure. However 
*spark-rowsimilarity* will produce 
+lists of similar docs for every doc if input is docs with lists of terms. The 
Apache [Lucene](http://lucene.apache.org) project provides several methods of 
[analyzing and 
tokenizing](http://lucene.apache.org/core/4_9_0/core/org/apache/lucene/analysis/package-summary.html#package_description)
 documents.
+
+# <a name="unified-recommender">4. Creating a Multimodal Recommender</a>
+
+Using the output of *spark-itemsimilarity* and *spark-rowsimilarity* you can 
build a miltimodal cooccurrence and content based
+ recommender that can be used in both or either mode depending on indicators 
available and the history available at 
+runtime for a user. Some slide describing this method can be found 
[here](http://occamsmachete.com/ml/2014/10/07/creating-a-unified-recommender-with-mahout-and-a-search-engine/)
+
+## Requirements
+
+1. Mahout SNAPSHOT-1.0 or later
+2. Hadoop
+3. Spark, the correct version for your version of Mahout and Hadoop
+4. A search engine like Solr or Elasticsearch
+
+## Indicators
+
+Indicators come in 3 types
+
+1. **Cooccurrence**: calculated with *spark-itemsimilarity* from user actions
+2. **Content**: calculated from item metadata or content using 
*spark-rowsimilarity*
+3. **Intrinsic**: assigned to items as metadata. Can be anything that 
describes the item.
+
+The query for recommendations will be a mix of values meant to match one of 
your indicators. The query can be constructed 
+from user history and values derived from context (category being viewed for 
instance) or special precalculated data 
+(popularity rank for instance). This blending of indicators allows for 
creating many flavors or recommendations to fit 
+a very wide variety of circumstances.
+
+With the right mix of indicators developers can construct a single query that 
works for completely new items and new users 
+while working well for items with lots of interactions and users with many 
recorded actions. In other words by adding in content and intrinsic 
+indicators developers can create a solution for the "cold-start" problem that 
gracefully improves with more user history
+and as items have more interactions. It is also possible to create a 
completely content-based recommender that personalizes 
+recommendations.
+
+## Example with 3 Indicators
+
+You will need to decide how you store user action data so they can be 
processed by the item and row similarity jobs and 
+this is most easily done by using text files as described above. The data that 
is processed by these jobs is considered the 
+training data. You will need some amount of user history in your recs query. 
It is typical to use the most recent user history 
+but need not be exactly what is in the training set, which may include a 
greater volume of historical data. Keeping the user 
+history for query purposes could be done with a database by storing it in a 
users table. In the example above the two 
+collaborative filtering actions are "purchase" and "view", but let's also add 
tags (taken from catalog categories or other 
+descriptive metadata). 
+
+We will need to create 1 cooccurrence indicator from the primary action 
(purchase) 1 cross-action cooccurrence indicator 
+from the secondary action (view) 
+and 1 content indicator (tags). We'll have to run *spark-itemsimilarity* once 
and *spark-rowsimilarity* once.
+
+We have described how to create the collaborative filtering indicators for 
purchase and view (the [How to use Multiple User 
+Actions](#multiple-actions) section) but tags will be a slightly different 
process. We want to use the fact that 
+certain items have tags similar to the ones associated with a user's 
purchases. This is not a collaborative filtering indicator 
+but rather a "content" or "metadata" type indicator since you are not using 
other users' history, only the 
+individual that you are making recs for. This means that this method will make 
recommendations for items that have 
+no collaborative filtering data, as happens with new items in a catalog. New 
items may have tags assigned but no one
+ has purchased or viewed them yet. In the final query we will mix all 3 
indicators.
+
+##Content Indicator
+
+To create a content-indicator we'll make use of the fact that the user has 
purchased items with certain tags. We want to find 
+items with the most similar tags. Notice that other users' behavior is not 
considered--only other item's tags. This defines a 
+content or metadata indicator. They are used when you want to find items that 
are similar to other items by using their 
+content or metadata, not by which users interacted with them.
+
+**Note**: It may be advisable to treat tags as cross-cooccurrence indicators 
but for the sake of an example they are treated here as content only.
+
+For this we need input of the form:
+
+    itemID<tab>list-of-tags
+    ...
+
+The full collection will look like the tags column from a catalog DB. For our 
ecom example it might be:
+
+    3459860b<tab>men long-sleeve chambray clothing casual
+    9446577d<tab>women tops chambray clothing casual
+    ...
+
+We'll use *spark-rowimilairity* because we are looking for similar rows, which 
encode items in this case. As with the 
+collaborative filtering indicators we use the --omitStrength option. The 
strengths created are 
+probabilistic log-likelihood ratios and so are used to filter unimportant 
similarities. Once the filtering or downsampling 
+is finished we no longer need the strengths. We will get an indicator matrix 
of the form:
+
+    itemID<tab>list-of-item IDs
+    ...
+
+This is a content indicator since it has found other items with similar 
content or metadata.
+
+    3459860b<tab>3459860b 3459860b 6749860c 5959860a 3434860a 3477860a
+    9446577d<tab>9446577d 9496577d 0943577d 8346577d 9442277d 9446577e
+    ...  
+    
+We now have three indicators, two collaborative filtering type and one content 
type.
+
+##  Multimodal Recommender Query
+
+The actual form of the query for recommendations will vary depending on your 
search engine but the intent is the same. For a given user, map their history 
of an action or content to the correct indicator field and perform an OR'd 
query. 
+
+We have 3 indicators, these are indexed by the search engine into 3 fields, 
we'll call them "purchase", "view", and "tags". 
+We take the user's history that corresponds to each indicator and create a 
query of the form:
+
+    Query:
+      field: purchase; q:user's-purchase-history
+      field: view; q:user's view-history
+      field: tags; q:user's-tags-associated-with-purchases
+      
+The query will result in an ordered list of items recommended for purchase but 
skewed towards items with similar tags to 
+the ones the user has already purchased. 
+
+This is only an example and not necessarily the optimal way to create recs. It 
illustrates how business decisions can be 
+translated into recommendations. This technique can be used to skew 
recommendations towards intrinsic indicators also. 
+For instance you may want to put personalized popular item recs in a special 
place in the UI. Create a popularity indicator 
+by tagging items with some category of popularity (hot, warm, cold for 
instance) then
+index that as a new indicator field and include the corresponding value in a 
query 
+on the popularity field. If we use the ecom example but use the query to get 
"hot" recommendations it might look like this:
+
+    Query:
+      field: purchase; q:user's-purchase-history
+      field: view; q:user's view-history
+      field: popularity; q:"hot"
+
+This will return recommendations favoring ones that have the intrinsic 
indicator "hot".
+
+## Notes
+1. Use as much user action history as you can gather. Choose a primary action 
that is closest to what you want to recommend and the others will be used to 
create cross-cooccurrence indicators. Using more data in this fashion will 
almost always produce better recommendations.
+2. Content can be used where there is no recorded user behavior or when items 
change too quickly to get much interaction history. They can be used alone or 
mixed with other indicators.
+3. Most search engines support "boost" factors so you can favor one or more 
indicators. In the example query, if you want tags to only have a small effect 
you could boost the CF indicators.
+4. In the examples we have used space delimited strings for lists of IDs in 
indicators and in queries. It may be better to use arrays of strings if your 
storage system and search engine support them. For instance Solr allows 
multi-valued fields, which correspond to arrays.

http://git-wip-us.apache.org/repos/asf/mahout/blob/3a724deb/website/docs/algorithms/reccomenders/recommender-overview.md
----------------------------------------------------------------------
diff --git a/website/docs/algorithms/reccomenders/recommender-overview.md 
b/website/docs/algorithms/reccomenders/recommender-overview.md
new file mode 100644
index 0000000..13d331b
--- /dev/null
+++ b/website/docs/algorithms/reccomenders/recommender-overview.md
@@ -0,0 +1,33 @@
+---
+layout: default
+title: Recommender Quickstart
+theme:
+    name: retro-mahout
+---
+
+
+# Recommender Overview
+
+Recommenders have changed over the years. Mahout contains a long list of them, 
which you can still use. But to get the best  out of our more modern aproach 
we'll need to think of the Recommender as a "model creation" 
component&mdash;supplied by Mahout's new spark-itemsimilarity job, and a 
"serving" component&mdash;supplied by a modern scalable search engine, like 
Solr.
+
+![image](http://i.imgur.com/fliHMBo.png)
+
+To integrate with your application you will collect user interactions storing 
them in a DB and also in a from usable by Mahout. The simplest way to do this 
is to log user interactions to csv files (user-id, item-id). The DB should be 
setup to contain the last n user interactions, which will form part of the 
query for recommendations.
+
+Mahout's spark-itemsimilarity will create a table of (item-id, 
list-of-similar-items) in csv form. Think of this as an item collection with 
one field containing the item-ids of similar items. Index this with your search 
engine. 
+
+When your application needs recommendations for a specific person, get the 
latest user history of interactions from the DB and query the indicator 
collection with this history. You will get back an ordered list of item-ids. 
These are your recommendations. You may wish to filter out any that the user 
has already seen but that will depend on your use case.
+
+All ids for users and items are preserved as string tokens and so work as an 
external key in DBs or as doc ids for search engines, they also work as tokens 
for search queries.
+
+##References
+
+1. A free ebook, which talks about the general idea: [Practical Machine 
Learning](https://www.mapr.com/practical-machine-learning)
+2. A slide deck, which talks about mixing actions or other indicators: 
[Creating a Multimodal Recommender with Mahout and a Search 
Engine](http://occamsmachete.com/ml/2014/10/07/creating-a-unified-recommender-with-mahout-and-a-search-engine/)
+3. Two blog posts: [What's New in Recommenders: part 
#1](http://occamsmachete.com/ml/2014/08/11/mahout-on-spark-whats-new-in-recommenders/)
+and  [What's New in Recommenders: part 
#2](http://occamsmachete.com/ml/2014/09/09/mahout-on-spark-whats-new-in-recommenders-part-2/)
+3. A post describing the loglikelihood ratio:  [Surprise and 
Coinsidense](http://tdunning.blogspot.com/2008/03/surprise-and-coincidence.html)
  LLR is used to reduce noise in the data while keeping the calculations O(n) 
complexity.
+
+##Mahout Model Creation
+
+See the page describing 
[*spark-itemsimilarity*](http://mahout.apache.org/users/recommender/intro-cooccurrence-spark.html)
 for more details.
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/mahout/blob/3a724deb/website/docs/native-solvers/cuda.md
----------------------------------------------------------------------
diff --git a/website/docs/native-solvers/cuda.md 
b/website/docs/native-solvers/cuda.md
new file mode 100644
index 0000000..8d1f25f
--- /dev/null
+++ b/website/docs/native-solvers/cuda.md
@@ -0,0 +1,6 @@
+---
+layout: page
+title: Native Solvers: CUDA
+theme:
+    name: mahout2
+---
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/mahout/blob/3a724deb/website/docs/native-solvers/viennacl-omp.md
----------------------------------------------------------------------
diff --git a/website/docs/native-solvers/viennacl-omp.md 
b/website/docs/native-solvers/viennacl-omp.md
new file mode 100644
index 0000000..85a2b64
--- /dev/null
+++ b/website/docs/native-solvers/viennacl-omp.md
@@ -0,0 +1,6 @@
+---
+layout: page
+title: Native Solvers: ViennaCL-OMP
+theme:
+    name: mahout2
+---
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/mahout/blob/3a724deb/website/docs/native-solvers/viennacl.md
----------------------------------------------------------------------
diff --git a/website/docs/native-solvers/viennacl.md 
b/website/docs/native-solvers/viennacl.md
new file mode 100644
index 0000000..491a636
--- /dev/null
+++ b/website/docs/native-solvers/viennacl.md
@@ -0,0 +1,6 @@
+---
+layout: page
+title: Native Solvers: ViennaCL
+theme:
+    name: mahout2
+---
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/mahout/blob/3a724deb/website/front/_includes/navbar.html
----------------------------------------------------------------------
diff --git a/website/front/_includes/navbar.html 
b/website/front/_includes/navbar.html
index d1a8bba..69e1169 100644
--- a/website/front/_includes/navbar.html
+++ b/website/front/_includes/navbar.html
@@ -9,19 +9,21 @@
         <li id="dropdown">
             <a href="#" class="dropdown-toggle" data-toggle="dropdown" 
role="button" aria-haspopup="true" aria-expanded="false">Developers<span 
class="caret"></span></a>
             <ul class="dropdown-menu">
-                <li><a href="/developers/githubPRs.html">Github PRs</a></li>
-                <li><a href="/developers/how-to-become-a-committer.html">How 
to Become a Committer</a></li>
-                <li><a href="/developers/how-to-contribute.html">How to 
Contribute</a></li>
-                <li><a href="/developers/how-to-release.html">How to 
Release</a></li>
-                <li><a href="/developers/how-to-update-the-website.html">How 
to Release</a></li>
+                <li><a 
href="/developers/key-concepts.html">Key-Concepts</a></li> <!-- needs to be 
filled out -->
+                <li><a href="/developers/index.html">Developer 
Resources</a></li>
                 <li><a href="/developers/issue-tracker.html">Issues Tracking 
(JIRA)</a></li>
-                <li><a href="/developers/index.html">Developers</a></li>
-                <li><a href="/community/mailing-lists.html">Mailing 
Lists</a></li>
-                <li><a href="/developers/patch-check-list.html">Patch Check 
List</a></li>
-                <li><a href="/developers/reference.html">References</a></li>
+                <!--<li><a href="/developers/patch-check-list.html">Patch 
Check List</a></li> going to github template -->
+                <!--<li><a 
href="/developers/reference.html">References</a></li> a lot of overlap with 
books, talks, etc. page -->
                 <li><a href="/developers/release-notes.html">Release 
Notes</a></li>
-                <li><a href="/developers/thirdparty-dependencies.html">Third 
Party Dependencies</a></li>
-                <li><a href="/developers/version-control.html">Version 
Control</a></li>
+                <!--<li><a 
href="/developers/thirdparty-dependencies.html">Third Party 
Dependencies</a></li> is our site the reasonable place for this? -->
+                <!--<li><a href="/developers/version-control.html">Version 
Control</a></li>-->
+                <li class="divider"></li>
+                <li class="nav-header">&nbsp;&nbsp;<b>How Tos</b></li>
+                <li><a href="/developers/how-to-contribute.html">How to 
Contribute</a></li>
+                <li><a href="/developers/githubPRs.html">Github PRs</a></li> 
<!-- gtg, added new info for develop and feature branching -->
+                <li><a href="/developers/how-to-become-a-committer.html">How 
to Become a Committer</a></li>
+                <li><a href="/developers/how-to-release.html">How to 
Release</a></li>
+                <li><a href="/developers/how-to-update-the-website.html">How 
to Update the Website</a></li>
             </ul>
         </li>
 
@@ -42,20 +44,22 @@
         <li id="dropdown">
             <a href="#" class="dropdown-toggle" data-toggle="dropdown" 
role="button" aria-haspopup="true" aria-expanded="false">Community<span 
class="caret"></span></a>
             <ul class="dropdown-menu">
-                <li><a href="/community/books-tutorials-and-talks.html">Books 
Tutorials and Talks</a></li>
+                <li><a href="/community/history.html">History of the Apache 
Mahout Project</a></li>
+                <li><a href="/community/blogs.html">Blog Posts About 
Mahout</a></li>
+                <!--<li><a 
href="/community/books-tutorials-and-talks.html">Books Tutorials and 
Talks</a></li>-->
                 <li><a href="/community/buildingmahout.html">Building 
Mahout</a></li>
-                <li><a href="/community/faq.html">FAQ</a></li>
-                <li><a href="/community/gsoc.html">GSOC</a></li>
-                <li><a href="/community/mahout-benchmarks.html">Mahout 
Benchmarks</a></li>
-                <li><a href="/community/mahout-wiki.html">Mahout Wiki</a></li>
-                <li><a href="/community/mailing-lists.html">Mailing 
Lists</a></li>
-                <li><a href="/community/powered-by-mahout.html">Powered By 
Mahout</a></li>
+                <!--<li><a href="/community/faq.html">FAQ</a></li> needs a lot 
of updating -->
+                <li><a href="/community/gsoc.html">GSoC</a></li> <!-- Is OK- 
updated Map/Reduce verbage to reflect Samsara -->
+                <!--<li><a href="/community/mahout-benchmarks.html">Mahout 
Benchmarks</a></li> These are old, Keep them? -->
+                <!--<li><a href="/community/mahout-wiki.html">Mahout 
Wiki</a></li> at very least needs links cleanedup - do we still want this 
even?-->
+                <li><a href="/community/mailing-lists.html">Mailing 
Lists</a></li> <!-- Clean and pretty -->
+                <!--<li><a href="/community/powered-by-mahout.html">Powered By 
Mahout</a></li> needs update -->
                 <li><a href="/community/privacy-policy.html">Privacy 
Policy</a></li>
-                <li><a 
href="/community/professional-support.html">Professional Support</a></li>
-                <li><a href="/community/who-we-are.html">Who We Are</a></li>
+                <!--<li><a 
href="/community/professional-support.html">Professional Support</a></li> 
update if we even want to keep -->
+                <li><a href="/community/who-we-are.html">Who We Are</a></li> 
<!-- nikolai needs to add himself -->
             </ul>
         </li>
-        <li><a href="/docs/0.13.0/quickstart">QuickStart</a></li>
+        <li><a href="/docs/0.13.1/quickstart">QuickStart</a></li>
 
     </ul>
     <form class="navbar-form navbar-left">

http://git-wip-us.apache.org/repos/asf/mahout/blob/3a724deb/website/front/assets_bu/img/Mahout-logo-82x100.png
----------------------------------------------------------------------
diff --git a/website/front/assets_bu/img/Mahout-logo-82x100.png 
b/website/front/assets_bu/img/Mahout-logo-82x100.png
deleted file mode 100644
index 31d40c4..0000000
Binary files a/website/front/assets_bu/img/Mahout-logo-82x100.png and /dev/null 
differ

Reply via email to