STY: a few cleanups.
MAINT: don't cover tests.
ENH: add _learned_pool to keep learned rules.
STY: split long line.