Commit fb47d97
committed
Respond to code review feedback
This makes two slight changes after discussing code review feedback:
1. We move the assignment of the @Detections instance variable down
below the first guard clause in the Detector::MlCitation initializer.
This better accounts for the fact that the Term model implements its
own guard clause, resulting in the rest of the application seeing a
detector result of null if the detector is not enabled via env vars.
2. Adds a note to the enough_nonzero_values? method comment explaining
how we came to decide that three non-zero feature values is
sufficient. This includes links to the notebooks where we conducted
that analysis.1 parent 34bfe5e commit fb47d97
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | 12 | | |
14 | 13 | | |
| 14 | + | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
158 | 159 | | |
159 | 160 | | |
160 | 161 | | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
161 | 167 | | |
162 | 168 | | |
163 | 169 | | |
| |||
0 commit comments