Data Mining: Practical Machine Learning Tools and Techniques, Second Edition
updateData() Now that you know how to create an empty dataset, consider how the Mes- sageClassifierobject actually incorporates ...
filter is initialized—that is, all its internal settings are reset. In the next step, the data is transformed by useFilter().Thi ...
...
Suppose you need to implement a special-purpose learning algorithm that is not included in Weka. Or suppose you are engaged in m ...
The first method in weka.classifiers.trees.Id3 is globalInfo(): we mention it here before moving on to the more interesting part ...
15.1 AN EXAMPLE CLASSIFIER 473 package weka.classifiers.trees; import weka.classifiers.*; import weka.core.*; import java.io.*; ...
474 CHAPTER 15 | WRITING NEW LEARNING SCHEMES /** * Builds Id3 decision tree classifier. * * @param data the training data * @ex ...
15.1 AN EXAMPLE CLASSIFIER 475 m_ClassValue = Instance.missingValue(); m_Distribution = new double[data.numClasses()]; return; } ...
476 CHAPTER 15 | WRITING NEW LEARNING SCHEMES if (instance.hasMissingValue()) { throw new NoSupportForMissingValuesException("Id ...
15.1 AN EXAMPLE CLASSIFIER 477 * @return a textual description of the classifier */ public String toString() { if ((m_Distributi ...
478 CHAPTER 15 | WRITING NEW LEARNING SCHEMES Enumeration instEnum = data.enumerateInstances(); while (instEnum.hasMoreElements( ...
15.1 AN EXAMPLE CLASSIFIER 479 * * @param level the level at which the tree is to be printed */ private String toString(int leve ...
ute is passed to the attribute()method from weka.core.Instances,which returns the corresponding attribute. You might wonder what ...
for both methods. The default implementation ofclassifyInstance()calls distri- butionForInstance().If the class is nominal, it p ...
which catches the various exceptions that can be thrown by Weka’s routines or other Java methods. The evaluation()method in weka ...
graphable.For more information on these and other interfaces, look at the Javadoc for the classes in weka.core. 15.2 Conventions ...
...
References Adriaans, P., and D. Zantige. 1996.Data mining.Harlow, England: Addison- Wesley. Agrawal, R., and R. Srikant. 1994. F ...
Asmis, E. 1984.Epicurus’ scientific method.Ithaca, NY: Cornell University Press. Atkeson, C. G., S. A. Schaal, and A. W. Moore. ...
Bouckaert, R. R. 2004. Bayesian network classifiers in Weka. Working Paper 14/2004, Department of Computer Science, University o ...
«
19
20
21
22
23
24
25
26
27
28
»
Free download pdf