DictsToXY#
- class polpo.preprocessing.learning.DictsToXY[source]#
Bases:
Pipeline
Convert two key-matching dictionaries into (X, y) for learning.
Expects a list of two dictionaries with identical keys. Merges them by key, swaps the nesting to produce (key -> [x, y]) pairs, and returns a tuple of two elements: an array for X and a list for y.
- load()#
Load data.