Attention::AllocationEngine
Inherits Reference < Object
Central attention allocation engine
Constructors
new(atomspace : AtomSpace::AtomSpace)
Instance methods
active_goals
Current goals and their weights
allocate_attention(cycles : Int32 = 1)
Main attention allocation cycle
apply_goal_boosting
Apply goal-based attention boosting
bank
Calculate priority score for a single atom
calculate_priorities
Calculate priority scores for all atoms
diffusion
Run focused attention allocation for specific atoms
get_allocation_statistics
Get comprehensive allocation statistics
rent_collector
set_goal(goal : Goal, weight : Float64)
Add or update a specific goal
set_goals(goal_weights : Hash(Goal, Float64))
Set goal weights for attention allocation
to_s(io : IO) : Nil
Appends a short String representation of this object which includes its class name and its object address.
class Person
def initialize(@name : String, @age : Int32)
end
end
Person.new("John", 32).to_s # => #<Person:0x10a199f20>