Review Board 1.7.22


MAHOUT-918 Parallelized SGD in MapReduce

Review Request #3072 - Created Dec. 8, 2011 and updated

issei yoshida
MAHOUT-918
Reviewers
mahout
mahout
MAHOUT-918 Parallelized SGD in MapReduce

 

Diff revision 4

This is not the most recent revision of the diff. The latest diff is revision 5. See what's changed.

1 2 3 4 5
1 2 3 4 5

  1. trunk/core/src/main/java/org/apache/mahout/classifier/sgd/PassiveAggressive.java: Loading...
  2. trunk/core/src/main/java/org/apache/mahout/classifier/sgd/mapreduce/AdaptiveLogisticRegressionDriver.java: Loading...
  3. trunk/core/src/main/java/org/apache/mahout/classifier/sgd/mapreduce/AdaptiveLogisticRegressionMapper.java: Loading...
  4. trunk/core/src/main/java/org/apache/mahout/classifier/sgd/mapreduce/AdaptiveLogisticRegressionReducer.java: Loading...
  5. trunk/core/src/main/java/org/apache/mahout/classifier/sgd/mapreduce/LogisticRegressionDriver.java: Loading...
  6. trunk/core/src/main/java/org/apache/mahout/classifier/sgd/mapreduce/LogisticRegressionMapper.java: Loading...
  7. trunk/core/src/main/java/org/apache/mahout/classifier/sgd/mapreduce/LogisticRegressionReducer.java: Loading...
  8. trunk/core/src/main/java/org/apache/mahout/classifier/sgd/mapreduce/PassiveAggressiveDriver.java: Loading...
  9. trunk/core/src/main/java/org/apache/mahout/classifier/sgd/mapreduce/PassiveAggressiveMapper.java: Loading...
  10. trunk/core/src/main/java/org/apache/mahout/classifier/sgd/mapreduce/PassiveAggressiveReducer.java: Loading...
  11. trunk/core/src/main/java/org/apache/mahout/classifier/sgd/mapreduce/SGDDriver.java: Loading...
  12. trunk/core/src/main/java/org/apache/mahout/classifier/sgd/mapreduce/SGDMapper.java: Loading...
  13. trunk/core/src/main/java/org/apache/mahout/classifier/sgd/mapreduce/SGDReducer.java: Loading...
  14. trunk/core/src/test/java/org/apache/mahout/classifier/sgd/mapreduce/AdaptiveLogisticRegressionMapReduceTest.java: Loading...
  15. trunk/core/src/test/java/org/apache/mahout/classifier/sgd/mapreduce/LogisticRegressionMapReduceTest.java: Loading...
  16. trunk/core/src/test/java/org/apache/mahout/classifier/sgd/mapreduce/PassiveAggressiveMapReduceTest.java: Loading...
  17. trunk/core/src/test/java/org/apache/mahout/classifier/sgd/mapreduce/SGDMapReduceTest.java: Loading...
trunk/core/src/main/java/org/apache/mahout/classifier/sgd/PassiveAggressive.java
Revision 1213193 New Change
[20] 123 lines
[+20] [+] public double classifyScalar(Vector instance) {
124
  }
124
  }
125

    
   
125

   
126
  public int numFeatures() {
126
  public int numFeatures() {
127
    return weights.numCols();
127
    return weights.numCols();
128
  }
128
  }

    
   
129
  

    
   
130
  public Matrix getWeights() {

    
   
131
    return weights;

    
   
132
  }

    
   
133
  

    
   
134
  public void setWeights(Matrix weights) {

    
   
135
    this.weights = weights;

    
   
136
  }
129

    
   
137

   
130
  public PassiveAggressive copy() {
138
  public PassiveAggressive copy() {
131
    close();
139
    close();
132
    PassiveAggressive r = new PassiveAggressive(numCategories(), numFeatures());
140
    PassiveAggressive r = new PassiveAggressive(numCategories(), numFeatures());
133
    r.copyFrom(this);
141
    r.copyFrom(this);
[+20] [20] 71 lines
trunk/core/src/main/java/org/apache/mahout/classifier/sgd/mapreduce/AdaptiveLogisticRegressionDriver.java
New File
 
trunk/core/src/main/java/org/apache/mahout/classifier/sgd/mapreduce/AdaptiveLogisticRegressionMapper.java
New File
 
trunk/core/src/main/java/org/apache/mahout/classifier/sgd/mapreduce/AdaptiveLogisticRegressionReducer.java
New File
 
trunk/core/src/main/java/org/apache/mahout/classifier/sgd/mapreduce/LogisticRegressionDriver.java
New File
 
trunk/core/src/main/java/org/apache/mahout/classifier/sgd/mapreduce/LogisticRegressionMapper.java
New File
 
trunk/core/src/main/java/org/apache/mahout/classifier/sgd/mapreduce/LogisticRegressionReducer.java
New File
 
trunk/core/src/main/java/org/apache/mahout/classifier/sgd/mapreduce/PassiveAggressiveDriver.java
New File
 
trunk/core/src/main/java/org/apache/mahout/classifier/sgd/mapreduce/PassiveAggressiveMapper.java
New File
 
trunk/core/src/main/java/org/apache/mahout/classifier/sgd/mapreduce/PassiveAggressiveReducer.java
New File
 
trunk/core/src/main/java/org/apache/mahout/classifier/sgd/mapreduce/SGDDriver.java
New File
 
trunk/core/src/main/java/org/apache/mahout/classifier/sgd/mapreduce/SGDMapper.java
New File
 
trunk/core/src/main/java/org/apache/mahout/classifier/sgd/mapreduce/SGDReducer.java
New File
 
trunk/core/src/test/java/org/apache/mahout/classifier/sgd/mapreduce/AdaptiveLogisticRegressionMapReduceTest.java
New File
 
trunk/core/src/test/java/org/apache/mahout/classifier/sgd/mapreduce/LogisticRegressionMapReduceTest.java
New File
 
trunk/core/src/test/java/org/apache/mahout/classifier/sgd/mapreduce/PassiveAggressiveMapReduceTest.java
New File
 
trunk/core/src/test/java/org/apache/mahout/classifier/sgd/mapreduce/SGDMapReduceTest.java
New File
 
  1. trunk/core/src/main/java/org/apache/mahout/classifier/sgd/PassiveAggressive.java: Loading...
  2. trunk/core/src/main/java/org/apache/mahout/classifier/sgd/mapreduce/AdaptiveLogisticRegressionDriver.java: Loading...
  3. trunk/core/src/main/java/org/apache/mahout/classifier/sgd/mapreduce/AdaptiveLogisticRegressionMapper.java: Loading...
  4. trunk/core/src/main/java/org/apache/mahout/classifier/sgd/mapreduce/AdaptiveLogisticRegressionReducer.java: Loading...
  5. trunk/core/src/main/java/org/apache/mahout/classifier/sgd/mapreduce/LogisticRegressionDriver.java: Loading...
  6. trunk/core/src/main/java/org/apache/mahout/classifier/sgd/mapreduce/LogisticRegressionMapper.java: Loading...
  7. trunk/core/src/main/java/org/apache/mahout/classifier/sgd/mapreduce/LogisticRegressionReducer.java: Loading...
  8. trunk/core/src/main/java/org/apache/mahout/classifier/sgd/mapreduce/PassiveAggressiveDriver.java: Loading...
  9. trunk/core/src/main/java/org/apache/mahout/classifier/sgd/mapreduce/PassiveAggressiveMapper.java: Loading...
  10. trunk/core/src/main/java/org/apache/mahout/classifier/sgd/mapreduce/PassiveAggressiveReducer.java: Loading...
  11. trunk/core/src/main/java/org/apache/mahout/classifier/sgd/mapreduce/SGDDriver.java: Loading...
  12. trunk/core/src/main/java/org/apache/mahout/classifier/sgd/mapreduce/SGDMapper.java: Loading...
  13. trunk/core/src/main/java/org/apache/mahout/classifier/sgd/mapreduce/SGDReducer.java: Loading...
  14. trunk/core/src/test/java/org/apache/mahout/classifier/sgd/mapreduce/AdaptiveLogisticRegressionMapReduceTest.java: Loading...
  15. trunk/core/src/test/java/org/apache/mahout/classifier/sgd/mapreduce/LogisticRegressionMapReduceTest.java: Loading...
  16. trunk/core/src/test/java/org/apache/mahout/classifier/sgd/mapreduce/PassiveAggressiveMapReduceTest.java: Loading...
  17. trunk/core/src/test/java/org/apache/mahout/classifier/sgd/mapreduce/SGDMapReduceTest.java: Loading...