class

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_atom_priority(handle : AtomSpace::Handle, av : AtomSpace::AttentionValue | Nil) : Float64

Calculate priority score for a single atom

calculate_priorities

Calculate priority scores for all atoms

diffusion
focus_attention(target_handles : Array(AtomSpace::Handle), boost_amount : Int16 = 50_i16)

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>