src/proteingnn/util.py
def dual_confusion_matrix_plot(cms: List[np.array]) -> Figure:
    """Utility function to plot two confusion matrix in parallel.

    Suggest to use in train-val logging visualization.

    Args:
        cms: List of confusion matrix in numpy.Array
    """
    fig, ax = plt.subplots(figsize=(12 * len(cms) * 12))

    for i, cm in enumerate(cms):
        ax = confusion_matrix_plot(cm, return_fig=False)
        if i == 0:
            fig.axes = [ax]
        else:
            fig.axes.append(ax)

    return fig
Utility function to plot two confusion matrix in parallel.

    Suggest to use in train-val logging visualization.

    Args:
        cms: List of confusion matrix in numpy.Array
    
Utility function to plot two confusion matrix in parallel.
Suggest to use in train-val logging visualization.
Utility function to plot two confusion matrix in parallel . Suggest to use in train - val logging visualization .
def dual_confusion_matrix_plot(cms: List[np.array]) -> Figure:
    fig, ax = plt.subplots(figsize=(12 * len(cms) * 12))
    for i, cm in enumerate(cms):
        ax = confusion_matrix_plot(cm, return_fig=False)
        if i == 0:
            fig.axes = [ax]
        else:
            fig.axes.append(ax)
    return fig
def dual_confusion_matrix_plot ( cms : List [ np . array ] ) -> Figure : fig , ax = plt . subplots ( figsize = ( 12 * len ( cms ) * 12 ) ) for i , cm in enumerate ( cms ) : ax = confusion_matrix_plot ( cm , return_fig = False ) if i == 0 : fig . axes = [ ax ] else : fig . axes . append ( ax ) return fig
Utility function to plot two confusion matrix in parallel.
Utility function to plot two confusion matrix in parallel .
"""Utility function to plot two confusion matrix in parallel.

    Suggest to use in train-val logging visualization.

    Args:
        cms: List of confusion matrix in numpy.Array
    """
cms
List[np.array]
List of confusion matrix in numpy.Array
List of confusion matrix in numpy . Array