Skip to main content

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

Project description

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.

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

For an overview of the repository structure, module organization, and dependencies, see the Repository Structure Guide.

Additional documentation is available in the doc/ directory:

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

ai_nk_cce-0.1.1.tar.gz (45.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ai_nk_cce-0.1.1-py3-none-any.whl (60.0 kB view details)

Uploaded Python 3

File details

Details for the file ai_nk_cce-0.1.1.tar.gz.

File metadata

  • Download URL: ai_nk_cce-0.1.1.tar.gz
  • Upload date:
  • Size: 45.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.10.0 Darwin/25.1.0

File hashes

Hashes for ai_nk_cce-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9d3312aa4da80cec756e7b8a719e7f55900ad4b419f0e1822353635546737e8a
MD5 8a830ec7888296c6aaa12193b3451f4b
BLAKE2b-256 6566b86064c3c4f34e480f9743262e1af4a1d0bd602d1e57dd98ef3418f7e67e

See more details on using hashes here.

File details

Details for the file ai_nk_cce-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: ai_nk_cce-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 60.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.10.0 Darwin/25.1.0

File hashes

Hashes for ai_nk_cce-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ad89b4a2601e4a79fc968bd010c1f4b455a74c90782bbe273b338f8e86d49864
MD5 76fcf2e9f60778e3cfce604fec7bca26
BLAKE2b-256 e9f0b2e6dba3808c5302d55325cc5eae4537b90a14670adc75dd3a67e1031d74

See more details on using hashes here.

Supported by

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