Define the default configuration parameters for the DependencyBasedStrategy strategy.
D2MCS::StrategyConfiguration
-> DependencyBasedStrategyConfiguration
new()
Method for initializing the object arguments during runtime.
DependencyBasedStrategyConfiguration$new(
binaryCutoff = 0.6,
realCutoff = 0.6,
tiebreakMethod = "lfdc",
metric = "dep.tar"
)
binaryCutoff
The numeric value of binary cutoff.
realCutoff
The numeric value of real cutoff.
tiebreakMethod
The character value of tie-break method. The two tiebreak methods available are "lfdc" (less dependence cluster with the features) and "ltdc" (less dependence cluster with the target). These methods are used to add the features in the candidate feature clusters.
metric
The character value of the metric to apply the mean to obtain the quality of a cluster. The two metrics available are "dep.tar" (Dependence of cluster features on the target) and "dep.fea" (Dependence between cluster features).
minNumClusters()
Function used to return the minimum number of clusters distributions used. By default the minimum is set in 2.
DependencyBasedStrategyConfiguration$minNumClusters(...)
...
Further arguments passed down to minNumClusters
function.
A numeric vector of length 1.
maxNumClusters()
The function is responsible of returning the maximum number of cluster distributions used. By default the maximum number is set in 50.
DependencyBasedStrategyConfiguration$maxNumClusters(...)
...
Further arguments passed down to maxNumClusters
function.
A numeric vector of length 1.
getBinaryCutoff()
Gets the cutoff to consider the dependency between binary features.
DependencyBasedStrategyConfiguration$getBinaryCutoff()
The numeric value of binary cutoff.
getRealCutoff()
Gets the cutoff to consider the dependency between real features.
DependencyBasedStrategyConfiguration$getRealCutoff()
The numeric value of real cutoff.
setBinaryCutoff()
Sets the cutoff to consider the dependency between binary features.
DependencyBasedStrategyConfiguration$setBinaryCutoff(cutoff)
cutoff
The new numeric value of binary cutoff.
setRealCutoff()
Sets the cutoff to consider the dependency between real features.
DependencyBasedStrategyConfiguration$setRealCutoff(cutoff)
cutoff
The new numeric value of real cutoff.
tiebreak()
The function solves the ties between two (or more) features.
DependencyBasedStrategyConfiguration$tiebreak(
feature,
clus.candidates,
fea.dep.dist.clus,
corpus,
heuristic,
class,
class.name
)
feature
A character containing the name of the feature
clus.candidates
A single or numeric vector value to identify the candidate groups to insert the feature.
fea.dep.dist.clus
A list containing the groups chosen for the features.
corpus
A data.frame containing the features of the initial data.
heuristic
The heuristic used to compute the relevance of each feature. Must inherit from GenericHeuristic abstract class.
class
A character vector containing all the values of the target class.
class.name
A character value representing the name of the target class.
qualityOfCluster()
The function determines the quality of a cluster.
DependencyBasedStrategyConfiguration$qualityOfCluster(clusters, metrics)
clusters
A list with the feature distribution of each cluster.
metrics
A numeric list with the metrics associated to the cluster (dependency between all features and dependency between the features and the class).
A numeric vector of length 1.
isImprovingClustering()
The function indicates if clustering is getting better as the number of them increases.
DependencyBasedStrategyConfiguration$isImprovingClustering(clusters.deltha)
clusters.deltha
A numeric vector value with the quality values of the built clusters.
A numeric vector of length 1.
clone()
The objects of this class are cloneable with this method.
DependencyBasedStrategyConfiguration$clone(deep = FALSE)
deep
Whether to make a deep clone.
StrategyConfiguration
,
DependencyBasedStrategy