Examples of UniformPrior


Examples of opennlp.tools.ml.model.UniformPrior

   *          The parameter associated with the correction feature.
   */
  public GISModel(Context[] params, String[] predLabels, String[] outcomeNames,
      int correctionConstant, double correctionParam) {
    this(params, predLabels, outcomeNames, correctionConstant, correctionParam,
        new UniformPrior());
  }
View Full Code Here

Examples of opennlp.tools.ml.model.UniformPrior

  @Test
  public void testMaxentOnPrepAttachData2Threads() throws IOException {
    AbstractModel model =
        new GISTrainer(true).trainModel(100,
            new TwoPassDataIndexer(createTrainingStream(), 1),
            new UniformPrior(), 1, 2);

    testModel(model, 0.7997028967566229);
  }
View Full Code Here

Examples of org.apache.mahout.classifier.sgd.UniformPrior

//  QuickTestConfig qtf = new QuickTestConfig("src/test/resources/data/synth/R_synth_multi_4coef_test.csv", 5, 10, 5 );
//  @Test
  public void test() throws Exception {
   
    ParallelOnlineLinearRegression polr = new ParallelOnlineLinearRegression(
        qtf.feature_size, new UniformPrior()).alpha(1)
        .stepOffset(1000).decayExponent(0.9).lambda(3.0e-5)
        .learningRate(qtf.learningRate);
   
    RCV1RecordFactory factory = new RCV1RecordFactory();
View Full Code Here

Examples of org.apache.mahout.classifier.sgd.UniformPrior

  @Test
  public void TestBaseRSquaredCalc( ) throws Exception {
   

    ParallelOnlineLinearRegression polr = new ParallelOnlineLinearRegression(
        2, new UniformPrior()).alpha(1)
        .stepOffset(1000).decayExponent(0.9).lambda(3.0e-5)
        .learningRate(17);
   
    RCV1RecordFactory factory = new RCV1RecordFactory();
   
View Full Code Here

Examples of org.apache.mahout.classifier.sgd.UniformPrior

     
      // ----- this normally is generated from the POLRModelParams ------
     
     
      this.polr = new ParallelOnlineLinearRegression(
          this.FeatureVectorSize, new UniformPrior()).alpha(1).stepOffset(1000)
          .decayExponent(0.9).lambda(this.Lambda).learningRate(this.LearningRate);
     
      polr_modelparams.setPOLR(polr);
     
    }
View Full Code Here

Examples of org.apache.mahout.classifier.sgd.UniformPrior

        .getTargetCategories());

    // ----- this normally is generated from the POLRModelParams ------

    this.polr = new ParallelOnlineLinearRegression(
        this.FeatureVectorSize, new UniformPrior()).alpha(1)
        .stepOffset(1000).decayExponent(0.9).lambda(3.0e-5)
        .learningRate(this.LearningRate);

    polr_modelparams.setPOLR(polr);
View Full Code Here

Examples of org.apache.mahout.classifier.sgd.UniformPrior

        .getTargetCategories());

    // ----- this normally is generated from the POLRModelParams ------

    this.polr = new ParallelOnlineLinearRegression(
        this.FeatureVectorSize, new UniformPrior()).alpha(1)
        .stepOffset(1000).decayExponent(0.9).lambda(3.0e-5)
        .learningRate(this.LearningRate);

    polr_modelparams.setPOLR(polr);
View Full Code Here

Examples of org.apache.mahout.classifier.sgd.UniformPrior

        .getTargetCategories());
   
    // ----- this normally is generated from the POLRModelParams ------
   
    this.polr = new ParallelOnlineLogisticRegression(this.num_categories,
        this.FeatureVectorSize, new UniformPrior()).alpha(1).stepOffset(1000)
        .decayExponent(0.9).lambda(this.Lambda).learningRate(this.LearningRate);
   
    polr_modelparams.setPOLR(polr);
    // this.bSetup = true;
   
View Full Code Here

Examples of org.apache.mahout.classifier.sgd.UniformPrior

        .getTargetCategories());
   
    // ----- this normally is generated from the POLRModelParams ------
   
    this.polr = new ParallelOnlineLogisticRegression(this.num_categories,
        this.FeatureVectorSize, new UniformPrior()).alpha(1).stepOffset(1000)
        .decayExponent(0.9).lambda(this.Lambda).learningRate(this.LearningRate);
   
    polr_modelparams.setPOLR(polr);
   
    // this.bSetup = true;
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.