svoid gazelle_addPredictionToTreeNode(GazelleTree child, O... _) { bool debug = boolPar debug(_); Set<S> badComments = cast optPar badComments(_); Set<S> acceptablePurposes = cast optPar acceptablePurposes(_); RuleEngine2_MatchedRule r = child.mr; GazelleEvalContext ctx = child.ctx; if (containsAny(r.rule.comments, badComments) || acceptablePurposes != null && !acceptablePurposes.contains(unnull(r.rule.purpose))) { if (debug) print("prediction=bad for various reasons"); child.prediction = 'bad; } else { /*ai_gazelle_analyzeStatementsForRule_Data data = ctx.dataByRule.get(r.rule.globalID); child.prediction = data == null ? null : ai_gazelle_predictor1_onData(r, data);*/ if (ctx.predictor == null) child.prediction = null; else { child.prediction = ctx.predictor.get(ctx, r); if (debug) print("Prediction=" + child.prediction + " for " + r + " (" + (r.moreConditions() ? "unsatisfied" : "satisfied") + ") by " + ctx.predictor); } } }
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, whxojlpjdney
No comments. add comment
Snippet ID: | #1022013 |
Snippet name: | gazelle_addPredictionToTreeNode |
Eternal ID of this version: | #1022013/4 |
Text MD5: | 936dabda9e623da352a56fa886facc32 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-03-05 16:58:56 |
Source code size: | 1034 bytes / 23 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 282 / 312 |
Version history: | 3 change(s) |
Referenced in: | [show references] |