.import java.util.Random;public class DBN public int N;public int n_ins;public int hidden_layer_sizes;public int n_outs;public int n_layers;public HiddenLayer sigmoid_layers;public RBM rbm_layers;public LogisticRegression log_layer;public Random rng;public static double sigmoid(double x) return 1.0 / (1.0 + Math.pow(Math.E, -x);/DBN 的构造函数 N 为样本的个数, n-ins 为特征个数, hidden_layer_sizes 为 隐藏层的结构, n-outs 为输出维数, n-layers 为隐藏层个数, rng 为随机数实例