类 ASSearch
java.lang.Object
weka.attributeSelection.ASSearch
- 所有已实现的接口:
Serializable
,RevisionHandler
- 直接已知子类:
BestFirst
,ExhaustiveSearch
,GeneticSearch
,GreedyStepwise
,LinearForwardSelection
,RaceSearch
,RandomSearch
,Ranker
,RankSearch
,ScatterSearchV1
,SubsetSizeForwardSelection
Abstract attribute selection search class.
- 版本:
- $Revision: 1.12 $
- 作者:
- Mark Hall (mhall@cs.waikato.ac.nz)
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static ASSearch
Creates a new instance of a search class given it's class name and (optional) arguments to pass to it's setOptions method.Returns the revision string.static ASSearch[]
makeCopies
(ASSearch model, int num) Creates copies of the current search scheme.abstract int[]
search
(ASEvaluation ASEvaluator, Instances data) Searches the attribute subset/ranking space.
-
构造器详细资料
-
ASSearch
public ASSearch()
-
-
方法详细资料
-
getRevision
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 返回:
- the revision
-
search
Searches the attribute subset/ranking space.- 参数:
ASEvaluator
- the attribute evaluator to guide the searchdata
- the training instances.- 返回:
- an array (not necessarily ordered) of selected attribute indexes
- 抛出:
Exception
- if the search can't be completed
-
forName
Creates a new instance of a search class given it's class name and (optional) arguments to pass to it's setOptions method. If the search method implements OptionHandler and the options parameter is non-null, the search method will have it's options set.- 参数:
searchName
- the fully qualified class name of the search classoptions
- an array of options suitable for passing to setOptions. May be null.- 返回:
- the newly created search object, ready for use.
- 抛出:
Exception
- if the search class name is invalid, or the options supplied are not acceptable to the search class.
-
makeCopies
Creates copies of the current search scheme. Note that this method now uses Serialization to perform a deep copy, so the search object must be fully Serializable. Any currently built model will now be copied as well.- 参数:
model
- an example search scheme to copynum
- the number of search scheme copies to create.- 返回:
- an array of search schemes.
- 抛出:
Exception
- if an error occurs
-