(data, alg1, alg2)
return fig
Generate a figure with a paired plot

    Parameters
    ----------
    data: DataFrame
        dataframe obtained from evaluation
    alg1: str
        Name of a member of column data.pipeline
    alg2: str
        Name of a member of column data.pipeline

    Returns
    -------
    fig: Figure
        Pyplot handle
Generate a figure with a paired plot
Generate a figure with a paired plot
def paired_plot(data, alg1, alg2):
    """Generate a figure with a paired plot

    Parameters
    ----------
    data: DataFrame
        dataframe obtained from evaluation
    alg1: str
        Name of a member of column data.pipeline
    alg2: str
        Name of a member of column data.pipeline

    Returns
    -------
    fig: Figure
        Pyplot handle
    """
    data = collapse_session_scores(data)
    data = data[data.pipeline.isin([alg1, alg2])]
    data = data.pivot_table(
        values="score", columns="pipeline", index=["subject", "dataset"]
    )
    data = data.reset_index()
    fig = plt.figure(figsize=(11, 8.5))
    ax = fig.add_subplot(111)
    data.plot.scatter(alg1, alg2, ax=ax)
    ax.plot([0, 1], [0, 1], ls="--", c="k")
    ax.set_xlim([0.5, 1])
    ax.set_ylim([0.5, 1])
    return fig
def paired_plot ( data , alg1 , alg2 ) : data = collapse_session_scores ( data ) data = data [ data . pipeline . isin ( [ alg1 , alg2 ] ) ] data = data . pivot_table ( values = "score" , columns = "pipeline" , index = [ "subject" , "dataset" ] ) data = data . reset_index ( ) fig = plt . figure ( figsize = ( 11 , 8.5 ) ) ax = fig . add_subplot ( 111 ) data . plot . scatter ( alg1 , alg2 , ax = ax ) ax . plot ( [ 0 , 1 ] , [ 0 , 1 ] , ls = "--" , c = "k" ) ax . set_xlim ( [ 0.5 , 1 ] ) ax . set_ylim ( [ 0.5 , 1 ] ) return fig