def _grow_gsom(self,
                inputs,
                dimensions,
                plot_for_itr=0,
                classes=None,
                output_loc=None):
     self.gsom = GSOM_Core.GSOM(self.params.get_gsom_parameters(),
                                inputs,
                                dimensions,
                                plot_for_itr=plot_for_itr,
                                activity_classes=classes,
                                output_loc=output_loc)
     self.gsom.grow()
     self.gsom.smooth()
     self.gsom_nodemap = self.gsom.assign_hits()
예제 #2
0
 def _grow_gsom(self,
                inputs,
                X_test,
                dimensions,
                plot_for_itr=0,
                classes=None,
                output_loc=None):
     gsom = GSOM_Core.GSOM(self.params.get_gsom_parameters(),
                           inputs,
                           dimensions,
                           plot_for_itr=plot_for_itr,
                           activity_classes=classes,
                           output_loc=output_loc)
     gsom.grow()
     gsom.smooth()
     self.gsom_nodemap = gsom.assign_hits()
     gsom.finalize_gsom_label()
     y_pred = gsom.predict(X_test)
     return y_pred