1 | static <A, B> F1<F1<A, B>, Double> f1_scorePreciseRecognizer(final LPair<A, B> trainingList) { |
2 | ret func(F1<A, B> recognizer) -> Double { |
3 | new Scorer scorer; |
4 | for (Pair<A, B> p : trainingList) |
5 | scorer.add(eq(recognizer.get(p.a), p.b)); |
6 | ret scorer!; |
7 | }; |
8 | } |
Began life as a copy of #1019248
download show line numbers debug dex old transpilations
Travelled to 12 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1019254 |
Snippet name: | f1_scorePreciseRecognizer |
Eternal ID of this version: | #1019254/3 |
Text MD5: | b85fa3726686feb408275e7573c26558 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-10-28 17:34:43 |
Source code size: | 278 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 268 / 319 |
Version history: | 2 change(s) |
Referenced in: | [show references] |