fixed the regularization issue in the LogisticRegression for DBNs