added logistic and neural network training