peal.sparse_dictionaries.sparse_dictionary_factory¶
Factory that builds a SparseDictionary from a config, path or instance.
The yaml key sparse_dictionaries_type names the concrete class; the
factory discovers every SparseDictionary subclass under
peal/sparse_dictionaries by name and instantiates the matching one.
Weights are loaded from config.weights_path when that file exists, so a
dictionary fitted by a previous run is reused instead of refitted.
Functions
Build (or pass through) a sparse dictionary and load its weights. |