类 AbstractAssociator
java.lang.Object
weka.associations.AbstractAssociator
- 所有已实现的接口:
Serializable
,Cloneable
,Associator
,CapabilitiesHandler
,RevisionHandler
- 直接已知子类:
Apriori
,FPGrowth
,GeneralizedSequentialPatterns
,PredictiveApriori
,SingleAssociatorEnhancer
,Tertius
public abstract class AbstractAssociator
extends Object
implements Cloneable, Associator, Serializable, CapabilitiesHandler, RevisionHandler
Abstract scheme for learning associations. All schemes for learning
associations extend this class
- 版本:
- $Revision: 5503 $
- 作者:
- Eibe Frank (eibe@cs.waikato.ac.nz)
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static Associator
Creates a new instance of a associator given it's class name and (optional) arguments to pass to it's setOptions method.Returns the Capabilities of this associator.Returns the revision string.static Associator[]
makeCopies
(Associator model, int num) Creates copies of the current associator.static Associator
makeCopy
(Associator model) Creates a deep copy of the given associator using serialization.从接口继承的方法 weka.associations.Associator
buildAssociations
-
构造器详细资料
-
AbstractAssociator
public AbstractAssociator()
-
-
方法详细资料
-
forName
Creates a new instance of a associator given it's class name and (optional) arguments to pass to it's setOptions method. If the associator implements OptionHandler and the options parameter is non-null, the associator will have it's options set.- 参数:
associatorName
- the fully qualified class name of the associatoroptions
- an array of options suitable for passing to setOptions. May be null.- 返回:
- the newly created associator, ready for use.
- 抛出:
Exception
- if the associator name is invalid, or the options supplied are not acceptable to the associator
-
makeCopy
Creates a deep copy of the given associator using serialization.- 参数:
model
- the associator to copy- 返回:
- a deep copy of the associator
- 抛出:
Exception
- if an error occurs
-
makeCopies
Creates copies of the current associator. Note that this method now uses Serialization to perform a deep copy, so the Associator object must be fully Serializable. Any currently built model will now be copied as well.- 参数:
model
- an example associator to copynum
- the number of associators copies to create.- 返回:
- an array of associators.
- 抛出:
Exception
- if an error occurs
-
getCapabilities
Returns the Capabilities of this associator. Maximally permissive capabilities are allowed by default. Derived associators should override this method and first disable all capabilities and then enable just those capabilities that make sense for the scheme.- 指定者:
getCapabilities
在接口中Associator
- 指定者:
getCapabilities
在接口中CapabilitiesHandler
- 返回:
- the capabilities of this object
- 另请参阅:
-
getRevision
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 返回:
- the revision
-