Skip to main content

Customizable Case-Based Reasoning (CBR) toolkit for Python with a built-in API and CLI.

Project description

CBRkit

cbrkit logo

PyPI | Docs | Example

Customizable Case-Based Reasoning (CBR) toolkit for Python with a built-in API and CLI.


CBRkit

[!caution] The project is under active development and does not yet adhere to semantic versioning. Breaking changes may occur at any time for versions 0.x.y. Once the project reaches version 1.0, semantic versioning will be applied.

Installation

The library is available on PyPI, so you can install it with pip:

pip install cbrkit

It comes with several optional dependencies for certain tasks like NLP which can be installed with:

pip install cbrkit[EXTRA_NAME,...]

where EXTRA_NAME is one of the following:

  • nlp: Natural Language Processing (NLP), including spacy, openai, and sentence-transformers
  • cli: Command Line Interface (CLI)
  • api: REST API Server
  • all: All of the above

Usage

CBRkit allows the definition of similarity metrics through composition. This means that you can easily build even complex similarities by mixing built-in and/or custom measures. CBRkit also includes predefined aggregation functions. A working retrieval example can be found as part of our testing suite.

The following modules are part of CBRkit:

  • sim: Similarity generator functions for various data types (e.g., strings, numbers).
  • global_sim: Similarity generator functions for aggregating the above ones.
  • retrieval: Functions for retrieving cases based on a query.
  • typing: Generic type definitions for defining custom functions.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

cbrkit-0.2.1.tar.gz (15.2 kB view details)

Uploaded Source

Built Distribution

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

cbrkit-0.2.1-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

Details for the file cbrkit-0.2.1.tar.gz.

File metadata

  • Download URL: cbrkit-0.2.1.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for cbrkit-0.2.1.tar.gz
Algorithm Hash digest
SHA256 5d708a7530f17112a74b2cc7512565a5a00d8eba0f0b62ea21ca3961cfceb371
MD5 3626dd0f0ea9fe0e06bb26b0f84fdece
BLAKE2b-256 af7be02987f60cf5f03b24c4a2e6ffa2ac0ad79cadb36559e1fbe7c41f9e6112

See more details on using hashes here.

File details

Details for the file cbrkit-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: cbrkit-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 19.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for cbrkit-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9798d65893f79f0f3bbd2e1acb970e7a4c5f21e5f818d6e6ab6b860864243022
MD5 b585a59e4e58f899dfec0c2022485549
BLAKE2b-256 6437145ffa0035964e6cda8255dbd867dcc1f394810e559d7a8114ed2d307285

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