EM::setTrainData (issue #3674)

2 fixed unassigned reshapes in em (#3674)