This is more or less a case of overfitting.  The algorithm works on the training set but doesn&#x27;t generalize well.  Tweaking the algorithm by decreasing the number of nodes in the hidden layer and doing cross-validation usually can help with this.