traing nn without theano