Skip to content

Parallel fragment memory setup can produce duplicate memories and violate maximum memories per position #77

@ftclark3

Description

@ftclark3

The frags.mem file output by the create_fragment_memories function sometimes has duplicates, meaning the exact same line appears twice in the file. This results in incorrectly doubling the weight of that particular memory.

Sometimes, the maximum number of memories per position is violated. The excess memories can be duplicates and/or non-duplicates.

Both issues seem to be related to the fact that the memory setup is done in parallel. The different processes can identify the same hit or get stuck with outdated information about how many memories have already been generated at each position, causing them to collectively overshoot the target.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions