(transform_cols_idx, split_points_dict, header)
return result
Get which bins the 0 located at for each column.

        Returns
        -------
        Dict of sparse bin num
            {0: 2, 1: 3, 2:5 ... }
Get which bins the 0 located at for each column.
Get which bins the 0 located at for each column .
def get_sparse_bin(transform_cols_idx, split_points_dict, header):
        """
        Get which bins the 0 located at for each column.

        Returns
        -------
        Dict of sparse bin num
            {0: 2, 1: 3, 2:5 ... }
        """
        result = {}
        for col_idx in transform_cols_idx:
            col_name = header[col_idx]
            split_points = split_points_dict[col_name]
            sparse_bin_num = BaseBinning.get_bin_num(0, split_points)
            result[col_idx] = sparse_bin_num
        return result
def get_sparse_bin ( transform_cols_idx , split_points_dict , header ) : result = { } for col_idx in transform_cols_idx : col_name = header [ col_idx ] split_points = split_points_dict [ col_name ] sparse_bin_num = BaseBinning . get_bin_num ( 0 , split_points ) result [ col_idx ] = sparse_bin_num return result