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

11
LINES

< > BotCompany Repo | #1028127 - PatternMaker1_Strategy2

JavaX fragment (include) [tags: use-pretranspiled]

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   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, 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: 85 / 245
Version history: 11 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1028127 & http://1028127.tinybrain.de