Catalog PyPI
PACKAGE EXPLORERView in registry

ai-nk-cce

PyPI

This repository is used to train AI agents to predict good strategies in a social learning game based on a NK landscape.

Versions collected1
Direct dependencies13From release 0.2.0
Last observed21 Oct, 11:32 UTC

README

Version 0.2.0 documentation

human-ai-social-learning

Code style: black PEP8

Description

Installation

This project uses Poetry for package management. If you haven't installed Poetry yet, please follow the instructions on the official Poetry website.

To install the project:

  1. Clone the repository:

    git clone https://github.com/your-username/human-ai-social-learning.git
    cd human-ai-social-learning
    
  2. Install dependencies with Poetry:

    poetry install
    
  3. Activate the virtual environment:

    poetry shell
    
  4. (Optional) Set up Jupyter kernel for notebooks:

    poetry run python -m ipykernel install --user --name nk-cce-kernel
    

Now your development environment is set up and ready to use.

Environment Setup (Optional)

For features that use external APIs, copy .env.example to .env and fill in values:

cp .env.example .env

The project uses python-dotenv to load .env. Keys:

VariablePurpose
AZURE_OPENAI_ENDPOINTAzure OpenAI API endpoint URL
AZURE_OPENAI_API_KEYAzure OpenAI API key
HUGGINGFACE_TOKENHugging Face token (e.g. for evaluate)
WANDB_API_KEYWeights & Biases API key
  • Azure OpenAI: LLM-based agents or API calls.
  • Hugging Face: If using evaluate or HF-hosted models.
  • W&B: Experiment tracking and logging.

Core simulation (hill climber, BiasedPredictionAgent, fake AI test) does not require these keys.

Contributing

We welcome contributions! Please note:

  1. Please create a descriptive branch for each contribution (naming convention feature_type/feature_name)
  2. Follow the project style (PEP 8 for Python).
  3. Add tests and run all before commit. (At least one test per function or method.)
  4. Write meaningful commit messages.
  5. Keep in line with pre-commit linting.
  6. Submit a Pull Request, to include your code into main.

Pre-commit Hooks

We use pre-commit hooks. Installation:

poetry add pre-commit
pre-commit install
pre-commit run --all-files

Running Tests

Tests need to be run in the virtual environment. You can use Poetry or Visual Studio Code settings to do so automatically.

To run all tests using Poetry run:

poetry run pytest

We included Visual Studio Code settings in the repository. You can try to use them to run the tests within Visual Studio Code.

.vscode/
├── settings.json
├── launch.json

Documentation

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.2.019 Mar 202613

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 11:32 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:6feb9d391272eba7c2e8d4a24108b7ccd0f405369b8203f73aff66d13b5ddd83