Examples of subi()


Examples of com.numb3r3.common.math.Matrix.subi()

    @Override
    public Matrix sub(Matrix other) {
        if (this.isSameDim(other)) {
            Matrix dump = this.dup();
            dump.subi(other);
            return dump;
        } else {
            errorProcessor
                    .error("the two matrices should have same dimensions.");
            return null;
View Full Code Here

Examples of com.numb3r3.common.math.Matrix.subi()

    }

    @Override
    public Matrix sub(double scale) {
        Matrix dump = this.dup();
        dump.subi(scale);
        return dump;
    }

    @Override
    public void multi(Matrix other) {
View Full Code Here

Examples of org.jblas.DoubleMatrix.subi()

            delta_w = L_hbias.transpose().mmul(x_samples).addi(y.transpose().mmul(L_vbias));
        }
        if (config.isUseRegularization()) {
      //only L2 for autoencoder
      if (0 != config.getLamada2()) {
        delta_w.subi(curr_w.mul(config.getLamada2()));
            }
    }
        delta_w.divi(nbr_sample);
        DoubleMatrix delta_hbias = L_hbias.columnSums().divi(nbr_sample);
        DoubleMatrix delta_vbias = L_vbias.columnSums().divi(nbr_sample);
View Full Code Here

Examples of org.jblas.DoubleMatrix.subi()

                delta_w = L_hbias.transpose().mmul(my_samples).addi(y.transpose().mmul(L_vbias));
            }
            if (myConfig.isUseRegularization()) {
        //only L2 for autoencoder
        if (0 != myConfig.getLamada2()) {
          delta_w.subi(my_w.mul(myConfig.getLamada2()));
                }
      }
            delta_w.divi(nbr_sample);
            DoubleMatrix delta_hbias = L_hbias.columnSums().divi(nbr_sample);
            DoubleMatrix delta_vbias = L_vbias.columnSums().divi(nbr_sample);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.