Warning: session_start(): open(/var/lib/php/sessions/sess_8q0mr1q9ttvcueev201c09pum6, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
static IterableIterator findBest_Audio_TwoWordAnalyzer1(LPair images) {
replace A with Audio_TwoWordAnalyzer1.
final LS words = uniquify(pairsA(images));
final new Best best;
final new AIStrategy_RandomWithVariation strategy;
strategy.random = func -> A { random_Audio_TwoWordAnalyzer1(first(words), second(words)) };
// todo: variation
strategy.submit = func(final A a) -> double {
new Scorer scorer;
for (Pair img : images)
scorer.add(eqic(img.a, a.analyze(img.b)));
if (best.put(a, scorer!))
print(scorer + " / " + struct(a));
ret scorer!;
};
ret iff(r {
if (best.score() == 100) ret endMarker();
A lastBest = best!;
strategy.go();
A a = best! == lastBest ? null : best!;
lastBest = best!;
ret a;
});
}