(attrs)
return disc_var_idx, cont_var_idx, time_var_idx, string_var_idx
Get the indices of different attribute types eg. discrete.
Get the indices of different attribute types eg. discrete.
Get the indices of different attribute types eg . discrete .
def _attr_indices(attrs):
        # type: (List) -> Tuple[List[int], List[int], List[int], List[int]]
        """Get the indices of different attribute types eg. discrete."""
        disc_var_idx = [i for i, attr in enumerate(attrs) if isinstance(attr, DiscreteVariable)]
        cont_var_idx = [i for i, attr in enumerate(attrs)
                        if isinstance(attr, ContinuousVariable)
                        and not isinstance(attr, TimeVariable)]
        time_var_idx = [i for i, attr in enumerate(attrs) if isinstance(attr, TimeVariable)]
        string_var_idx = [i for i, attr in enumerate(attrs) if isinstance(attr, StringVariable)]
        return disc_var_idx, cont_var_idx, time_var_idx, string_var_idx
def _attr_indices ( attrs ) : # type: (List) -> Tuple[List[int], List[int], List[int], List[int]] disc_var_idx = [ i for i , attr in enumerate ( attrs ) if isinstance ( attr , DiscreteVariable ) ] cont_var_idx = [ i for i , attr in enumerate ( attrs ) if isinstance ( attr , ContinuousVariable ) and not isinstance ( attr , TimeVariable ) ] time_var_idx = [ i for i , attr in enumerate ( attrs ) if isinstance ( attr , TimeVariable ) ] string_var_idx = [ i for i , attr in enumerate ( attrs ) if isinstance ( attr , StringVariable ) ] return disc_var_idx , cont_var_idx , time_var_idx , string_var_idx