Skip to main content

Cattykit

Cattykit is a framework for implementing artificial intelligence models based on components from the cognitive models of the Fluid Analogies Research Group including a shared workspace, slipnet, coderack, and codelets.

Usage

To install and run a model once on a single problem:

import cattykit
from cattykit.logging import PrintLogger

# Install a model package once. The source can also be a model name or HTTPS URL.
cattykit.install_model("./models/copycat")

print(cattykit.available_models())
# ("copycat",)

logger = PrintLogger()
try:
    copycat = cattykit.load_model(
        "copycat",
        config={"seed": 1234},
        logger=logger,
    )
    copycat.solve("abc -> abd ==> ijk -> ?")
finally:
    logger.close()

To run a suite of problems on a single model:

from cattykit import install_model, run_experiment

# Install the model if necessary.
cattykit.install_model("./models/copycat")

results_db = run_experiment(
    model_name="copycat",
    problems=[
	    "abc -> abd ==> ijk -> ?",
		"abc -> abc ==> iijjkk -> ?",
		"abc -> abc ==> kji -> ?",
		"abc -> abc ==> mrrjjj -> ?",
		"abc -> abc ==> xyz -> ?",
    ],
	iterations=1000
)
print(results_db)

This will generate a database located at results_db containing logs of the runs and summary statistics. These can be explored using the Cattycam package.

Download files

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

Source Distribution

cattykit-0.1.0.tar.gz (49.0 kB view details)

Uploaded Source

Built Distribution

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

cattykit-0.1.0-py3-none-any.whl (39.8 kB view details)

Uploaded Python 3

File details

Details for the file cattykit-0.1.0.tar.gz.

File metadata

  • Download URL: cattykit-0.1.0.tar.gz
  • Upload date:
  • Size: 49.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for cattykit-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e32e76453cd9c1f8ba5688b407dfa9a9c4c6d22855e631558cddfc5ee96e0569
MD5 a3fb3e5483a1b2566d9477fc6a6aa10d
BLAKE2b-256 4640a92bc5f8b9b18bc3c3fd0f48422fa6538ea21ae032e729ed4588a9cb7176

See more details on using hashes here.

Provenance

The following attestation bundles were made for cattykit-0.1.0.tar.gz:

Publisher: release.yml on georgeawright/cattykit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cattykit-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: cattykit-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 39.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for cattykit-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cc88aa3fb6ff36757ce49602c043f5923e0c3fa9edb4225d6e6becfe4567a209
MD5 16b09a4df962e0bf099902e3fc660cfb
BLAKE2b-256 05075fae3422d39ed052a14a378e27f3627550415b71c5c587d32ab592b25129

See more details on using hashes here.

Provenance

The following attestation bundles were made for cattykit-0.1.0-py3-none-any.whl:

Publisher: release.yml on georgeawright/cattykit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.1.1

2 files

This release

0.1.0 This release

2 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