liveBook · Manning

Cognitive component

A particle-swarm parameter controlling the influence of a particle’s attraction toward its own best-known position.

How 2 Manning books explain it

Grokking AI Algorithms, Second Edition

The cognitive constant is a positive particle-swarm parameter below two that controls the influence of a particle's personal best position on its movement.

How it is used
Controls a particle’s attraction to its personal best during particle-swarm position updates.
How deep it goes
Defines the parameter, contrasts settings, and shows its coordinate-level Python calculation without deriving the full update formula.
Examples
Uses loner and trend-follower swarm analogies plus a Python calculation based on personal-best and current coordinates.
What you can do after
Apply it via Python by calculating personal-best attraction as part of each particle’s updated velocity.

Read how Grokking AI Algorithms, Second Edition explains cognitive component →

Optimization Algorithms: AI techniques for design, planning, and control problems

A particle swarm optimization parameter that weights a particle's attraction toward its own best-known position.

How it is used
Shapes particle movement by weighting attraction toward each particle’s personal best during particle swarm optimization.
How deep it goes
Defines c1, contrasts it with c2, gives boundary cases and tuning guidance, and stops short of deriving update formulas.
Examples
Uses amusement-park exploration and a visualization of motion components to illustrate personal-best attraction.
What you can do after
Apply it by tuning c1 against c2 to emphasize individual exploration, social exploitation, or an adaptive transition.

Read how Optimization Algorithms: AI techniques for design, planning, and control problems explains cognitive component →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.