Description Usage Arguments Value Examples
View source: R/getFeatureSet.R
Feature: all features.
1 2 3 | 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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | 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")
# 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.