def debug_one_row_rbf_kernel(X, gamma=None):
    W = np.zeros((X.shape[0], X.shape[0]))
    W_gt = pairwise_kernels(X, metric='rbf', filter_params=True, gamma=gamma)
    for (i, row) in enumerate(X):
        W[i] = one_row_rbf_kernel(X, i, gamma=gamma)
def debug_one_row_rbf_kernel(X, gamma=None):
    W = np.zeros((X.shape[0], X.shape[0]))
    W_gt = pairwise_kernels(X, metric='rbf', filter_params=True, gamma=gamma)
    for (i, row) in enumerate(X):
        W[i] = one_row_rbf_kernel(X, i, gamma=gamma)