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

15
LINES

< > BotCompany Repo | #1020470 // testTrainableFunction

JavaX fragment (include)

static TestResults testTrainableFunction(O function, L trainingParams, L testParams, O... _) {
  new TestResults results;
  O trained = callF(function, trainingParams);
  if (boolPar(_, 'printTrainedStruct))
    printStruct(trained);
  for (O key, O value : listParamsToMap(testParams)) {
    try {
      O out = callF(trained, key);
      results.add(testResult_eq_verbose(out, value));
    } catch e {
      results.add(testResult_error(e));
    }
  }
  ret results;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1020470
Snippet name: testTrainableFunction
Eternal ID of this version: #1020470/5
Text MD5: 1e3c6aa210e9197ab253e8fbffffae3a
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-23 19:48:23
Source code size: 484 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 279 / 336
Version history: 4 change(s)
Referenced in: [show references]