(self, data)
Set the input train dataset.
Set the input train dataset.
Set the input train dataset .
def set_data(self, data):
        """Set the input train dataset."""
        self.Error.data_error.clear()
        self.data = data

        if data is not None and data.domain.class_var is None:
            if data.domain.class_vars:
                self.Error.data_error(
                    "Data contains multiple target variables.\n"
                    "Select a single one with the Select Columns widget.")
            else:
                self.Error.data_error(
                    "Data has no target variable.\n"
                    "Select one with the Select Columns widget.")
            self.data = None

        self.update_model()
def set_data ( self , data ) : self . Error . data_error . clear ( ) self . data = data if data is not None and data . domain . class_var is None : if data . domain . class_vars : self . Error . data_error ( "Data contains multiple target variables.\n" "Select a single one with the Select Columns widget." ) else : self . Error . data_error ( "Data has no target variable.\n" "Select one with the Select Columns widget." ) self . data = None self . update_model ( )