📄 readme
字号:
===================================================================== ====== README ====== WEKA 3.4.1 27 January 2004 Java Programs for Machine Learning Copyright (C) 1998-2004 University of Waikato web: http://www.cs.waikato.ac.nz/~ml =====================================================================NOTE FOR USERS WHO HAVE USED WEKA BEFORE: THE LOCATION OF SOMECLASSIFIERS HAS CHANGED FROM THE LAST RELEASEweka.classifiers.trees.j48.J48 -> weka.classifiers.trees.J48weka.classifiers.trees.m5.M5P -> weka.classifiers.trees.M5Pweka.classifiers.trees.lmt.LMT -> weka.classifiers.trees.LMTweka.classifiers.trees.adtree.ADTree -> weka.classifiers.trees.ADTreeweka.classifiers.rules.part.PART -> weka.classifiers.rules.PARTweka.classifiers.lazy.kstar.KStar -> weka.classifiers.lazy.KStarweka.classifiers.functions.supportVector.SMO -> weka.classifiers.functions.SMOweka.classifiers.functions.supportVector.SMOreg -> weka.classifiers.functions.SMOregweka.classifiers.functions.pace.PaceRegression -> weka.classifiers.functions.PaceRegression=====================================================================Contents:---------1. Using one of the graphical user interfaces in Weka2. The Weka data format (ARFF)3. Using Weka from the command line - Classifiers - Association rules - Filters4. Database access5. The Experiment package6. Tutorial7. Source code8. Credits9. Submission of code and bug reports10. Copyright----------------------------------------------------------------------1. Using one of the graphical user interfaces in Weka:------------------------------------------------------This assumes that the Weka archive that you have downloaded has beenextracted into a directory containing this README and that you haven'tused an automatic installer (e.g. the one provided for Windows).Weka 3.4 requires Java 1.4 or higher. Depending on your platform youmay be able to just double-click on the weka.jar icon to run thegraphical user interfaces for Weka. Otherwise, from a command-line(assuming you are in the directory containing weka.jar), typejava -jar weka.jaror if you are using Windows usejavaw -jar weka.jarThis will start a small graphical user interface (GUIChooser) fromwhich you can select the SimpleCLI interface or the more sophisticatedExplorer, Experimenter, and Knowledge Flow interfaces. SimpleCLI justacts like a simple command shell. The Explorer is currently the maininterface for data analysis using Weka. The Experimenter can be usedto compare the performance of different learning algorithms acrossvarious datasets. The Knowledge Flow provides a component-basedalternative to the Explorer interface.Example datasets that can be used with Weka are in the sub-directorycalled "data", which should be located in the same directory as thisREADME file.The Weka user interfaces provide extensive built-in help facilities(tool tips, etc.). Documentation for the Explorer can be found inExplorerGuide.pdf (also in the same directory as thisREADME). However, this guide is unfortunately not quite up to date(it's based on Weka 3.3.4).You can also start the GUIChooser from within weka.jar:java -classpath weka.jar:$CLASSPATH weka.gui.GUIChooseror if you are using Windows usejavaw -classpath weka.jar;$CLASSPATH weka.gui.GUIChooserNOTE FOR PEOPLE WHO WRITE LEARNING SCHEMES WITH WEKA: In case you wantto use your own learning scheme from within one of the graphical userinterfaces (GUIs): one of the components of the GUIs is a genericobject editor that requires a configuration file called"GenericObjectEditor.props". There is an example file inweka/gui. This file will be used unless it is overidden by one in yourhome directory or the current directory (in that order). It simplyspecifies for each superclass which subclasses to offer aschoices. For example, which Classifiers are available/wanted to beused when an object requires a property of type Classifier.----------------------------------------------------------------------2. The Weka data format (ARFF):-------------------------------Datasets for WEKA should be formatted according to the ARFFformat. (However, there are several converters included in WEKA thatcan convert other file formats to ARFF. The Weka Explorer will usethese automatically if it doesn't recognize a given file as an ARFFfile.) Examples of ARFF files can be found in the "data" subdirectory.What follows is a short description of the file format. A morecomplete description is available from the Weka web page.A dataset has to start with a declaration of its name:@relation namefollowed by a list of all the attributes in the dataset (including the class attribute). These declarations have the form@attribute attribute_name specificationIf an attribute is nominal, specification contains a list of the possible attribute values in curly brackets:@attribute nominal_attribute {first_value, second_value, third_value}If an attribute is numeric, specification is replaced by the keyword numeric: (Integer values are treated as real numbers in WEKA.)@attribute numeric_attribute numericIn addition to these two types of attributes, there also exists astring attribute type. This attribute provides the possibility tostore a comment or ID field for each of the instances in a dataset:@attribute string_attribute stringAfter the attribute declarations, the actual data is introduced by a @datatag, which is followed by a list of all the instances. The instances are listed in comma-separated format, with a question mark representing a missing value. Comments are lines starting with % and are ignored by Weka.----------------------------------------------------------------------4. Database access:-------------------In terms of database connectivity, you should be able to use anydatabase with a Java JDBC driver. When using classes that access adatabase (e.g. the Explorer), you will probably want to create aproperties file that specifies which JDBC drivers to use, and where tofind the database. This file should reside in your home directory orthe current directory and be called "DatabaseUtils.props". An exampleis provided in weka/experiment, this file is used unless it isoveridden by one in your home directory or the current directory (inthat order).----------------------------------------------------------------------3. Using Weka from the command line:------------------------------------If you want to use Weka from your standard command-line interface(e.g. bash under Linux):a) Set WEKAHOME to be the directory which contains this README.b) Add $WEKAHOME/weka.jar to your CLASSPATH environment variable.c) Bookmark $WEKAHOME/doc/packages.html in your web browser.Alternatively you can try using the SimpleCLI user interface availablefrom the GUI chooser discussed above.In the following, the names of files assume use of a unix command-linewith environment variables. For other command-lines (includingSimpleCLI) you should substitute the name of the directory whereweka.jar lives for $WEKAHOME. If your platform uses something othercharacter than / as the path separator, also make the appropriatesubstitutions.===========Classifiers===========Try:
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -