Class GalleryTwins
test_gallery_* parity twins.
WHAT THE REFERENCE DOES. Every one of the 57 test_gallery_*.py
scripts is the same three lines: import gallery_<name>, build it, and
print MVA(model).getAvgTable(). No script pins a method, a seed or a
run length, and none of them runs a second solver -- verified across all 57 on
2026-08-26. So the twin is that same shape, and the only thing that varies is
which builder it calls.
WHY REFLECTION. jline.examples.java.Gallery already carries the JAR's
transcription of those models, one public static Network
gallery_<name>() each, and the golden is filed under test_ plus that
name. Sweeping the class registers every model it holds and keeps registering
them as the gallery grows; a hand-kept list of 48 names is a list that stops
matching the corpus the first time one is added.
Only the NO-ARGUMENT builders are swept. An overload that takes a parameter is a family of models rather than the one the reference script names, and choosing an argument here would silently answer a different network.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidregister(Map<String, ParityExample> reg) Add every gallery model toreg, leaving an existing name alone.
-
Method Details
-
register
Add every gallery model toreg, leaving an existing name alone.
-