TensorFlow
Install Learn
  • Introduction
    New to TensorFlow?
  • TensorFlow
    The core open source ML library
  • For JavaScript
    TensorFlow.js for ML using JavaScript
  • For Mobile & Edge
    TensorFlow Lite for mobile and edge devices
  • For Production
    TensorFlow Extended for end-to-end ML components
API
  • TensorFlow (v2.11.1)
  • Versions…
  • TensorFlow.js
  • TensorFlow Lite
  • TFX
Resources
  • Models & datasets
    Pre-trained models and datasets built by Google and the community
  • Tools
    Ecosystem of tools to help you use TensorFlow
  • Libraries & extensions
    Libraries and extensions built on TensorFlow
  • TensorFlow Certificate program
    Differentiate yourself by demonstrating your ML proficiency
  • Learn ML
    Educational resources to learn the fundamentals of ML with TensorFlow
  • Responsible AI
    Resources and tools to integrate Responsible AI practices into your ML workflow
Community
  • Join
    Explore ways to get involved
  • Blog
    Stay up to date with all things TensorFlow
  • Forum ↗
    Discussion platform for the TensorFlow community
  • Groups
    User groups, interest groups and mailing lists
  • Contribute
    Guide for contributing to code and documentation
Why TensorFlow
  • About
  • Case studies
  • English
  • Bahasa Indonesia
  • Español – América Latina
  • Français
  • 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
    • ModelCardGenerator
    • 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_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
  • TensorFlow
  • For JavaScript
  • For Mobile & Edge
  • For Production
  • TensorFlow (v2.11.1)
  • Versions…
  • TensorFlow.js
  • TensorFlow Lite
  • TFX
  • Models & datasets
  • Tools
  • Libraries & extensions
  • TensorFlow Certificate program
  • Learn ML
  • Responsible AI
  • Join
  • Blog
  • Forum ↗
  • Groups
  • Contribute
  • 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
  • Sign up for the TensorFlow newsletter Subscribe
  • English
  • Bahasa Indonesia
  • Español – América Latina
  • Français
  • Italiano
  • Polski
  • Português – Brasil
  • Tiếng Việt
  • Türkçe
  • Русский
  • עברית
  • العربيّة
  • فارسی
  • हिंदी
  • বাংলা
  • ภาษาไทย
  • 中文 – 简体
  • 日本語
  • 한국어