RiskScoreOut class

Constructors

RiskScoreOut({bool? alert, List<RiskCause> causes = const [], num? cut, int? policy, String? refusal, num? score, bool? scored, bool? shadow, String? shape, List<RiskValue> values = const []})
Returns a new RiskScoreOut instance.

Properties

alert ↔ bool?
Alert is whether this would become evidence. It is false in shadow however high the score.
getter/setter pair
causes ↔ List<RiskCause>
Causes is the per-feature attribution, ordered by contribution. Each is a COUNTERFACTUAL on the model that produced the score — the coordinate moved to its neutral value and the event rescored — so the explanation is the same arithmetic the score came from.
getter/setter pair
cut ↔ num?
Cut is the threshold in force, derived from the stated appetite as a quantile of the scores actually observed rather than fixed at a number.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
policy ↔ int?
Policy is the version of your organisation's decision regime this verdict was reached under, from its own policy history (GET /v1/risk/policy). Cut is derived from the appetite that version states, so it is the record that makes this decision reconstructible after the appetite is restated. Zero means no regime has ever been stated and the default posture — shadow — was in force.
getter/setter pair
refusal ↔ String?
Refusal names why the model declined, when it did.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
score ↔ num?
Score is where the event sits in the tenant's own density: 0 where its recent behaviour is densest, 1 where there is none of it.
getter/setter pair
scored ↔ bool?
Scored is false when the model declined, and Refusal says which refusal it was: warming, unusable or unidentified. None of them is a clean bill of health, which is why the refusal is stated rather than rendered as a score of zero.
getter/setter pair
shadow ↔ bool?
Shadow is whether the model is testing rather than deciding — scoring, learning and recording what it WOULD have alerted on, and changing no outcome. It is the default for a model no one has reviewed yet.
getter/setter pair
shape ↔ String?
Shape is the model space this verdict was reached in, as <family>:<digest>: the KIND of model, and that family's own digest over your organisation's feature inventory in order and the detector's geometry parameters. It is what pins an adverse decision to a model — a score is only meaningful against the space that produced it, and without this the only answer to "which model decided this" was "the one that was running", which is not an answer. The family leads it because everything after it is one family's arithmetic. Two spaces are the same space only if they are the same family, so comparing this with the shape on your model state or on a published value is a comparison that holds ACROSS families and not only inside one. It names the SPACE, not the learned state, and that is deliberate. The masses at the instant of a score are in-process counters somewhere between two published values, so citing a published address here would claim that value produced this score — true only for the score taken the instant after a publication. This, the policy version and the event's own time are what IS true, and the published history's clock (GET /v1/risk/state) brackets the decision between two named values from there.
getter/setter pair
values ↔ List<RiskValue>
Values is every coordinate, including the ones that contributed nothing, so a reviewer sees what the model read and not only what it concluded.
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) → RiskScoreOut?
Returns a new RiskScoreOut instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<RiskScoreOut>
mapFromJson(dynamic json) → Map<String, RiskScoreOut>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<RiskScoreOut>>

Constants

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