decay2probs {funGp} | R Documentation |
Probability functions for ant colony optimization in funGp
Description
This function is intended to aid the selection of the heuristic parameters tao0, delta and dispr in the call to the model selection function fgpm_factory. The values computed by decay2probs are the ones that would be used by the ant colony algorithm as probability load of the links pointing out to projection on each dimension. These values result from the normalization of the initial pheromone loads delivered by the decay function, which are made to sum 1. For more details, check the technical report explaining the ant colony algorithm implemented in funGp, and the manual of the package (doi:10.18637/jss.v109.i05).
Usage
decay2probs(
k,
pmax = NULL,
tao0 = 0.1,
delta = 2,
dispr = 1.4,
doplot = TRUE,
deliver = FALSE
)
Arguments
k |
A number indicating the dimension of the functional input under analysis. |
pmax |
An optional number specifying the hypothetical maximum projection dimension of this input. The user will be able to set this value later in the call to fgpm_factory as a constraint. If not specified, it takes the value of k. |
tao0 |
Explained in the description of dispr. |
delta |
Explained in the description of dispr. |
dispr |
The arguments tao0, delta and dispr, are optional numbers specifying the loss function that determines the initial pheromone load on the links pointing out to projection dimensions. Such a function is defined as
with p taking the values of the projection dimensions. The argument tao0 indicates the pheromone
load in the links pointing out to the smallest dimensions; delta specifies how many dimensions
should preserve the maximum pheromone load; dispr determines how fast the pheromone load drops
in dimensions further than |
doplot |
An optional boolean indicating if the probability loads should be plotted. Default = TRUE. |
deliver |
An optional boolean indicating if the probability loads should be returned. Default = FALSE. |
Value
If deliver is TRUE, an object of class "numeric"
containing the normalized initial pheromone values
corresponding to the specified projection dimensions. Otherwise, the function plots the normalized
pheromones and nothing is returned.
Author(s)
José Betancourt, François Bachoc, Thierry Klein and Jérémy Rohmer
See Also
* decay for the function to generate the initial pheromone load;
* fgpm_factory for heuristic model selection in funGp.
Examples
# using default decay arguments____________________________________________________________
# input of dimension 15 projected maximum in dimension 15
decay(15) # initial pheromone load
decay2probs(15) # initial probability load
# input of dimension 15 projected maximum in dimension 8
decay(15, 8) # initial pheromone load
decay2probs(15, 8) # initial probability load
# playing with decay2probs arguments_______________________________________________________
# varying the initial pheromone load
decay(15) # input of dimension 15 projected maximum in dimension 15
decay(15, tao0 = .3) # larger value of tao0
decay(15, tao0 = .3, delta = 5) # larger tao0 kept to higher dimensions
decay(15, tao0 = .3, delta = 5, dispr = 5.2) # larger tao0 kept to higher dimensions
# and slower decay
# varying the initial probability load
decay2probs(15) # input of dimension 15 projected maximum in dimension 15
decay2probs(15, tao0 = .3) # larger value of tao0 (no effect whatsoever)
decay2probs(15, tao0 = .3, delta = 5) # larger tao0 kept to higher dimensions
decay2probs(15, tao0 = .3, delta = 5, dispr = 5.2) # larger tao0 kept to higher dimensions
# and slower decay
# requesting probability values____________________________________________________________
# input of dimension 15 projected maximum in dimension 15
decay2probs(15, deliver = TRUE)