(self, data)
Set the input train dataset.
Set the input train dataset.
Set the input train dataset .
def set_dataset(self, data):
        """Set the input train dataset."""
        # Clear all results/scores
        for id in list(self.results):
            self.results[id] = None
        for id in list(self.curves):
            self.curves[id] = None

        self.data = data

        if data is not None:
            self.infoa.setText("%d instances in input dataset" % len(data))
        else:
            self.infoa.setText("No data on input.")

        self.commitBtn.setEnabled(self.data is not None)
def set_dataset ( self , data ) : # Clear all results/scores for id in list ( self . results ) : self . results [ id ] = None for id in list ( self . curves ) : self . curves [ id ] = None self . data = data if data is not None : self . infoa . setText ( "%d instances in input dataset" % len ( data ) ) else : self . infoa . setText ( "No data on input." ) self . commitBtn . setEnabled ( self . data is not None )