Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Reason given by maintainers: rename "gil"

gilfit (Python)

gilfit suggests the judged fields of a form from the documents people have already settled, and chooses — by replaying them in the order they were settled — how far each suggestion can be trusted and how often a trusted one will be right.

This package binds its Rust decision core: replay settled documents to choose how far each layer's suggestions for a form field can be trusted, and get back the decision records the choice rests on.

pip install gilfit
import gilfit

form = gilfit.Form.from_dict(
    {
        "name": "ticket",
        "fields": [
            {"name": "product", "role": "observed"},
            {"name": "summary", "role": "observed"},
            {"name": "team", "role": "judged"},
        ],
    }
)
documents = gilfit.read_records(
    "settled.jsonl"
)  # one JSON object per line, in settlement order
thresholds, records = gilfit.select_layers(
    form, "team", documents, target_precision=0.8
)
print(thresholds["key"]["chosen"], len(records))

Before choosing thresholds, narrow the fields that key the judged field. A field that happened to settle with one value for a while would otherwise key every later document that shares it:

choice = gilfit.select_key_fields(form, "team", documents, target_precision=0.8, minimum_answered=30)
definition = {
    "name": "ticket",
    "fields": [
        {"name": "product", "role": "observed"},
        {"name": "summary", "role": "observed"},
        {"name": "team", "role": "judged", "key_fields": choice["key_fields"]},
    ],
}
thresholds, records = gilfit.select_layers(
    gilfit.Form.from_dict(definition), "team", documents, target_precision=0.8
)

key_fields is None when no narrower set did better than every field — leave it unset then.

The other settings follow the same pattern — choose, then set on the field: select_key_concentrations (set as key_concentrations, after key_fields) and, for a field with a coarse level ("coarse": {"prefix": 2}), select_coarse once its value thresholds are set.

Status: early. The API may change within 0.x — each change is listed in CHANGELOG.md with what to do about it.

Apache-2.0 — see LICENSE.

Metadata

Release files for gilfit 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 gilfit 0.2.0
File Size Uploaded Provenance Actions
gilfit-0.2.0.tar.gz 63.5 kB Without provenance Details for gilfit-0.2.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for gilfit 0.2.0
File Actions
gilfit-0.2.0-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details for gilfit-0.2.0-cp311-abi3-win_amd64.whl
gilfit-0.2.0-cp311-abi3-musllinux_1_2_x86_64.whl CPython 3.11 abi3 Linux musl 1.2+ x86-64 Details for gilfit-0.2.0-cp311-abi3-musllinux_1_2_x86_64.whl
gilfit-0.2.0-cp311-abi3-manylinux_2_28_x86_64.whl CPython 3.11 abi3 Linux glibc 2.28+ x86-64 Details for gilfit-0.2.0-cp311-abi3-manylinux_2_28_x86_64.whl
gilfit-0.2.0-cp311-abi3-manylinux_2_28_aarch64.whl CPython 3.11 abi3 Linux glibc 2.28+ ARM64 Details for gilfit-0.2.0-cp311-abi3-manylinux_2_28_aarch64.whl
gilfit-0.2.0-cp311-abi3-macosx_11_0_arm64.whl CPython 3.11 abi3 macOS 11.0+ ARM64 Details for gilfit-0.2.0-cp311-abi3-macosx_11_0_arm64.whl
gilfit-0.2.0-cp311-abi3-macosx_10_12_x86_64.whl CPython 3.11 abi3 macOS 10.12+ x86-64 Details for gilfit-0.2.0-cp311-abi3-macosx_10_12_x86_64.whl

Total release size: 4.2 MB

Release files / gilfit-0.2.0.tar.gz

Download URL gilfit-0.2.0.tar.gz
Size 63.5 kB
Tags Source
SHA-256 checksum
How to use checksums
7c108d4f84b62fc95968545d8ce47980e1bac67790febc6db85a55a372fd33d5
BLAKE2b-256 checksum
How to use checksums
c27d81a9c91c959fc091ccf462a51f3d1c4bb41829b2f5641aa13452215d208b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / gilfit-0.2.0-cp311-abi3-win_amd64.whl

Download URL gilfit-0.2.0-cp311-abi3-win_amd64.whl
Size 533.6 kB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
e1753f11575e0408c94385fd4bb6291b41cf74d2abbdd8ba5abaca11e521198f
BLAKE2b-256 checksum
How to use checksums
63dc7bd8ea3ab418b8e771ad8c5b8d342a6198edaae2da521f085ad4bbec2219
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / gilfit-0.2.0-cp311-abi3-musllinux_1_2_x86_64.whl

Download URL gilfit-0.2.0-cp311-abi3-musllinux_1_2_x86_64.whl
Size 912.4 kB
Tags CPython 3.11 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
0442c2891598ca9132eab175376050d5a4827587c175611b3c8832d0040ebdb3
BLAKE2b-256 checksum
How to use checksums
310d78c0d77d71b850b89fb2b69d61e3c133c5c900c552735e0a8f975c390fc0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / gilfit-0.2.0-cp311-abi3-manylinux_2_28_x86_64.whl

Download URL gilfit-0.2.0-cp311-abi3-manylinux_2_28_x86_64.whl
Size 704.1 kB
Tags CPython 3.11 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
24b3f40f76c9b4607d21bddfb751cf8ade95fe66e3677fa4483fc3962498850c
BLAKE2b-256 checksum
How to use checksums
af1ddef06068efd235448419a4e942c01d04799978ee889411d549d447970f54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / gilfit-0.2.0-cp311-abi3-manylinux_2_28_aarch64.whl

Download URL gilfit-0.2.0-cp311-abi3-manylinux_2_28_aarch64.whl
Size 668.1 kB
Tags CPython 3.11 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
7160525cfa254241bb2383695f50f0321330ea3b443704995642ecfff4f101cc
BLAKE2b-256 checksum
How to use checksums
8611c6f9c7a084e04e5ecdf28356a59da697c3f3030ed600defd0a92315625ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / gilfit-0.2.0-cp311-abi3-macosx_11_0_arm64.whl

Download URL gilfit-0.2.0-cp311-abi3-macosx_11_0_arm64.whl
Size 620.7 kB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
9202927ad0e5465ba881b2b8de4d4a867f3ba9c5901e6c349a379f434e802e5a
BLAKE2b-256 checksum
How to use checksums
afd2d9255df9bc05212beb838c050934907eb2ba71a139677663188c7beb30f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / gilfit-0.2.0-cp311-abi3-macosx_10_12_x86_64.whl

Download URL gilfit-0.2.0-cp311-abi3-macosx_10_12_x86_64.whl
Size 656.4 kB
Tags CPython 3.11 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
225e2cb16ded960e8b2decd5d8455d37bd7270e1f82484d685e5d0a2b7c11103
BLAKE2b-256 checksum
How to use checksums
1abf27151a44c475ddfdf2a680f4da50cee8a2a6c01ee5de558342b43bbc7158
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for gilfit 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

7 release files No provenance

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