Generates a classifier. Must initialize all fields of the classifier
that are not being set via options (ie. multiple calls of buildClassifier
must always lead to the same result). Must not change the dataset
in any way.
data - set of instances serving as training data
java.lang.Exception - if the classifier has not been
Predicts the class memberships for a given instance. If
an instance is unclassified, the returned array elements
must be all zero. If the class is numeric, the array
must consist of only one element, which contains the
predicted value. Note that a classifier MUST implement
either this or classifyInstance().
instance - the instance to be classified
an array containing the estimated membership
probabilities of the test instance in each class
or the numeric prediction
java.lang.Exception - if distribution could not be
Returns the Capabilities of this classifier. Maximally permissive
capabilities are allowed by default. Derived classifiers should
override this method and first disable all capabilities and then
enable just those capabilities that make sense for the scheme.