MCPcopy Index your code
hub / github.com/WinVector/Logistic / run

Method run

src/com/winvector/logistic/demo/MapReduceScore.java:31–44  ·  view source on GitHub ↗
(final String[] args)

Source from the content-addressed store, hash-verified

29public class MapReduceScore extends Configured implements Tool {
30
31 @Override
32 public int run(final String[] args) throws Exception {
33 if(args.length!=3) {
34 final Log log = LogFactory.getLog(MapReduceScore.class);
35 log.info(Licenses.licenses);
36 log.fatal("use: MapReduceScore model.ser testFile resultDir");
37 return -1;
38 }
39 final String modelFileName = args[0];
40 final String testFileName = args[1];
41 final String resultFileName = args[2];
42 run(modelFileName,testFileName,resultFileName);
43 return 0;
44 }
45
46 public double run(final String modelFileName, final String testFileName, final String resultFileName) throws Exception {
47 final Log log = LogFactory.getLog(MapReduceScore.class);

Callers 2

testMRScoreMethod · 0.95
mainMethod · 0.45

Calls 12

copyMethod · 0.95
readFirstLineMethod · 0.95
serializableToStringMethod · 0.95
scoreMethod · 0.95
scoreMethod · 0.95
formatSolnMethod · 0.80
defMethod · 0.80
outcomeMethod · 0.80
useInterceptMethod · 0.80
dimMethod · 0.65
noutcomesMethod · 0.65
toStringMethod · 0.45

Tested by 1

testMRScoreMethod · 0.76