List of usage examples for org.apache.mahout.classifier.sgd RecordFactory getTraceDictionary
Map<String, Set<Integer>> getTraceDictionary();
From source file:TrainLogistic.java
License:Apache License
private static double predictorWeight(OnlineLogisticRegression lr, int row, RecordFactory csv, String predictor) {/* w ww .j a v a 2 s. c o m*/ double weight = 0; for (Integer column : csv.getTraceDictionary().get(predictor)) { weight += lr.getBeta().get(row, column); } return weight; }