Libraryless. Click here for Pure Java version (16551L/114K).
1 | // adds negations to best theories by complexity |
2 | runnable srecord PatternMaker1_Strategy2(PatternMaker1 pm) { |
3 | pm.new Strategy1().run(); |
4 | |
5 | for (PatternMaker1.Theory t : values(pm.bestByComplexity)) { |
6 | print("Have theory: " + t.pattern + ", unsolved: " + t.unsolvedExamples()); |
7 | for (PatternMaker1.Example e : filterWhere(t.unsolvedExamples(), pos := false)) |
8 | for (S negPat : ai_inputExampleToPossibleMMOPatterns1(e.text)) |
9 | pm.addPattern(print("Trying pattern", "(" + t.pattern + ") + !(" + negPat + ")")); |
10 | } |
11 | } |
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: | 251 / 594 |
Version history: | 11 change(s) |
Referenced in: | [show references] |