Examples of factors()


Examples of water.fvec.Vec.factors()

        int i=0;
        for (Object h : hs) {thresholds[i++] = (Float)h; }
        sort(thresholds);
      }
      // compute CMs
      aucdata = new AUCData().compute(new AUCTask(thresholds,va.mean()).doAll(va,vp).getCMs(), thresholds, va.factors(), threshold_criterion);
    } finally {       // Delete adaptation vectors
      if (va!=null) DKV.remove(va._key);
    }
  }
View Full Code Here

Examples of water.fvec.Vec.factors()

    Vec va = null,vp = null, avp = null;
    try {
      if (classification) {
        // Create a new vectors - it is cheap since vector are only adaptation vectors
        va = vactual .toEnum(); // always returns TransfVec
        actual_domain = va.factors();
        vp = vpredict.toEnum(); // always returns TransfVec
        predicted_domain = vp.factors();
        if (!Arrays.equals(actual_domain, predicted_domain)) {
          domain = ArrayUtils.domainUnion(actual_domain, predicted_domain);
          int[][] vamap = Model.getDomainMapping(domain, actual_domain, true);
View Full Code Here

Examples of water.fvec.Vec.factors()

  public void execImpl() {
    init();
    Vec va = null;
    try {
      va = vactual.toEnum(); // always returns TransfVec
      actual_domain = va.factors();
      if (max_k > predict.numCols()-1) {
        Log.warn("Reducing Hitratio Top-K value to maximum value allowed: " + String.format("%,d", predict.numCols() - 1));
        max_k = predict.numCols() - 1;
      }
      final Frame actual_predict = new Frame(predict.names().clone(), predict.vecs().clone());
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.