Exemplo n.º 1
0
    def update_event(self, input_called=-1):
        if input_called == 0:
            clf = NuSVC()
            if self.input(1) != None:
                clf.set_params(**self.input(1))
            X = self.input(2)
            y = self.input(3)

            clf.fit(X, y)
            self.set_output_val(1, clf)

            self.exec_output(0)