(self, data=None, parent=None)
Parameters
        ----------
        data : Optional[Table]
        parent : Optional[QWidget]
def __init__(self, data=None, parent=None):
        """

        Parameters
        ----------
        data : Optional[Table]
        parent : Optional[QWidget]

        """
        super().__init__(parent)

        self.table = None  # type: Optional[Table]
        self.domain = None  # type: Optional[Domain]
        self.target_var = None  # type: Optional[Variable]
        self.n_attributes = self.n_instances = 0

        self.__attributes = self.__class_vars = self.__metas = None
        # sets of variables for fast membership tests
        self.__attributes_set = set()
        self.__class_vars_set = set()
        self.__metas_set = set()
        self.__distributions_cache = {}

        no_data = np.array([])
        self._variable_types = self._variable_names = no_data
        self._min = self._max = self._center = self._median = no_data
        self._dispersion = no_data
        self._missing = no_data
        # Clear model initially to set default values
        self.clear()

        self.set_data(data)
def __init__ ( self , data = None , parent = None ) : super ( ) . __init__ ( parent ) self . table = None # type: Optional[Table] self . domain = None # type: Optional[Domain] self . target_var = None # type: Optional[Variable] self . n_attributes = self . n_instances = 0 self . __attributes = self . __class_vars = self . __metas = None # sets of variables for fast membership tests self . __attributes_set = set ( ) self . __class_vars_set = set ( ) self . __metas_set = set ( ) self . __distributions_cache = { } no_data = np . array ( [ ] ) self . _variable_types = self . _variable_names = no_data self . _min = self . _max = self . _center = self . _median = no_data self . _dispersion = no_data self . _missing = no_data # Clear model initially to set default values self . clear ( ) self . set_data ( data )