Learn the training of sample. Called by train.
sample
bool learn(List<P> samples, double targetGlobalError);