model_remediation.min_diff.keras.utils.MinDiffPackedInputs
Stay organized with collections
Save and categorize content based on your preferences.
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 .
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-07-01 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2022-07-01 UTC."],[],[]]