Description Arguments Details Value Fields
Constructor of the 'PsoCtrl' class
Getter of the cluster attribute
Transforms the best position found into a bn structure and returns it
Main function of the pso algorithm.
Initialize the particles for the algorithm to random positions and velocities.
Evaluate the particles and update the global best
n_it |
maximum number of iterations of the pso algorithm |
in_cte |
parameter that varies the effect of the inertia |
gb_cte |
parameter that varies the effect of the global best |
lb_cte |
parameter that varies the effect of the local best |
r_probs |
vector that defines the range of random variation of gb_cte and lb_cte |
ordering |
a vector with the names of the nodes in t_0 |
size |
number of timeslices of the DBN |
n_inds |
number of particles that the algorithm will simultaneously process |
v_probs |
vector that defines the random velocity initialization probabilities |
dt |
the dataset used to evaluate the position |
The controller will encapsulate the particles and run the algorithm
A new 'PsoCtrl' object
the cluster attribute
the size attribute
parts
list with all the particles in the algorithm
cl
cluster for the parallel computations
n_it
maximum number of iterations of the pso algorithm
in_cte
parameter that varies the effect of the inertia
gb_cte
parameter that varies the effect of the global best
lb_cte
parameter that varies the effect of the local best
b_ps
global best position found
b_scr
global best score obtained
r_probs
vector that defines the range of random variation of gb_cte and lb_cte
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.