Author: ssc
Date: Sat Oct 16 17:09:56 2010
New Revision: 1023331
URL: http://svn.apache.org/viewvc?rev=1023331&view=rev
Log:
.props files and options polishing for
rowsimilarity,itemsimilarity,recommenditembased
Added:
mahout/trunk/conf/itemsimilarity.props
mahout/trunk/conf/recommenditembased.props
mahout/trunk/conf/rowsimilarity.props
Modified:
mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/hadoop/item/RecommenderJob.java
mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/hadoop/similarity/item/ItemSimilarityJob.java
Added: mahout/trunk/conf/itemsimilarity.props
URL:
http://svn.apache.org/viewvc/mahout/trunk/conf/itemsimilarity.props?rev=1023331&view=auto
==============================================================================
--- mahout/trunk/conf/itemsimilarity.props (added)
+++ mahout/trunk/conf/itemsimilarity.props Sat Oct 16 17:09:56 2010
@@ -0,0 +1,9 @@
+# The following parameters must be specified
+#i|input = /path/to/input
+#o|output = /path/to/output
+#s|similarityClassname = <Name of distributed similarity class to instantiate>
+
+# The following parameters all have default values if not specified
+#m|maxSimilaritiesPerItem = <try to cap the number of similar items per item
to this number. Default: 100>
+#mo|maxCooccurrencesPerItem = <try to cap the number of cooccurrences per item
to this number. Default: 100>
+#b|booleanData = <Treat input as without pref values. Default: false>
Added: mahout/trunk/conf/recommenditembased.props
URL:
http://svn.apache.org/viewvc/mahout/trunk/conf/recommenditembased.props?rev=1023331&view=auto
==============================================================================
--- mahout/trunk/conf/recommenditembased.props (added)
+++ mahout/trunk/conf/recommenditembased.props Sat Oct 16 17:09:56 2010
@@ -0,0 +1,14 @@
+# The following parameters must be specified
+#i|input = /path/to/input
+#o|output = /path/to/output
+
+# The following parameters all have default values if not specified
+#n|numRecommendations = <Number of recommendations per user. Default: 10>
+#u|usersFile = <File of users to recommend for. Default: null>
+#i|itemsFile = <File of items to recommend for. Default: null>
+#f|filterFile = <File containing comma-separated userID,itemID pairs. Used to
exclude the item from the recommendations for that user. Default: null>
+#b|booleanData = <Treat input as without pref values. Default: false>
+#mp|maxPrefsPerUser = <Maximum number of preferences considered per user in
final recommendation phase. Default: 10>
+#m|maxSimilaritiesPerItem = <Maximum number of similarities considered per
item. Default: 100>
+#mo|maxCooccurrencesPerItem = <try to cap the number of cooccurrences per item
to this number. Default: 100>
+#s|similarityClassname = <Name of distributed similarity class to instantiate.
Default:
org.apache.mahout.math.hadoop.similarity.vector.DistributedCooccurrenceVectorSimilarity>
Added: mahout/trunk/conf/rowsimilarity.props
URL:
http://svn.apache.org/viewvc/mahout/trunk/conf/rowsimilarity.props?rev=1023331&view=auto
==============================================================================
--- mahout/trunk/conf/rowsimilarity.props (added)
+++ mahout/trunk/conf/rowsimilarity.props Sat Oct 16 17:09:56 2010
@@ -0,0 +1,8 @@
+# The following parameters must be specified
+#i|input = /path/to/input
+#o|output = /path/to/output
+#r|numberOfColumns = <Number of columns in the input matrix>
+#s|similarityClassname = <Name of distributed similarity class to instantiate>
+
+# The following parameters all have default values if not specified
+#m|maxSimilaritiesPerRow = <Number of maximum similarities per row. Default:
100>
Modified:
mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/hadoop/item/RecommenderJob.java
URL:
http://svn.apache.org/viewvc/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/hadoop/item/RecommenderJob.java?rev=1023331&r1=1023330&r2=1023331&view=diff
==============================================================================
---
mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/hadoop/item/RecommenderJob.java
(original)
+++
mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/hadoop/item/RecommenderJob.java
Sat Oct 16 17:09:56 2010
@@ -113,12 +113,12 @@ public final class RecommenderJob extend
addOption("filterFile", "f", "File containing comma-separated
userID,itemID pairs. Used to exclude the item from "
+ "the recommendations for that user (optional)", null);
addOption("booleanData", "b", "Treat input as without pref values",
Boolean.FALSE.toString());
- addOption("maxPrefsPerUser", null,
+ addOption("maxPrefsPerUser", "mp",
"Maximum number of preferences considered per user in final
recommendation phase",
String.valueOf(UserVectorSplitterMapper.DEFAULT_MAX_PREFS_PER_USER_CONSIDERED));
- addOption("maxSimilaritiesPerItem", null, "Maximum number of similarities
considered per item ",
+ addOption("maxSimilaritiesPerItem", "m", "Maximum number of similarities
considered per item ",
String.valueOf(DEFAULT_MAX_SIMILARITIES_PER_ITEM));
- addOption("maxCooccurrencesPerItem", "o", "try to cap the number of
cooccurrences per item to this "
+ addOption("maxCooccurrencesPerItem", "mo", "try to cap the number of
cooccurrences per item to this "
+ "number (default: " + DEFAULT_MAX_COOCCURRENCES_PER_ITEM + ')',
String.valueOf(DEFAULT_MAX_COOCCURRENCES_PER_ITEM));
addOption("similarityClassname", "s", "Name of distributed similarity
class to instantiate, alternatively use "
Modified:
mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/hadoop/similarity/item/ItemSimilarityJob.java
URL:
http://svn.apache.org/viewvc/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/hadoop/similarity/item/ItemSimilarityJob.java?rev=1023331&r1=1023330&r2=1023331&view=diff
==============================================================================
---
mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/hadoop/similarity/item/ItemSimilarityJob.java
(original)
+++
mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/hadoop/similarity/item/ItemSimilarityJob.java
Sat Oct 16 17:09:56 2010
@@ -101,7 +101,7 @@ public final class ItemSimilarityJob ext
+ "one of the predefined similarities (" +
SimilarityType.listEnumNames() + ')');
addOption("maxSimilaritiesPerItem", "m", "try to cap the number of similar
items per item to this number "
+ "(default: " + DEFAULT_MAX_SIMILAR_ITEMS_PER_ITEM + ')',
String.valueOf(DEFAULT_MAX_SIMILAR_ITEMS_PER_ITEM));
- addOption("maxCooccurrencesPerItem", "o", "try to cap the number of
cooccurrences per item to this number "
+ addOption("maxCooccurrencesPerItem", "mo", "try to cap the number of
cooccurrences per item to this number "
+ "(default: " + DEFAULT_MAX_COOCCURRENCES_PER_ITEM + ')',
String.valueOf(DEFAULT_MAX_COOCCURRENCES_PER_ITEM));
addOption("booleanData", "b", "Treat input as without pref values",
Boolean.FALSE.toString());