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

Method observe

src/com/winvector/variables/BTable.java:44–54  ·  view source on GitHub ↗
(final BurstMap row)

Source from the content-addressed store, hash-verified

42 }
43
44 @Override
45 public void observe(final BurstMap row) {
46 final double weight = oldAdapter.weight(row);
47 if(weight>0.0) {
48 final String resStr = row.getAsString(oldAdapter.def().resultColumn);
49 final int category = oldAdapter.category(resStr);
50 if(category>=0) {
51 sampler.observe(row);
52 }
53 }
54 }
55 }
56
57

Callers

nothing calls this directly

Calls 4

defMethod · 0.80
weightMethod · 0.65
categoryMethod · 0.65
observeMethod · 0.65

Tested by

no test coverage detected