Skip to main content

datagoat

Ask typed questions about cases: yesno, score, choice and rank. Datagoat answers from what happened to cases like them. Every answered case comes back with a chance, the columns that moved it, and a signed Verdict. When the record can't support an answer, Datagoat refuses rather than guess.

pip install datagoat
datagoat signup      # a free test key for the sample records
datagoat sample      # ask about sample:saas_churn and verify the answer

Every call sends a record (past cases and their outcomes), questions, and the cases to answer:

from datagoat import Client, yesno, score

dg = Client()        # DATAGOAT_API_KEY, or the key `datagoat signup` saved
out = dg.ask(
    {"churn": yesno("churned", outcome_is_desirable=False),
     "risk":  score("churned", outcome_is_desirable=False)},
    dataset_id="sample:saas_churn", entity_column="customer_id", subject_kind="org",
    cases={"ids": ["cust_0001"]},
)
a = out["answers"]["churn"]
a["state"]                 # "answered" | "refused" | "not_yet": read it first
a["cases"][0]["p"]         # 0.7005: the chance cust_0001 churns
a["cases"][0]["reasons"]   # the columns that moved it, and which way
dg.verify_all(out)         # True: every Verdict is genuine

Records that aren't one row per case take a shape: events, series, panel, signals or traces.

Release files for datagoat 1.1.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 datagoat 1.1.0
File Size Uploaded
datagoat-1.1.0.tar.gz 13.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for datagoat 1.1.0
File Interpreter ABI Platform
datagoat-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 26.6 kB

Release files / datagoat-1.1.0.tar.gz

Download URL datagoat-1.1.0.tar.gz
Size 13.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ff73be11fb82390ad13d7535f67e937632fb3089b5ee48e01b2c3182e5a4debc
BLAKE2b-256 checksum
How to use checksums
72aed54f65c16b115c2302d0cbaf505980c81d8a3ca4b904d789646560b7a2a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release files / datagoat-1.1.0-py3-none-any.whl

Download URL datagoat-1.1.0-py3-none-any.whl
Size 12.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9e3b9ea5028c1373f3eb08873c8f51787e708297dbbe68718c0955337a853788
BLAKE2b-256 checksum
How to use checksums
18268e2e6c70fe3969a325a7db843a48c050fe62c51f372219abdc23c510cab4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release history Release notifications | RSS feed

1.5.0

2 release files

1.4.0

2 release files

1.3.0

2 release files

1.2.0

2 release files

This release

1.1.0 This release

2 release files

1.0.0

2 release 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