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.
At volume: dg.ask_many(questions, cases={"ids": ids}, ...) asks about more than 10,000 cases in
chunks on one fit and joins them in order; export="csv" on ask adds a CSV of every case
(dg.download(out["export"]["results_url"], "results.csv")). The client retries rate limits and
safe calls on its own.
- Docs: https://datagoat.io/docs
- SDK reference: https://datagoat.io/docs/sdks
- Quick start: https://datagoat.io/docs/quickstart
Release files for datagoat 1.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| datagoat-1.3.0.tar.gz | 20.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| datagoat-1.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 37.6 kB
Release files / datagoat-1.3.0.tar.gz
| Download URL | datagoat-1.3.0.tar.gz |
|---|---|
| Size | 20.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2f81e67407cee3ad676b507a2f1c71312f4500ec01c5f501b43a6d18874be2ec
|
|
BLAKE2b-256 checksum How to use checksums |
f4dcd59a3293ca4cb2315cdbc992b36f9a826da187c5af1121fd5ea2447b4c04
|
| 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.3.0-py3-none-any.whl
| Download URL | datagoat-1.3.0-py3-none-any.whl |
|---|---|
| Size | 16.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d4672826a50dc3912294577d657f0f983ca460b707f2cbf368537a9df95de8da
|
|
BLAKE2b-256 checksum How to use checksums |
331dd3e301ed44e3bb8215f6f00c273c441a55a2046a97df38c44304b09ad385
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.10
|