FastVector attributes = new FastVector();
FastVector values = new FastVector();
values.addElement("sunny");
values.addElement("overcast");
values.addElement("rain");
attributes.addElement(new Attribute("outlook", values));
values = new FastVector();
values.addElement("false");
values.addElement("true");
attributes.addElement(new Attribute("windy", values));
attributes.addElement(new Attribute("humidity"));
attributes.addElement(new Attribute("temperature"));
values = new FastVector();
values.addElement("yes");
values.addElement("no");
attributes.addElement(new Attribute("play", values));
Instances dataset = new Instances("", attributes, 15);
dataset.add(createInstance(dataset, "sunny", "false", 85, 85, "no"));
dataset.add(createInstance(dataset, "sunny", "true", 80, 90, "no"));
dataset.add(createInstance(dataset, "overcast", "false", 83, 78, "yes"));
dataset.add(createInstance(dataset, "rain", "false", 70, 96, "yes"));