this function do a top-down pretraining in a single rbm