View source on GitHub
|
Named tuple containing both original_inputs and min_diff_data.
model_remediation.min_diff.keras.utils.MinDiffPackedInputs(
original_inputs, min_diff_data
)
MinDiffModel default implementations and utils.(un)pack_* functions use
this class to pack and unpack the separate components required for MinDiff
and regular training.
Attributes | |
|---|---|
original_inputs
|
Batch of inputs that would originally (i.e. without
applying MinDiff) be passed in to a model's Model.call method. This
corresponds to the x component described in tf.keras.Model.fit.
|
min_diff_data
|
Batch of supplemental data to be used to calculate the
min_diff_loss.
|
View source on GitHub