Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
RankedOutputSearch.java
Package: Weka-3-2.rar [view]
Upload User: rhdiban
Upload Date: 2013-08-09
Package Size: 15085k
Code Size: 4k
Category:
Windows Develop
Development Platform:
Java
- /*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- */
- /*
- * RankedOutputSearch.java
- * Copyright (C) 1999 Mark Hall
- *
- */
- package weka.attributeSelection;
- import java.io.*;
- import weka.core.*;
- /**
- * Interface for search methods capable of producing a
- * ranked list of attributes.
- *
- * @author Mark Hall (mhall@cs.waikato.ac.nz)
- * @version $Revision: 1.9 $
- */
- public interface RankedOutputSearch {
- // ===============
- // Public methods.
- // ===============
- /**
- * Returns a X by 2 list of attribute indexes and corresponding
- * evaluations from best (highest) to worst.
- * @return the ranked list of attribute indexes in an array of ints
- * @exception Exception if the ranking can't be produced
- */
- double[][] rankedAttributes() throws Exception;
- /**
- * Sets a threshold by which attributes can be discarded from the
- * ranking. This threshold is used by the AttributeSelection module
- * which does the actual discarding of attributes---the implementer
- * of this method needs only to provide a variable in which to store the
- * supplied threshold. -Double.MAX_VALUE is reserved to mean no threshold,
- * ie, retain all attributes.
- * @param threshold the threshold.
- */
- void setThreshold(double threshold);
- /**
- * Gets the threshold by which attributes can be discarded. Discarding
- * of attributes is done by the AttributeSelection module using the
- * threshold returned by this method.
- * @return a threshold by which to discard attributes
- */
- double getThreshold();
- /**
- * Specify the number of attributes to select from the ranked list. < 0
- * indicates that all attributes are to be retained. NumToSelect has
- * precedence over threshold, ie. if there is a non -1 value for NumToSelect
- * then this will take precedence over any threshold value.
- * @param numToSelect the number of attributes to retain
- */
- void setNumToSelect(int numToSelect);
- /**
- * Gets the user specified number of attributes to be retained.
- * @return the number of attributes to retain
- */
- int getNumToSelect();
- /**
- * Gets the calculated number of attributes to retain. This is the
- * actual number of attributes to retain. This is the same as
- * getNumToSelect if the user specifies a number which is not less
- * than zero. Otherwise it should be the number of attributes in the
- * (potentially transformed) data.
- */
- int getCalculatedNumToSelect();
- /**
- * Sets whether or not ranking is to be performed.
- * When a search method is capable of producing a ranked list
- * of attributes, the user has the choice of seeing the results of a
- * normal search or seeing a ranked list.
- * @param doRanking true if ranked list is to be produced
- */
- void setGenerateRanking(boolean doRanking);
- /**
- * Gets whether the user has opted to see a ranked list of
- * attributes rather than the normal result of the search
- * @return true if a ranked list has been requested.
- */
- boolean getGenerateRanking();
- }