Generalization error bounds for classifiers trained with interdependent data