RiskDatasetSpec class

Constructors

RiskDatasetSpec({List<String> cuts = const [], List<String> dims = const [], String? from, int? horizon, String? kind, String? name, int? rows, String? seed, String? to})
Returns a new RiskDatasetSpec instance.

Properties

cuts ↔ List<String>
Cuts are the two RFC 3339 instants dividing train | val | test. Omit them to take 70% and 85% of the window by time. Splitting is TEMPORAL and then grouped by subject — a random split puts one device on both sides of the line and the model memorises the entity instead of the behaviour.
getter/setter pair
dims ↔ List<String>
Dims are the coordinates to carry, by published name. Empty takes the whole surface. They are stored in the plane's own order, never the order given, so two requests naming the same dims produce identical rows.
getter/setter pair
from ↔ String?
From is where the event window opens, RFC 3339, INCLUSIVE. The window may not be longer than the source's own retention: past that, its older half is already gone and the dataset would silently be shorter than it says.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
horizon ↔ int?
Horizon is how many days a row must have aged before it may be admitted. It is what keeps a fact that was not yet knowable at scoring time out of a training set: a chargeback lands 30 to 120 days after the transaction it condemns, so 120 for the payment lane and 14 for signup abuse. Zero admits the whole window and is honest only where the outcome is immediate.
getter/setter pair
kind ↔ String?
Kind narrows to one subject kind — person, session or account. Empty takes every kind.
getter/setter pair
name ↔ String?
Name identifies the dataset across its versions: lower-case letters, digits and hyphens, starting with a letter.
getter/setter pair
rows ↔ int?
Rows caps the materialisation. Zero takes the plane's own bound.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
seed ↔ String?
Seed decides WHICH subjects are admitted when the window holds more rows than the cap allows. It is recorded on the version, so a capped dataset is reproducible rather than being whichever rows the store returned first. Omit it to seed from the dataset's name.
getter/setter pair
to ↔ String?
To is where the window ends, EXCLUSIVE, so two datasets meeting at one instant share no row. A materialisation reads less than this — the end is pulled back by Horizon, and the lineage reports the window it actually read.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(dynamic value) → RiskDatasetSpec?
Returns a new RiskDatasetSpec instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<RiskDatasetSpec>
mapFromJson(dynamic json) → Map<String, RiskDatasetSpec>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<RiskDatasetSpec>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.