Skip to content

Add unit tests for cognitive_synergy module #1

@web3guru888

Description

@web3guru888

Good First Issue: Test Coverage for cognitive_synergy

The cognitive_synergy module implements information-theoretic synergy metrics (O-information, synergy-redundancy decomposition). It currently has limited test coverage.

What to do

Add unit tests to tests/test_cognitive_synergy.py (or create it) covering:

  1. compute_o_information() — test with known values from the O-information paper
  2. synergy_redundancy() — verify the fundamental constraint: O = redundancy - synergy
  3. Edge cases: empty input, single variable, high-dimensional arrays

Getting started

git clone https://github.com/web3guru888/asi-build.git
cd asi-build
pip install -e '.[dev]'
pytest tests/ -v  # see what passes today

Module location

src/asi_build/cognitive_synergy/

Resources

Difficulty

🟢 Beginner — no background in information theory required; the functions are straightforward to test against synthetic data.

This is a great first contribution — pure Python, self-contained, no GPU needed.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions