The sample complexity of a machine learning algorithm represents the number of training-samples that it needs in order to successfully learn a target function. The sample complexity of a machine learning algorithm represents the number of training-samples that it needs in order to successfully learn a target function.