Documentation Index
Fetch the complete documentation index at: https://mintlify.com/alexplatasl/dplbnde/llms.txt
Use this file to discover all available pages before exploring further.
DErand implements the DE/rand/1 and DE/rand/2 mutation strategies. Unlike DEbest, the base vector is randomly selected from the population rather than being the current best individual — promoting broader exploration.
Usage
Parameters
Population size. Must be > 5; values ≤ 5 are reset to 40.
Maximum generations. Values ≤ 1 are reset to 100.
Data frame from which to learn the classifier.
Name of the class variable column in
data.Mutation factor in [0, 2].
Crossover rate in [0, 1].
Number of difference vector pairs: 1 (DE/rand/1) or 2 (DE/rand/2).
Crossover type:
"bin" (binomial) or "exp" (exponential).BN structure:
"nb", "tan", "tancl", or "hc".Optional custom topology as an edges × 2 matrix (from, to).
Print progress every this many generations. 0 suppresses output.
...
Extra arguments forwarded to
bnclassify::tan_cl or bnclassify::tan_hc.Return value
Returns an object of classDE with the same fields as DEbest: Best, BestCLL, pobFinal, CLLPobFinal, N.evals, convergence, evaluations.
DErand vs DEbest
| Aspect | DEbest | DErand |
|---|---|---|
| Base vector | Always the best individual | Random population member |
| Exploration | Less — converges faster | More — less prone to premature convergence |
| Exploitation | Stronger | Weaker |
| Best for | Unimodal or well-behaved landscapes | Multimodal landscapes |