Author: gsingers
Date: Sun Nov 27 16:54:39 2011
New Revision: 1206766
URL: http://svn.apache.org/viewvc?rev=1206766&view=rev
Log:
minor variable name change
Modified:
mahout/trunk/examples/src/main/java/org/apache/mahout/classifier/sgd/SGDHelper.java
Modified:
mahout/trunk/examples/src/main/java/org/apache/mahout/classifier/sgd/SGDHelper.java
URL:
http://svn.apache.org/viewvc/mahout/trunk/examples/src/main/java/org/apache/mahout/classifier/sgd/SGDHelper.java?rev=1206766&r1=1206765&r2=1206766&view=diff
==============================================================================
---
mahout/trunk/examples/src/main/java/org/apache/mahout/classifier/sgd/SGDHelper.java
(original)
+++
mahout/trunk/examples/src/main/java/org/apache/mahout/classifier/sgd/SGDHelper.java
Sun Nov 27 16:54:39 2011
@@ -42,7 +42,7 @@ public class SGDHelper {
private static final String[] LEAK_LABELS = {"none", "month-year",
"day-month-year"};
public static void dissect(int leakType,
- Dictionary newsGroups,
+ Dictionary dictionary,
AdaptiveLogisticRegression learningAlgorithm,
Iterable<File> files, Multiset<String>
overallCounts) throws IOException {
CrossFoldLearner model =
learningAlgorithm.getBest().getPayload().getLearner();
@@ -57,14 +57,14 @@ public class SGDHelper {
for (File file : permute(files, helper.getRandom()).subList(0, 500)) {
String ng = file.getParentFile().getName();
- int actual = newsGroups.intern(ng);
+ int actual = dictionary.intern(ng);
traceDictionary.clear();
Vector v = helper.encodeFeatureVector(file, actual, leakType,
overallCounts);
md.update(v, traceDictionary, model);
}
- List<String> ngNames = Lists.newArrayList(newsGroups.values());
+ List<String> ngNames = Lists.newArrayList(dictionary.values());
List<ModelDissector.Weight> weights = md.summary(100);
System.out.println("============");
System.out.println("Model Dissection");