def build_wedge_text_source(df, start_col='start', end_col='end',
                            center_col='centers'):
    x, y = polar_to_cartesian(df[center_col], df[start_col], df[end_col])

    # extract text from the levels in index
    df = add_text_label_from_index(df)
    df['text_angle'] = calc_text_angle(df['start'], df['end'])
    df.ix[df.level == 0, 'text_angle'] = 0.0
    text_source = ColumnDataSource(dict(text=df['text'], x=x, y=y,
                                        text_angle=df['text_angle']))
    return text_source
Generates predictions for the input samples from a data generator.
dataset/ETHPy150Open bokeh/bokeh/bokeh/charts/utils.py/build_wedge_text_source--crossover with--dataset/ETHPy150Open fchollet/keras/keras/engine/training.py/Model.predict_generator