Data Mining: Practical Machine Learning Tools and Techniques, Second Edition
...
Lurking behind Weka’s interactive interfaces—the Explorer, the Knowledge Flow, and the Experimenter—lies its basic functionality ...
into the line at the bottom of the text panel. This incantation calls the Java virtual machine (in the Simple CLI, Java is alrea ...
Larger programs are usually split into more than one class. The J48class, for example, does not actually contain any code for bu ...
452 CHAPTER 13 | THE COMMAND-LINE INTERFACE (a)(b) Figure 13.1Using Javadoc: (a) the front page and (b) the weka.corepackage. ...
The weka.classifiers package The classifierspackage contains implementations of most of the algorithms for classification and nu ...
454 CHAPTER 13 | THE COMMAND-LINE INTERFACE Figure 13.2DecisionStump:A class of the weka.classifiers.treespackage. ...
The presence of a main()method in a class indicates that it can be run from the command line and that all learning methods and f ...
Javadoc indices As mentioned previously, all classes are automatically subclasses ofObject.To examine the tree that corresponds ...
ating a learning scheme on an independent test set. By default the class is the last attribute in an ARFF file, but you can decl ...
To evaluate the same classifier on a new batch of test data, you load it back using -linstead of rebuilding it. If the classifie ...
procedure, reduced-error pruning (Section 6.2, pages 202–203) can be per- formed. The -Noption governs the size of the holdout s ...
...
When invoking learning schemes from the graphical user interfaces or the command line, there is no need to know anything about p ...
StringToWordVectorfilter mentioned in Section 10.3 (page 399) to convert the messages into attribute vectors in the manner descr ...
14.2 GOING THROUGH THE CODE 463 /** * Java program for classifying text messages into two classes. */ import weka.core.Attribute ...
464 CHAPTER 14 | EMBEDDED MACHINE LEARNING // Add class attribute. FastVector classValues = new FastVector(2); classValues.addEl ...
14.2 GOING THROUGH THE CODE 465 // Initialize filter and tell it about the input format. m_Filter.setInputFormat(m_Data); // Gen ...
466 CHAPTER 14 | EMBEDDED MACHINE LEARNING // Give instance access to attribute information from the dataset. instance.setDatase ...
14.2 GOING THROUGH THE CODE 467 } // Check if there are any options left Utils.checkForRemainingOptions(options); // Process mes ...
«
19
20
21
22
23
24
25
26
27
28
»
Free download pdf