Examples of auc()


Examples of org.apache.mahout.math.stats.GlobalOnlineAuc.auc()

    }
    assertEquals(0.76, auc1.auc(), 0.01);

    OnlineAuc auc3 = roundTrip(auc1, OnlineAuc.class);

    assertEquals(auc1.auc(), auc3.auc(), 0);

    for (int i = 0; i < 1000; i++) {
      auc1.addSample(0, gen.nextGaussian());
      auc1.addSample(1, gen.nextGaussian() + 1);
View Full Code Here

Examples of org.apache.mahout.math.stats.GlobalOnlineAuc.auc()

      auc3.addSample(0, gen.nextGaussian());
      auc3.addSample(1, gen.nextGaussian() + 1);
    }

    assertEquals(auc1.auc(), auc3.auc(), 0.01);
  }

  @Test
  public void onlineLogisticRegressionRoundTrip() throws IOException {
    OnlineLogisticRegression olr = new OnlineLogisticRegression(2, 5, new L1());
View Full Code Here

Examples of org.apache.mahout.math.stats.GlobalOnlineAuc.auc()

    Random gen = RandomUtils.getRandom();
    for (int i = 0; i < 10000; i++) {
      auc1.addSample(0, gen.nextGaussian());
      auc1.addSample(1, gen.nextGaussian() + 1);
    }
    assertEquals(0.76, auc1.auc(), 0.01);

    OnlineAuc auc3 = roundTrip(auc1, OnlineAuc.class);

    assertEquals(auc1.auc(), auc3.auc(), 0);
View Full Code Here

Examples of org.apache.mahout.math.stats.GlobalOnlineAuc.auc()

    }
    assertEquals(0.76, auc1.auc(), 0.01);

    OnlineAuc auc3 = roundTrip(auc1, OnlineAuc.class);

    assertEquals(auc1.auc(), auc3.auc(), 0);

    for (int i = 0; i < 1000; i++) {
      auc1.addSample(0, gen.nextGaussian());
      auc1.addSample(1, gen.nextGaussian() + 1);
View Full Code Here

Examples of org.apache.mahout.math.stats.GlobalOnlineAuc.auc()

      auc3.addSample(0, gen.nextGaussian());
      auc3.addSample(1, gen.nextGaussian() + 1);
    }

    assertEquals(auc1.auc(), auc3.auc(), 0.01);
  }

  @Test
  public void onlineLogisticRegressionRoundTrip() throws IOException {
    OnlineLogisticRegression olr = new OnlineLogisticRegression(2, 5, new L1());
View Full Code Here

Examples of org.apache.mahout.math.stats.GlobalOnlineAuc.auc()

    Random gen = RandomUtils.getRandom();
    for (int i = 0; i < 10000; i++) {
      auc1.addSample(0, gen.nextGaussian());
      auc1.addSample(1, gen.nextGaussian() + 1);
    }
    assertEquals(0.76, auc1.auc(), 0.01);

    OnlineAuc auc3 = roundTrip(auc1, OnlineAuc.class);

    assertEquals(auc1.auc(), auc3.auc(), 0);
View Full Code Here

Examples of org.apache.mahout.math.stats.GlobalOnlineAuc.auc()

    }
    assertEquals(0.76, auc1.auc(), 0.01);

    OnlineAuc auc3 = roundTrip(auc1, OnlineAuc.class);

    assertEquals(auc1.auc(), auc3.auc(), 0);

    for (int i = 0; i < 1000; i++) {
      auc1.addSample(0, gen.nextGaussian());
      auc1.addSample(1, gen.nextGaussian() + 1);
View Full Code Here

Examples of org.apache.mahout.math.stats.GlobalOnlineAuc.auc()

      auc3.addSample(0, gen.nextGaussian());
      auc3.addSample(1, gen.nextGaussian() + 1);
    }

    assertEquals(auc1.auc(), auc3.auc(), 0.01);
  }

  @Test
  public void onlineLogisticRegressionRoundTrip() throws IOException {
    OnlineLogisticRegression olr = new OnlineLogisticRegression(2, 5, new L1());
View Full Code Here

Examples of org.apache.mahout.math.stats.GlobalOnlineAuc.auc()

    Random gen = RandomUtils.getRandom();
    for (int i = 0; i < 10000; i++) {
      auc1.addSample(0, gen.nextGaussian());
      auc1.addSample(1, gen.nextGaussian() + 1);
    }
    assertEquals(0.76, auc1.auc(), 0.01);

    OnlineAuc auc3 = roundTrip(auc1, OnlineAuc.class);

    assertEquals(auc1.auc(), auc3.auc(), 0);
View Full Code Here

Examples of org.apache.mahout.math.stats.GlobalOnlineAuc.auc()

    }
    assertEquals(0.76, auc1.auc(), 0.01);

    OnlineAuc auc3 = roundTrip(auc1, OnlineAuc.class);

    assertEquals(auc1.auc(), auc3.auc(), 0);

    for (int i = 0; i < 1000; i++) {
      auc1.addSample(0, gen.nextGaussian());
      auc1.addSample(1, gen.nextGaussian() + 1);
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.