1 | static TestResults testTrainableFunction(O function, L trainingParams, L testParams, O... _) { |
2 | new TestResults results; |
3 | O trained = callF(function, trainingParams); |
4 | if (boolPar(_, 'printTrainedStruct)) |
5 | printStruct(trained); |
6 | for (O key, O value : listParamsToMap(testParams)) { |
7 | try { |
8 | O out = callF(trained, key); |
9 | results.add(testResult_eq_verbose(out, value)); |
10 | } catch e { |
11 | results.add(testResult_error(e)); |
12 | } |
13 | } |
14 | ret results; |
15 | } |
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: | 281 / 339 |
Version history: | 4 change(s) |
Referenced in: | [show references] |