类 LFSMethods
java.lang.Object
weka.attributeSelection.LFSMethods
- 所有已实现的接口:
RevisionHandler
- 版本:
- $Revision: 1.3 $
- 作者:
- Martin Guetlein (martin.guetlein@gmail.com)
-
嵌套类概要
嵌套类修饰符和类型类说明class
Class for a node in a linked list.class
Class for handling a linked list. -
构造器概要
构造器构造器说明empty constructor methods are not static because of access to inner class Link2 and LinkedList2 -
方法概要
修饰符和类型方法说明floatingForwardSearch
(int cacheSize, BitSet startGroup, int[] ranking, int k, boolean incrementK, int maxStale, Instances data, SubsetEvaluator evaluator, boolean verbose) Performs linear floating forward selection ( the stopping criteria cannot be changed to a specific size value )forwardSearch
(int cacheSize, BitSet startGroup, int[] ranking, int k, boolean incrementK, int maxStale, int forceResultSize, Instances data, SubsetEvaluator evaluator, boolean verbose) Performs linear forward selectiongetBestGroupOfSize
(int size) double
int
int
Returns the revision string.int[]
rankAttributes
(Instances data, SubsetEvaluator evaluator, boolean verbose)
-
构造器详细资料
-
LFSMethods
public LFSMethods()empty constructor methods are not static because of access to inner class Link2 and LinkedList2
-
-
方法详细资料
-
getBestGroup
- 返回:
- best group found by forwardSearch/floatingForwardSearch
-
getBestMerit
public double getBestMerit()- 返回:
- merit of best group found by forwardSearch/floatingForwardSearch
-
getBestGroupOfSize
- 返回:
- best group of size found by forwardSearch
-
getNumEvalsCached
public int getNumEvalsCached()- 返回:
- number of cached / not performed evaluations
-
getNumEvalsTotal
public int getNumEvalsTotal()- 返回:
- number totally performed evaluations
-
rankAttributes
public int[] rankAttributes(Instances data, SubsetEvaluator evaluator, boolean verbose) throws Exception - 返回:
- ranking (integer array) of attributes in data with evaluator (sorting is NOT stable!)
- 抛出:
Exception
-
forwardSearch
public BitSet forwardSearch(int cacheSize, BitSet startGroup, int[] ranking, int k, boolean incrementK, int maxStale, int forceResultSize, Instances data, SubsetEvaluator evaluator, boolean verbose) throws Exception Performs linear forward selection- 参数:
cacheSize
- chacheSize (times number of instances) to store already evaluated setsstartGroup
- start group for search (can be null)ranking
- ranking of attributes (as produced by rankAttributes), no ranking would be [0,1,2,3,4..]k
- number of top k attributes that are taken into accountincrementK
- true -> fixed-set, false -> fixed-widthmaxStale
- number of times the search proceeds even though no improvement was found (1 = hill-climbing)forceResultSize
- stopping criteria changed from no-improvement (forceResultSize=-1) to subset-sizedata
-evaluator
-verbose
-- 返回:
- BitSet, that cotains the best-group found
- 抛出:
Exception
-
floatingForwardSearch
public BitSet floatingForwardSearch(int cacheSize, BitSet startGroup, int[] ranking, int k, boolean incrementK, int maxStale, Instances data, SubsetEvaluator evaluator, boolean verbose) throws Exception Performs linear floating forward selection ( the stopping criteria cannot be changed to a specific size value )- 参数:
cacheSize
- chacheSize (times number of instances) to store already evaluated setsstartGroup
- start group for search (can be null)ranking
- ranking of attributes (as produced by rankAttributes), no ranking would be [0,1,2,3,4..]k
- number of top k attributes that are taken into accountincrementK
- true -> fixed-set, false -> fixed-widthmaxStale
- number of times the search proceeds even though no improvement was found (1 = hill-climbing)data
-evaluator
-verbose
-- 返回:
- BitSet, that cotains the best-group found
- 抛出:
Exception
-
getRevision
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 返回:
- the revision
-