Hanzo
OpenapiDataset

Declare the next version of a dataset

Declares the next version of a dataset from a bound query over this org's own feature surface.

POST /v1/dataset

Addresshttps://api.hanzo.ai/v1/dataset
MethodPOST
OperationriskCreateDataset
AuthAuthorization: Bearer $HANZO_API_KEY

Declares the next version of a dataset from a bound query over this org's own feature surface.

It mints a VERSION and writes no rows: a version is declared, then materialised once, then never rewritten. Version numbers are monotone and never reused, so "version 3 of signups" means one thing forever — which is the whole reason a model can cite one.

The window is bounded by the source's retention, the horizon by a year, the rows by the plane's cap, and the number of datasets and versions per org by their own limits. Every refusal names which bound it hit.

Request

9 fields, body application/json (required).

FieldInTypeRequiredDescription
cutsbodystring[]Cuts are the two RFC 3339 instants dividing train | val | test. Omit them to take 70% and 85% of the window by time.
dimsbodystring[]Dims are the coordinates to carry, by published name. Empty takes the whole surface.
frombodystringFrom is where the event window opens, RFC 3339, INCLUSIVE.
horizonbodyintegerHorizon is how many days a row must have aged before it may be admitted.
kindbodystringKind narrows to one subject kind — person, session or account.
namebodystringName identifies the dataset across its versions: lower-case letters, digits and hyphens, starting with a letter.
rowsbodyintegerRows caps the materialisation.
seedbodystringSeed decides WHICH subjects are admitted when the window holds more rows than the cap allows.
tobodystringTo is where the window ends, EXCLUSIVE, so two datasets meeting at one instant share no row.

Response

StatusBodyMeaning
200riskDatasetok

200 body — 30 fields.

FieldInTypeAlwaysDescription
atbodystringAt is when this version last changed state, RFC 3339 UTC.
bybodystringBy is who moved it there: the validated user, or the org itself when the caller is a machine with no user behind it.
countsbodyriskSplitCounts
counts.judgedbodyintegerJudged is how many rows carry a disposition.
counts.productivebodyintegerProductive is how many judged rows carry the one disposition.
counts.rowsbodyintegerRows is how many rows the version holds across every split.
counts.subjectsbodyintegerSubjects is how many distinct subjects the rows belong to.
counts.testbodyintegerTest is how many fall after the second cut — the LATEST slice, and the only one a score is honest about, since the split is temporal.
counts.trainbodyintegerTrain is how many rows fall before the first cut — the EARLIEST slice of the window, which is what a model is fitted on.
counts.unproductivebodyintegerUnproductive is how many carry the other. With Productive it accounts for Judged, so the class imbalance is visible before anyone trains on it; both stay 0…
counts.valbodyintegerVal is how many fall between the two cuts, held out for tuning.
digestbodystringDigest fingerprints the SPEC and the ROWS together.
namebodystringName identifies the dataset across all of its versions.
oversizebodyintegerOversize is how many of the window's subjects this version could NOT carry because their subject identity exceeds the plane's per-subject byte bound.
refusalbodystringRefusal names why there are no bytes, when there are none.
runningbodybooleanRunning is true while THIS process is materialising the version.
sharebodyintegerShare is the fraction of the window's subjects admitted, in thousandths.
specbodyriskDatasetSpec
spec.cutsbodystring[]Cuts are the two RFC 3339 instants dividing train | val | test. Omit them to take 70% and 85% of the window by time.
spec.dimsbodystring[]Dims are the coordinates to carry, by published name. Empty takes the whole surface.
spec.frombodystringFrom is where the event window opens, RFC 3339, INCLUSIVE.
spec.horizonbodyintegerHorizon is how many days a row must have aged before it may be admitted.
spec.kindbodystringKind narrows to one subject kind — person, session or account.
spec.namebodystringName identifies the dataset across its versions: lower-case letters, digits and hyphens, starting with a letter.
spec.rowsbodyintegerRows caps the materialisation.
spec.seedbodystringSeed decides WHICH subjects are admitted when the window holds more rows than the cap allows.
spec.tobodystringTo is where the window ends, EXCLUSIVE, so two datasets meeting at one instant share no row.
statusbodystringStatus is declared, materializing, ready or refused.
truncatedbodybooleanTruncated is true when the row cap bound before the window ran out.
versionbodyintegerVersion is which version this is, from 1 and monotone within the dataset.

Failure carries the platform error shape — see Errors.

Examples

hanzo has no subcommand for this operation — the CLI serves only what cloud's live route table confirms. Use HTTP or an SDK.


Dataset API · All Hanzo APIs · Interactive reference

How is this guide?

On this page