fraudtwin.CounterfactualChangeSet#

class fraudtwin.CounterfactualChangeSet(**data)[source][source]#

Bases: BaseModel

Machine-readable explanation of one accepted or rejected request.

Parameters:
  • change_set_id (str)

  • request_index (int)

  • objective (str)

  • status (str)

  • source_payment_id (str | None)

  • derived_payment_id (str | None)

  • requested_budget (float)

  • resolved_budget (float)

  • effective_distance (float | None)

  • per_dimension_costs (dict[str, float])

  • changed_fields (dict[str, dict[str, object]])

  • inapplicable_dimensions (tuple[str, ...])

  • feasibility_constraints (tuple[str, ...])

  • objective_satisfaction (dict[str, object])

  • rejection_reason (str | None)

  • source_to_counterfactual (dict[str, str])

model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'frozen': True}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].