cymr.cmr.load_patterns#

cymr.cmr.load_patterns(h5_file, features=None)#

Load weights from an hdf5 file.

Parameters:
  • h5_file (str) – Path to file saved with save_patterns.

  • features (list of str, optional) – Names of features to load. Default is to load all features.

Returns:

patterns – Loaded patterns. The “vector” field contains vector patterns. The “similarity” field contains pairwise similarity matrices. Each type of pattern contains a field for each loaded feature.

Return type:

dict of (str: dict of (str: numpy.array))