Conditions | 2 |
Total Lines | 10 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import logging |
||
15 | def create(self, dataset, nb_cols, nb_rows, **kwargs): |
||
16 | try: |
||
17 | # run a backend algorithm and get a self-organising map representation object |
||
18 | somoclu_map = self.trainer.infer_map(nb_cols, nb_rows, dataset, **kwargs) |
||
19 | self.subject.state = somoclu_map |
||
20 | self.subject.notify() |
||
21 | return SelfOrganizingMap(somoclu_map, dataset.name) |
||
22 | except NoFeatureVectorsError as exception: |
||
23 | logger.info("%s Fire up an 'encode' command.", str(exception)) |
||
24 | raise exception |
||
25 |