(self, attr)
return self._corr_attrs[(attr, self._cor_strength)]
TODO: refactor this with Domain::get_corr_attributes().
TODO: refactor this with Domain::get_corr_attributes().
TODO : refactor this with Domain :: get_corr_attributes () .
def _get_corr_attributes(self, attr):
        """
        TODO: refactor this with Domain::get_corr_attributes().
        """
        if (attr, self._cor_strength) not in self._corr_attrs:
            self._corr_attrs[(attr, self._cor_strength)] = []

            if attr in self._correlations:
                attr_correlations = self._correlations[attr]
                self._corr_attrs[(attr, self._cor_strength)] = [corr_attr
                                                                for corr_attr, corr_strength in attr_correlations.items()
                                                                if corr_attr != attr and corr_strength > self._cor_strength]

        return self._corr_attrs[(attr, self._cor_strength)]
def _get_corr_attributes ( self , attr ) : if ( attr , self . _cor_strength ) not in self . _corr_attrs : self . _corr_attrs [ ( attr , self . _cor_strength ) ] = [ ] if attr in self . _correlations : attr_correlations = self . _correlations [ attr ] self . _corr_attrs [ ( attr , self . _cor_strength ) ] = [ corr_attr for corr_attr , corr_strength in attr_correlations . items ( ) if corr_attr != attr and corr_strength > self . _cor_strength ] return self . _corr_attrs [ ( attr , self . _cor_strength ) ]