Examples of printByRank()


Examples of cc.mallet.types.LabelVector.printByRank()

    System.out.println ("]");*/   
    pw.print(classifier.getClass().getName());
    pw.print(" ");
    pw.print(instance.getSource() + " ");
    LabelVector lv = labeling.toLabelVector();
    lv.printByRank(pw);
    pw.println ();
  }

  public Instance toInstance() {
    Instance ret;
View Full Code Here

Examples of cc.mallet.types.RankedFeatureVector.printByRank()

      for (int i = 0; i < defaultFeatureIndex; i++) {
        double weight = parameters [li*numFeatures + i];
        weights[i] = weight;
      }
      rfv = new RankedFeatureVector(dict,weights);
      rfv.printByRank(out);
      out.println (" <default> "+parameters [li*numFeatures + defaultFeatureIndex] + " ");
    }
  }

  public void printExtremeFeatures (PrintWriter out,int num)
View Full Code Here

Examples of cc.mallet.types.RankedFeatureVector.printByRank()

      for (int i = 0; i < defaultFeatureIndex; i++) {
        double weight = parameters [li*numFeatures + i];
        weights[i] = weight;
      }
      rfv = new RankedFeatureVector(dict,weights);
      rfv.printByRank(out);
      out.println (" <default> "+parameters [li*numFeatures + defaultFeatureIndex] + " ");
    }
  }

  public void printExtremeFeatures (PrintWriter out,int num)
View Full Code Here

Examples of cc.mallet.types.RankedFeatureVector.printByRank()

      for (int i = 0; i < defaultFeatureIndex; i++) {
        double weight = parameters [li*numFeatures + i];
        weights[i] = weight;
      }
      rfv = new RankedFeatureVector(dict,weights);
      rfv.printByRank(out);
      out.println (" <default> "+parameters [li*numFeatures + defaultFeatureIndex] + " ");
    }
  }

  public void printExtremeFeatures (PrintWriter out,int num)
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.