(minibatches, minibatch_markers, epoch_axis)
return x
Helper function to build x axis for data captured per minibatch.

    Arguments:
        minibatches (int): how many total minibatches
        minibatch_markers (int array): cumulative number of minibatches complete at a given epoch
        epoch_axis (bool): whether to render epoch or minibatch as the integer step in the x axis
Helper function to build x axis for data captured per minibatch.
Helper function to build x axis for data captured per minibatch .
def create_minibatch_x(minibatches, minibatch_markers, epoch_axis):
    """
    Helper function to build x axis for data captured per minibatch.

    Arguments:
        minibatches (int): how many total minibatches
        minibatch_markers (int array): cumulative number of minibatches complete at a given epoch
        epoch_axis (bool): whether to render epoch or minibatch as the integer step in the x axis
    """
    if epoch_axis:
        x = np.zeros((minibatches,))
        last_e = 0
        for e_idx, e in enumerate(minibatch_markers):
            e_minibatches = e - last_e
            x[last_e:e] = e_idx + (np.arange(float(e_minibatches)) / e_minibatches)
            last_e = e
    else:
        x = np.arange(minibatches)

    return x
def create_minibatch_x ( minibatches , minibatch_markers , epoch_axis ) : if epoch_axis : x = np . zeros ( ( minibatches , ) ) last_e = 0 for e_idx , e in enumerate ( minibatch_markers ) : e_minibatches = e - last_e x [ last_e : e ] = e_idx + ( np . arange ( float ( e_minibatches ) ) / e_minibatches ) last_e = e else : x = np . arange ( minibatches ) return x