(self)
return self.id_to_grp_
Mapping of unique group id (int) to unique group string (str), i.e.
        the inverse of :attr:`GroupVectorizer.vocabulary_grps`. This attribute
        is only generated if needed, and it is automatically kept in sync
        with the corresponding vocabulary.
Mapping of unique group id (int) to unique group string (str), i.e.
        the inverse of :attr:`GroupVectorizer.vocabulary_grps`. This attribute
        is only generated if needed, and it is automatically kept in sync
        with the corresponding vocabulary.
Mapping of unique group id ( int ) to unique group string ( str ) i . e . the inverse of : attr : GroupVectorizer . vocabulary_grps . This attribute is only generated if needed and it is automatically kept in sync with the corresponding vocabulary .
def id_to_grp(self) -> Dict[int, str]:
        """
        Mapping of unique group id (int) to unique group string (str), i.e.
        the inverse of :attr:`GroupVectorizer.vocabulary_grps`. This attribute
        is only generated if needed, and it is automatically kept in sync
        with the corresponding vocabulary.
        """
        if len(self.id_to_grp_) != self.vocabulary_grps:
            self.id_to_grp_ = {
                grp_id: grp_str for grp_str, grp_id in self.vocabulary_grps.items()
            }
        return self.id_to_grp_
def id_to_grp ( self ) -> Dict [ int , str ] : if len ( self . id_to_grp_ ) != self . vocabulary_grps : self . id_to_grp_ = { grp_id : grp_str for grp_str , grp_id in self . vocabulary_grps . items ( ) } return self . id_to_grp_