(self, result_counts, adjustment_factor)
return col_result_obj_dict
Given event count information calculate iv information

        Parameters
        ----------
        result_counts: dict or table.
            It is like:
                {'x1': [[event_count, non_event_count], [event_count, non_event_count] ... ],
                 'x2': [[event_count, non_event_count], [event_count, non_event_count] ... ],
                 ...
                }

        adjustment_factor : float
            The adjustment factor when calculating WOE

        Returns
        -------
        Dict of IVAttributes object
            {'x1': attr_obj,
             'x2': attr_obj
             ...
             }
Given event count information calculate iv information
Given event count information calculate iv information
def cal_single_label_iv_woe(self, result_counts, adjustment_factor):
        """
        Given event count information calculate iv information

        Parameters
        ----------
        result_counts: dict or table.
            It is like:
                {'x1': [[event_count, non_event_count], [event_count, non_event_count] ... ],
                 'x2': [[event_count, non_event_count], [event_count, non_event_count] ... ],
                 ...
                }

        adjustment_factor : float
            The adjustment factor when calculating WOE

        Returns
        -------
        Dict of IVAttributes object
            {'x1': attr_obj,
             'x2': attr_obj
             ...
             }
        """
        if isinstance(result_counts, dict):
            col_result_obj_dict = {}
            for col_name, data_event_count in result_counts.items():
                col_result_obj = self.woe_1d(data_event_count, adjustment_factor)
                col_result_obj_dict[col_name] = col_result_obj
        else:
            woe_1d = functools.partial(self.woe_1d, adjustment_factor=adjustment_factor)
            col_result_obj_dict = dict(result_counts.mapValues(woe_1d).collect())
        return col_result_obj_dict
def cal_single_label_iv_woe ( self , result_counts , adjustment_factor ) : if isinstance ( result_counts , dict ) : col_result_obj_dict = { } for col_name , data_event_count in result_counts . items ( ) : col_result_obj = self . woe_1d ( data_event_count , adjustment_factor ) col_result_obj_dict [ col_name ] = col_result_obj else : woe_1d = functools . partial ( self . woe_1d , adjustment_factor = adjustment_factor ) col_result_obj_dict = dict ( result_counts . mapValues ( woe_1d ) . collect ( ) ) return col_result_obj_dict