コード例 #1
0
 public DoubleMatrix propdown(DoubleMatrix h) {
   return MatrixMath.sigmoid(h.mmul(this.weights).addi(vbias.repmat(v_data.rows, 1)));
 }
コード例 #2
0
 public DoubleMatrix propup(DoubleMatrix v) {
   return MatrixMath.sigmoid(
       this.weights.mmul(v.transpose()).transpose().addi(hbias.repmat(v_data.rows, 1)));
 }