Package org.apache.mahout.classifier.sgd

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


  @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

     
      // ----- 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

        .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

        .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

        .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

        .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

Related Classes of org.apache.mahout.classifier.sgd.UniformPrior

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.