The implementation of DBN ( RBM) and softmax regression