Feature: all features.
getFeatureSet(x, black.list = character(0), include.costs = FALSE, normalize = FALSE, drop.duplicates = TRUE, feature.fun.args = getDefaultFeatureFunArgs())
x | [ |
---|---|
black.list | [ |
include.costs | [ |
normalize | [ |
drop.duplicates | [ |
feature.fun.args | [ |
[list
]
Named list of features.
x = generateRandomNetwork(n.points = 50L) # get all features available in salesperson with default parameters # Note that we always exclude the VRP problem specific VRP features, since # we are operating on a simple euclidean TSP instance without depots and # arrival times. fs = getFeatureSet(x, black.list = "VRP") #> Loading required package: igraph #> #> Attaching package: ‘igraph’ #> The following object is masked from ‘package:BBmisc’: #> #> normalize #> The following objects are masked from ‘package:stats’: #> #> decompose, spectrum #> The following object is masked from ‘package:base’: #> #> union #> Loading required package: cccd # now include the costs of computing (in seconds) for each set of parameters # as additional features fs = getFeatureSet(x, black.list = "VRP", include.costs = TRUE) # compute all but MST and distance features fs = getFeatureSet(x, black.list = c("VRP", "MST", "Distance")) # now set user-defined parameter values for cluster args = list("Cluster" = list("epsilon" = c(0.01, 0.05, 0.1, 0.2, 0.3))) fs = getFeatureSet(x, black.list = "VRP", feature.fun.args = args)