Skip to main content

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:

Variable Purpose
AZURE_OPENAI_ENDPOINT Azure OpenAI API endpoint URL
AZURE_OPENAI_API_KEY Azure OpenAI API key
HUGGINGFACE_TOKEN Hugging Face token (e.g. for evaluate)
WANDB_API_KEY Weights & 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

Metadata

Release files for ai-nk-cce 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ai-nk-cce 0.2.0
File Size Uploaded
ai_nk_cce-0.2.0.tar.gz 27.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ai-nk-cce 0.2.0
File Interpreter ABI Platform
ai_nk_cce-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 59.1 kB

Release files / ai_nk_cce-0.2.0.tar.gz

Download URL ai_nk_cce-0.2.0.tar.gz
Size 27.4 kB
Tags Source
SHA-256 checksum
How to use checksums
14d97872854fd78b8ac44898886591e1c471ae681d81f4411222dfa7a4173dd4
BLAKE2b-256 checksum
How to use checksums
548a356c2ec95a60c466de9e159206f1364f533b222e18fd04e653d97db2ecf5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.10.0 Darwin/25.2.0

Release files / ai_nk_cce-0.2.0-py3-none-any.whl

Download URL ai_nk_cce-0.2.0-py3-none-any.whl
Size 31.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d0cbded31b65c9f3b662655b857abcb3f9bdb718f144665808ce46e4c22f6141
BLAKE2b-256 checksum
How to use checksums
79a5b0314a77c2eed104ae7f971d6fc95669f9601002dc36826bfc2dda9b5115
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.10.0 Darwin/25.2.0

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page