class

Attention::AllocationEngine

Inherits Reference < Object

Central attention allocation engine

Constructors

Instance methods

active_goals

Current goals and their weights

Source
allocate_attention(cycles : Int32 = 1)

Main attention allocation cycle

Source
apply_goal_boosting

Apply goal-based attention boosting

Source
bank
Source
calculate_atom_priority(handle : AtomSpace::Handle, av : AtomSpace::AttentionValue | Nil) : Float64

Calculate priority score for a single atom

Source
calculate_priorities

Calculate priority scores for all atoms

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

Run focused attention allocation for specific atoms

Source
get_allocation_statistics

Get comprehensive allocation statistics

Source
rent_collector
Source
set_goal(goal : Goal, weight : Float64)

Add or update a specific goal

Source
set_goals(goal_weights : Hash(Goal, Float64))

Set goal weights for attention allocation

Source
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>
Source