Package org.fnlp.ml.types.sv

Examples of org.fnlp.ml.types.sv.SparseMatrix.minus()


   * @return 误差
   */
  float computeObjective(SparseMatrix v, SparseMatrix w, SparseMatrix h) {
    SparseMatrix matrixWH = w.mutiplyMatrix(h);
    SparseMatrix diff = v.clone();
    diff.minus(matrixWH);
    return diff.l2Norm();

  }

  SparseMatrix updateH() {
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.