Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

8
LINES

< > BotCompany Repo | #1019254 // f1_scorePreciseRecognizer

JavaX fragment (include)

static <A, B> F1<F1<A, B>, Double> f1_scorePreciseRecognizer(final LPair<A, B> trainingList) {
  ret func(F1<A, B> recognizer) -> Double {
    new Scorer scorer;
    for (Pair<A, B> p : trainingList)
      scorer.add(eq(recognizer.get(p.a), p.b));
    ret scorer!;
  };
}

Author comment

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: 267 / 317
Version history: 2 change(s)
Referenced in: [show references]