Code Monkey home page Code Monkey logo

cog_ml_tasks's Introduction

Cognitive and ML Tasks

This repo includes several custom tasks/environments built on openai-gym for training RL agents.

Install

$ git clone https://github.com/CgnRLAgent/cog_ml_tasks.git
$ cd cog_ml_tasks
$ pip install -e .

Requirements: see the setup.py.

Envs/Tasks Descriptions

1_2AX

The 1_2AX task consists in the presentation to the subject of six possible stimuli/cues '1' - '2', 'A' - 'B', 'X' - 'Y'.

The tester has 2 possible responses which depend on the temporal order of previous and current stimuli: he has to answer 'R' when

  • the last stored digit is '1' AND the previous stimulus is 'A' AND the current one is 'X',
  • the last stored digit is '2' AND the previous stimulus is 'B' AND the current one is 'Y'; in any other case , reply 'L'.

actions: 'L', 'R'

predefined rewards: output correctly(1.0), not correct(-1.0)

e.g.

Input: 1AXBZ

Target: LLRLL

Input: 2CXCYBY

Target: LLLLLLR

Usage

import gym
import gym_cog_ml_tasks

env = gym.make('1_2AX-v0')
env.reset()
env.step(env.action_space.sample())
env.render()
# custom params
env = gym.make('1_2AX-v0', min_size=3, prob_r=0.5)

cog_ml_tasks's People

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.