| Conditions | 2 |
| Total Lines | 9 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import attr |
||
| 13 | map_obj = self.trainer.infer_map(nb_cols, nb_rows, dataset, **kwargs) # backend dependent (eg somoclu kind of object) |
||
| 14 | self.subject.state = map_obj |
||
| 15 | self.subject.notify() |
||
| 16 | return SelfOrganizingMap(map_obj, dataset.name) |
||
| 17 | except NoFeatureVectorsError as e: |
||
| 18 | logger.info(f"{e}. Fire up an 'encode' command.") |
||
|
|
|||
| 19 | raise e |
||
| 20 | |||
| 21 | |||
| 22 | class NoFeatureVectorsError(Exception): pass |
||
| 23 |