Fields expectedFields = Fields.NONE
.append( new Fields( "var0", double.class ) )
.append( new Fields( "var1", double.class ) )
.append( new Fields( "var2", double.class ) );
ModelSchema modelSchema = new ModelSchema( expectedFields, predictedFields );
modelSchema.setPredictedCategories( "label", "0", "1" );
EnsembleSpec<TreeSpec> ensembleSpec = new EnsembleSpec<TreeSpec>( modelSchema );
ensembleSpec.setSelectionStrategy( new MajorityVote() );