Skip to content

Neural Cognitive Architecture

dainiuskreivenas edited this page Oct 29, 2019 · 3 revisions

Neural Cognitive Architecture

Neural cognitive architecture is a builder type of module.

Example

from rbs import *

neal = NealCoverFunctions("nest", sim)
fsa = FSAHelperFunctions("nest", sim, neal)
narc = NeuralCognitiveArchitectureBuilder("nest", sim, fsa, neal).build()

useBasesFile(basesFile)

Generates hierarchical neural topology and provides ability to interact with them using rules.

NeuralCognitiveArchitectureBuilder(sim, "nest", fsa, neal).useBasesFile("bases").build()

Bases File example:

animal
mammal
bird
monkey
canary
@@@@@@@
canary isA bird
monkey isA mammal
bird isA animal
mammal isA animal
@@@@@@@

useRelationshipsFiles(propertiesFile, relationshipsFile, associationsFile)

Generates relationship neural topology and provides ability to interact with them using rules. This only works if Bases have been applied as well.

narcBuilder = NeuralCognitiveArchitectureBuilder(sim, "nest", fsa, neal)
narcBuilder.useRelationshipsFiles("props", "rels", "assocs")
narc = narcBuilder.build()

Properties File Example:

food
@@@@@@@

Relationships File Example:

eats
@@@@@@@

Associations File Example:

canary eats food
@@@@@@@