added func ReadTrainFromData(input, output [][]FannType) *TrainData