A program to recognize and reward our most engaged community members
// create a tableMemoryExampleTable table = new MemoryExampleTable();// create and add attributesnominalAttr = AttributeFactory.createAttribute("att1", Ontology.NOMINAL);integerAttr = AttributeFactory.createAttribute("att2", Ontology.INTEGER);...table.addAttribute(nominalAttr);table.addAttribute(integerAttr);...// create a data rowDataRow row = new DoubleSparseArrayDataRow();// For nominal attributes use the mapping class to insert a value "TEST"row.set(nominalAttr, nominalAttr.getMapping().mapString("TEST"));// For numerical nothing special to dorow.set(integerAttr, 1);// add the row to the tabletable.addDataRow(row);// create an ExampleSet from the underlying tableExampleSet exampleSet = table.createExampleSet();