use of de.lmu.ifi.dbs.elki.database.Database in project elki by elki-project.
the class EMTest method testEMMLETwoPass.
@Test
public void testEMMLETwoPass() {
Database db = makeSimpleDatabase(UNITTEST + "hierarchical-2d.ascii", 710);
Clustering<?> result = //
new ELKIBuilder<EM<DoubleVector, ?>>(EM.class).with(KMeans.SEED_ID, //
0).with(EM.Parameterizer.K_ID, //
6).with(EM.Parameterizer.INIT_ID, //
TwoPassMultivariateGaussianModelFactory.class).build().run(db);
testFMeasure(db, result, 0.967410486);
testClusterSizes(result, new int[] { 3, 5, 91, 98, 200, 313 });
}
use of de.lmu.ifi.dbs.elki.database.Database in project elki by elki-project.
the class EMTest method testEMMLEDiagonal.
@Test
public void testEMMLEDiagonal() {
Database db = makeSimpleDatabase(UNITTEST + "hierarchical-2d.ascii", 710);
Clustering<?> result = //
new ELKIBuilder<EM<DoubleVector, ?>>(EM.class).with(KMeans.SEED_ID, //
3).with(EM.Parameterizer.K_ID, //
5).with(EM.Parameterizer.INIT_ID, //
DiagonalGaussianModelFactory.class).build().run(db);
testFMeasure(db, result, 0.9681384);
testClusterSizes(result, new int[] { 7, 91, 99, 200, 313 });
}
use of de.lmu.ifi.dbs.elki.database.Database in project elki by elki-project.
the class EMTest method testEMMAPMultivariate.
@Test
public void testEMMAPMultivariate() {
Database db = makeSimpleDatabase(UNITTEST + "hierarchical-2d.ascii", 710);
Clustering<?> result = //
new ELKIBuilder<EM<DoubleVector, ?>>(EM.class).with(KMeans.SEED_ID, //
0).with(EM.Parameterizer.PRIOR_ID, //
10).with(EM.Parameterizer.K_ID, //
5).build().run(db);
testFMeasure(db, result, 0.958843);
testClusterSizes(result, new int[] { 3, 95, 97, 202, 313 });
}
use of de.lmu.ifi.dbs.elki.database.Database in project elki by elki-project.
the class EMTest method testEMMLETextbook.
@Test
public void testEMMLETextbook() {
Database db = makeSimpleDatabase(UNITTEST + "hierarchical-2d.ascii", 710);
Clustering<?> result = //
new ELKIBuilder<EM<DoubleVector, ?>>(EM.class).with(KMeans.SEED_ID, //
0).with(EM.Parameterizer.K_ID, //
6).with(EM.Parameterizer.INIT_ID, //
TextbookMultivariateGaussianModelFactory.class).build().run(db);
testFMeasure(db, result, 0.967410486);
testClusterSizes(result, new int[] { 3, 5, 91, 98, 200, 313 });
}
use of de.lmu.ifi.dbs.elki.database.Database in project elki by elki-project.
the class EMTest method testEMMLEMultivariate.
@Test
public void testEMMLEMultivariate() {
Database db = makeSimpleDatabase(UNITTEST + "hierarchical-2d.ascii", 710);
Clustering<?> result = //
new ELKIBuilder<EM<DoubleVector, ?>>(EM.class).with(KMeans.SEED_ID, //
0).with(EM.Parameterizer.K_ID, //
6).build().run(db);
testFMeasure(db, result, 0.967410486);
testClusterSizes(result, new int[] { 3, 5, 91, 98, 200, 313 });
}
Aggregations