Libraryless. Click here for Pure Java version (16551L/114K).
// adds negations to best theories by complexity runnable srecord PatternMaker1_Strategy2(PatternMaker1 pm) { pm.new Strategy1().run(); for (PatternMaker1.Theory t : values(pm.bestByComplexity)) { print("Have theory: " + t.pattern + ", unsolved: " + t.unsolvedExamples()); for (PatternMaker1.Example e : filterWhere(t.unsolvedExamples(), pos := false)) for (S negPat : ai_inputExampleToPossibleMMOPatterns1(e.text)) pm.addPattern(print("Trying pattern", "(" + t.pattern + ") + !(" + negPat + ")")); } }
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1028127 |
Snippet name: | PatternMaker1_Strategy2 |
Eternal ID of this version: | #1028127/12 |
Text MD5: | cbdad01c20f0e5e0408ee38458ca71fc |
Transpilation MD5: | 9e84b6eec1b4843718652f02ea49c340 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-11-05 21:52:15 |
Source code size: | 543 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 252 / 594 |
Version history: | 11 change(s) |
Referenced in: | #1034167 - Standard Classes + Interfaces (LIVE, continuation of #1003674) |