(self)
return domain
Return the current effective discretized domain.
Return the current effective discretized domain.
Return the current effective discretized domain .
def discretized_domain(self):
        """
        Return the current effective discretized domain.
        """
        if self.data is None:
            return None

        # a mapping of all applied changes for variables in `varmodel`
        mapping = {var: self.discretized_var(i)
                   for i, var in enumerate(self.varmodel)}

        def disc_var(source):
            return mapping.get(source, source)

        # map the full input domain to the new variables (where applicable)
        attributes = [disc_var(v) for v in self.data.domain.attributes]
        attributes = [v for v in attributes if v is not None]

        class_vars = [disc_var(v) for v in self.data.domain.class_vars]
        class_vars = [v for v in class_vars if v is not None]

        domain = Orange.data.Domain(
            attributes, class_vars, metas=self.data.domain.metas
        )
        return domain
def discretized_domain ( self ) : if self . data is None : return None # a mapping of all applied changes for variables in `varmodel` mapping = { var : self . discretized_var ( i ) for i , var in enumerate ( self . varmodel ) } def disc_var ( source ) : return mapping . get ( source , source ) # map the full input domain to the new variables (where applicable) attributes = [ disc_var ( v ) for v in self . data . domain . attributes ] attributes = [ v for v in attributes if v is not None ] class_vars = [ disc_var ( v ) for v in self . data . domain . class_vars ] class_vars = [ v for v in class_vars if v is not None ] domain = Orange . data . Domain ( attributes , class_vars , metas = self . data . domain . metas ) return domain