#10: Fixed error in training data generation

Incorrect target function used to generate training data.