Package cc.mallet.classify

Examples of cc.mallet.classify.MaxEnt


        }

        InstanceList parameterInstances = new InstanceList(parameterPipe);

        if (dmrParameters == null) {
            dmrParameters = new MaxEnt(parameterPipe, new double[numFeatures * numTopics]);
        }
       
        for (int doc=0; doc < data.size(); doc++) {
           
            if (data.get(doc).instance.getTarget() == null) {
View Full Code Here


      this.defaultFeatureIndex = classifier.getDefaultFeatureIndex();
      assert (initialClassifier.getInstancePipe() == instances.getPipe());
    }
    else if (this.classifier == null) {
      this.classifier =
        new MaxEnt (instances.getPipe(), parameters);
    }

    formatter = new DecimalFormat("0.###E0");

    cachedValueStale = true;
View Full Code Here

    int numFeatures = unlabeled.getDataAlphabet().size();
   
    // setup model
    int numParameters = (numFeatures + 1) * unlabeled.getTargetAlphabet().size();
    if (p == null) {
      p = new MaxEnt(unlabeled.getPipe(),new double[numParameters]);
    }

    // setup aux model
    q = new PRAuxClassifier(unlabeled.getPipe(),constraints);
   
View Full Code Here

        }

        InstanceList parameterInstances = new InstanceList(parameterPipe);

        if (dmrParameters == null) {
            dmrParameters = new MaxEnt(parameterPipe, new double[numFeatures * numTopics]);
        }
       
        for (int doc=0; doc < data.size(); doc++) {
           
            if (data.get(doc).instance.getTarget() == null) {
View Full Code Here

TOP

Related Classes of cc.mallet.classify.MaxEnt

Copyright © 2018 www.massapicom. 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.