Skip to main content
TensorFlow
Install Learn
  • Introduction
    New to TensorFlow?
  • Tutorials
    Learn how to use TensorFlow with end-to-end examples
  • Guide
    Learn framework concepts and components
  • Learn ML
    Educational resources to master your path with TensorFlow
API
  • TensorFlow (v2.16.1)
  • Versions…
  • TensorFlow.js
  • TensorFlow Lite
  • TFX
Resources
  • LIBRARIES
  • TensorFlow.js
    Develop web ML applications in JavaScript
  • TensorFlow Lite
    Deploy ML on mobile, microcontrollers and other edge devices
  • TFX
    Build production ML pipelines
  • All libraries
    Create advanced models and extend TensorFlow
  • RESOURCES
  • Models & datasets
    Pre-trained models and datasets built by Google and the community
  • Tools
    Tools to support and accelerate TensorFlow workflows
  • Responsible AI
    Resources for every stage of the ML workflow
  • Recommendation systems
    Build recommendation systems with open source tools
Community
  • Groups
    User groups, interest groups and mailing lists
  • Contribute
    Guide for contributing to code and documentation
  • Blog
    Stay up to date with all things TensorFlow
  • Forum
    Discussion platform for the TensorFlow community
Why TensorFlow
  • About
  • Case studies
/
  • English
  • Español – América Latina
  • Français
  • Indonesia
  • Italiano
  • Polski
  • Português – Brasil
  • Tiếng Việt
  • Türkçe
  • Русский
  • עברית
  • العربيّة
  • فارسی
  • हिंदी
  • বাংলা
  • ภาษาไทย
  • 中文 – 简体
  • 日本語
  • 한국어
GitHub Sign in
  • Responsible AI
Overview Guides and Tutorials API
TensorFlow
  • Install
  • Learn
    • More
  • API
    • More
  • Resources
    • More
    • Overview
    • Guides and Tutorials
    • API
  • Community
    • More
  • Why TensorFlow
    • More
  • GitHub
  • API Reference
  • Model Remediation
  • model_remediation
    • Overview
  • model_remediation.counterfactual
    • Overview
    • keras
      • Overview
      • CounterfactualModel
      • models
        • Overview
      • utils
        • Overview
        • CounterfactualPackedInputs
        • build_counterfactual_data
        • pack_counterfactual_data
        • validate_counterfactual_structure
    • losses
      • Overview
      • CounterfactualLoss
      • PairwiseAbsoluteDifferenceLoss
      • PairwiseCosineLoss
      • PairwiseMSELoss
  • model_remediation.min_diff
    • Overview
    • keras
      • Overview
      • MinDiffModel
      • models
        • Overview
      • utils
        • Overview
        • MinDiffPackedInputs
        • build_min_diff_dataset
        • pack_min_diff_data
        • unpack_min_diff_data
        • unpack_original_inputs
        • validate_min_diff_structure
    • losses
      • Overview
      • AbsoluteCorrelationLoss
      • AdjustedMMDLoss
      • GaussianKernel
      • LaplacianKernel
      • MMDLoss
      • MinDiffKernel
      • MinDiffLoss
      • kernels
        • Overview
  • Model Card Toolkit
  • model_card_toolkit
    • Overview
    • BaseModelCardField
    • Citation
    • ConfidenceInterval
    • Considerations
    • Dataset
    • Graphic
    • GraphicsCollection
    • KeyVal
    • License
    • Limitation
    • MlmdSource
    • ModelCard
    • ModelCardToolkit
    • ModelDetails
    • ModelParameters
    • ModelSource
    • Owner
    • PerformanceMetric
    • QuantitativeAnalysis
    • Reference
    • Risk
    • SensitiveData
    • Source
    • TfdvSource
    • TfmaSource
    • Tradeoff
    • UseCase
    • User
    • Version
  • Privacy
  • tf_privacy
    • Overview
    • DNNClassifier
    • DPFTRLTreeAggregationOptimizer
    • DPKerasAdagradOptimizer
    • DPKerasAdamOptimizer
    • DPKerasSGDOptimizer
    • DPModel
    • DPQuery
    • DPSequential
    • DiscreteGaussianSumQuery
    • DistributedDiscreteGaussianSumQuery
    • DistributedSkellamSumQuery
    • GaussianSumQuery
    • GenericDPAdagradOptimizer
    • GenericDPAdamOptimizer
    • GenericDPSGDOptimizer
    • NestedQuery
    • NoPrivacyAverageQuery
    • NoPrivacyQuantileEstimatorQuery
    • NoPrivacySumQuery
    • NormalizedQuery
    • QAdaClipTreeResSumQuery
    • QuantileAdaptiveClipSumQuery
    • QuantileEstimatorQuery
    • SumAggregationDPQuery
    • TreeCumulativeSumQuery
    • TreeCumulativeSumQuery.GlobalState
    • TreeRangeSumQuery
    • TreeRangeSumQuery.GlobalState
    • TreeResidualSumQuery
    • TreeResidualSumQuery.GlobalState
    • VectorizedDPKerasAdagradOptimizer
    • VectorizedDPKerasAdamOptimizer
    • VectorizedDPKerasSGDOptimizer
    • compute_dp_sgd_privacy
    • compute_dp_sgd_privacy_statement
    • compute_rdp_single_tree
    • compute_rdp_tree_restart
    • compute_zcdp_single_tree
    • linearly_separable_labeled_examples
    • logistic_dpsgd
    • logistic_objective_perturbation
    • make_dp_model_class
    • make_gaussian_query_optimizer_class
    • make_keras_generic_optimizer_class
    • make_keras_optimizer_class
    • make_vectorized_keras_optimizer_class
    • single_layer_softmax_classifier
    • synthetic_linearly_separable_data
  • tf_privacy.restart_query
    • Overview
    • PeriodicRoundRestartIndicator
    • PeriodicTimeRestartIndicator
    • RestartIndicator
    • RestartQuery
  • tf_privacy.tree_aggregation
    • Overview
    • EfficientTreeAggregator
    • GaussianNoiseGenerator
    • StatelessValueGenerator
    • TreeAggregator
    • TreeState
    • ValueGenerator
    • get_step_idx
  • tf_privacy.v1
    • Overview
    • DNNClassifierV1
    • DPAdagradGaussianOptimizer
    • DPAdagradOptimizer
    • DPAdamGaussianOptimizer
    • DPAdamOptimizer
    • DPGradientDescentGaussianOptimizer
    • DPGradientDescentOptimizer
    • VectorizedDPAdagrad
    • VectorizedDPAdam
    • VectorizedDPSGD
    • make_optimizer_class
    • make_vectorized_optimizer_class
  • Introduction
  • Tutorials
  • Guide
  • Learn ML
  • TensorFlow (v2.16.1)
  • Versions…
  • TensorFlow.js
  • TensorFlow Lite
  • TFX
  • LIBRARIES
  • TensorFlow.js
  • TensorFlow Lite
  • TFX
  • All libraries
  • RESOURCES
  • Models & datasets
  • Tools
  • Responsible AI
  • Recommendation systems
  • Groups
  • Contribute
  • Blog
  • Forum
  • About
  • Case studies
  • TensorFlow
  • Resources
  • Responsible AI
  • API

Responsible AI API Reference
Stay organized with collections Save and categorize content based on your preferences.

The API reference documentation provides detailed information for the classes and methods for the libraries under the Responsible AI toolsuite.

  • Model Remediation API reference
  • Model Card Toolkit API reference
  • TensorFlow Privacy reference

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 2021-09-02 UTC.

  • Stay connected

    • Blog
    • Forum
    • GitHub
    • Twitter
    • YouTube
  • Support

    • Issue tracker
    • Release notes
    • Stack Overflow
    • Brand guidelines
    • Cite TensorFlow
  • Terms
  • Privacy
  • Manage cookies
  • Sign up for the TensorFlow newsletter Subscribe
  • English
  • Español – América Latina
  • Français
  • Indonesia
  • Italiano
  • Polski
  • Português – Brasil
  • Tiếng Việt
  • Türkçe
  • Русский
  • עברית
  • العربيّة
  • فارسی
  • हिंदी
  • বাংলা
  • ภาษาไทย
  • 中文 – 简体
  • 日本語
  • 한국어