Skip to main content

The CCOBRA framework.

Project description

Cognitive COmputation for Behavioral Reasoning Analysis (CCOBRA) Framework

GitHub license


  • Python 3
  • Numpy
  • Pandas


CCOBRA requires you to install the core modules. This is done by running the following commands:

$> cd /path/to/repository/
$> python develop|install [--user]


$> cd /path/to/repository
$> python develop [--user] --uninstall

First Steps

Executing the Examples

Examples for common reasoning domains can be found in examples/. To start the example analyses, run the corresponding scripts. The following commands run the syllogistic example:

$> cd /path/to/repository/examples/syllogism
$> python

Implementing Custom Models

Custom models can be implemented by defining classes based on CCOBRAModel interfaces. The following snippet contains the skeleton snippet for a simple syllogistic model always returning the NVC response:

import ccobra

class MyModel(ccobra.syllogistic.SylModel):
    """ Simple static model for syllogistic reasoning always responding with


    def __init__(self, name='MyModel'):
        """ Model constructor. Initializes internal state of the model.

        name : str, optional
            Name for the model.


        super(MyModel, self).__init__(name)

    def predict(self, task, **kwargs):
        """ Method for computing predictions of the model.

        task : str
            Variable for the syllogism (e.g., AA1).
        kwargs : dict
            Collects additional information from the data


        return 'NVC'

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ccobra-0.0.1.tar.gz (8.2 kB view hashes)

Uploaded Source

Built Distribution

ccobra-0.0.1-py3-none-any.whl (12.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page