MCPcopy Create free account
hub / github.com/WinVector/Logistic / ScoreReducer

Class ScoreReducer

src/com/winvector/logistic/mr/MapRedScore.java:110–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108 }
109
110 public static final class ScoreReducer extends Reducer<Text,Text,Text,Text> {
111 @Override
112 public void setup(final Context context) throws IOException, InterruptedException {
113 final String idealHeader = context.getConfiguration().get(MapRedScore.IDEALHEADERFIELD);
114 context.write(new Text("File.Offset"),new Text(idealHeader));
115 }
116 }
117
118
119 public boolean score(final double[] x, final Path pathOut) throws IOException, InterruptedException, ClassNotFoundException {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected