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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e32e76453cd9c1f8ba5688b407dfa9a9c4c6d22855e631558cddfc5ee96e0569
|
|
| MD5 |
a3fb3e5483a1b2566d9477fc6a6aa10d
|
|
| BLAKE2b-256 |
4640a92bc5f8b9b18bc3c3fd0f48422fa6538ea21ae032e729ed4588a9cb7176
|
Provenance
The following attestation bundles were made for cattykit-0.1.0.tar.gz:
Publisher:
release.yml on georgeawright/cattykit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cattykit-0.1.0.tar.gz -
Subject digest:
e32e76453cd9c1f8ba5688b407dfa9a9c4c6d22855e631558cddfc5ee96e0569 - Sigstore transparency entry: 2755769600
- Sigstore integration time:
-
Permalink:
georgeawright/cattykit@a0353bdc185cd3bcba804fe66e88f9bf6284d0a1 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/georgeawright
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@a0353bdc185cd3bcba804fe66e88f9bf6284d0a1 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cc88aa3fb6ff36757ce49602c043f5923e0c3fa9edb4225d6e6becfe4567a209
|
|
| MD5 |
16b09a4df962e0bf099902e3fc660cfb
|
|
| BLAKE2b-256 |
05075fae3422d39ed052a14a378e27f3627550415b71c5c587d32ab592b25129
|
Provenance
The following attestation bundles were made for cattykit-0.1.0-py3-none-any.whl:
Publisher:
release.yml on georgeawright/cattykit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cattykit-0.1.0-py3-none-any.whl -
Subject digest:
cc88aa3fb6ff36757ce49602c043f5923e0c3fa9edb4225d6e6becfe4567a209 - Sigstore transparency entry: 2755769761
- Sigstore integration time:
-
Permalink:
georgeawright/cattykit@a0353bdc185cd3bcba804fe66e88f9bf6284d0a1 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/georgeawright
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@a0353bdc185cd3bcba804fe66e88f9bf6284d0a1 -
Trigger Event:
push
-
Statement type: