Giter Site home page Giter Site logo

rustyshackleforth / rocca Goto Github PK

View Code? Open in Web Editor NEW

This project forked from opencog/rocca

1.0 0.0 0.0 228 KB

Rational OpenCog Controlled Agent (ROCCA). Use OpenCog to control a rational agent in OpenAI Gym and Malmo environments.

License: GNU Affero General Public License v3.0

Python 86.89% Scheme 2.85% Jupyter Notebook 10.26%

rocca's Introduction

Rational OpenCog Controlled Agent

Description

Rational OpenCog Controlled Agent, or ROCCA, is a project aiming at creating an opencog agent that acts rationally in OpenAI Gym environments (including Minecraft via minerl).

At its core it relies on PLN (Probabilistic Logic Networks) for both learning and planning. In practice most of the learning is however handled by the pattern miner, which can be seen as a specialized form of PLN reasoning. Planning, the discovery of cognitive schematics, is handled by PLN and its temporal reasoning rule base. Decision is currently a hardwired module, heavily inspired by OpenPsi with a more rational sampling procedure (Thompson Sampling for better exploitation vs exploration tradeoff).

Status

For now learning is only able to abstract temporal patterns based on directly observable events. That is the agent is able to notice that particular action sequences in certain contexts tend to be followed by rewards, however it is not, as of right now, able to reason about action sequences that it has never observed. This requires Temporal Deduction, currently under development.

Once Temporal Deduction is complete we still have a lot of things to add such as

  1. More sophisticated temporal and then spatial inference rules.
  2. ECAN, for Attention Allocation, to dynamically restrict the atomspace to subsets of items to process/pay-attention-to.
  3. Record attention spreading to learn/improve Hebbian links.
  4. Concept creation and schematization (crystallized attention allocation).
  5. Record internal processes, not just attention spreading, as percepta to enable deeper forms of instrospective reasoning.
  6. Plan internal actions, not just external, to enable self-growth.

Requirements

OpenCog tools

  • cogutil
  • atomspace
  • ure
  • spacetime
  • pln
  • miner
  • [optional] cogserver
  • [optional] attention
  • [optional] opencog

Third party tools

Install

In the root folder enter the following command:

pip install -e .

How to use

A gym agent defined under the rocca/agents folder is provided that can used to implement agents for given environments. See the examples under the examples folder.

There are Jupyter notebooks provided for experimentation as well.

rocca's People

Contributors

ngeiswei avatar kasimebrahim avatar ntoxeg avatar amebel avatar jadeoneill avatar eman22s avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.