Monty.Cmp.AttentionRegion (ExTbpMonty.Core v0.1.0)

Copy Markdown View Source

Locations carrying an attention weight, proposed by a sensor or learning module to the attention system.

Mirrors tbp/monty/cmp.py::AttentionRegion. Weights run from MIN_WEIGHT (do not look here) to MAX_WEIGHT (look here).

Summary

Functions

Concatenates regions. No regions is an empty region, which is what the attention system sees when nobody proposes anything.

A region with nothing in it.

True when the region proposes nothing.

The largest weight a region may carry: a strong invitation to look.

The smallest weight a region may carry: a strong inhibition.

A region of locations that all carry the same weight.

Types

location()

@type location() :: [float()]

t()

@type t() :: %Monty.Cmp.AttentionRegion{locations: [location()], weights: [float()]}

Functions

concat(regions)

@spec concat([t()]) :: t()

Concatenates regions. No regions is an empty region, which is what the attention system sees when nobody proposes anything.

empty()

@spec empty() :: t()

A region with nothing in it.

empty?(attention_region)

@spec empty?(t()) :: boolean()

True when the region proposes nothing.

max_weight()

@spec max_weight() :: float()

The largest weight a region may carry: a strong invitation to look.

min_weight()

@spec min_weight() :: float()

The smallest weight a region may carry: a strong inhibition.

uniform(locations, weight)

@spec uniform([location()], float()) :: t()

A region of locations that all carry the same weight.