(self, dataset)
:param data_df: (pandas.DataFrame) contains the data to compute co-occurrence features for.
        :param attrs: attributes in columns of :param data_df: to compute feautres for.
        :param freq: (dict { attr: { val: count } } }) if not None, uses these
            frequency statistics instead of computing it from data_df.
        :param cooccur_freq: (dict { attr1: { attr2: { val1: { val2: count } } } })
            if not None, uses these co-occurrence statistics instead of
            computing it from data_df.
:param data_df: (pandas.DataFrame) contains the data to compute co-occurrence features for.
        :param attrs: attributes in columns of :param data_df: to compute feautres for.
        :param freq: (dict { attr: { val: count } } }) if not None, uses these
            frequency statistics instead of computing it from data_df.
        :param cooccur_freq: (dict { attr1: { attr2: { val1: { val2: count } } } })
            if not None, uses these co-occurrence statistics instead of
            computing it from data_df.
: param data_df : ( pandas . DataFrame ) contains the data to compute co - occurrence features for . : param attrs : attributes in columns of : param data_df : to compute feautres for . : param freq : ( dict { attr : { val : count } } } ) if not None uses these frequency statistics instead of computing it from data_df . : param cooccur_freq : ( dict { attr1 : { attr2 : { val1 : { val2 : count } } } } ) if not None uses these co - occurrence statistics instead of computing it from data_df .
def __init__(self, dataset):
        """
        :param data_df: (pandas.DataFrame) contains the data to compute co-occurrence features for.
        :param attrs: attributes in columns of :param data_df: to compute feautres for.
        :param freq: (dict { attr: { val: count } } }) if not None, uses these
            frequency statistics instead of computing it from data_df.
        :param cooccur_freq: (dict { attr1: { attr2: { val1: { val2: count } } } })
            if not None, uses these co-occurrence statistics instead of
            computing it from data_df.
        """
        self.ds = dataset
        self.attrs = self.ds.get_attributes()
        self.attr_to_idx = {attr: idx for idx, attr in enumerate(self.attrs)}
        self.n_attrs = len(self.attrs)
def __init__ ( self , dataset ) : self . ds = dataset self . attrs = self . ds . get_attributes ( ) self . attr_to_idx = { attr : idx for idx , attr in enumerate ( self . attrs ) } self . n_attrs = len ( self . attrs )