set the RBM associated to the linear mapping to the last layer
calculate sugmoid function