first major draft of DBN's preTrain method