CINXE.COM
tf-keras/tf_keras/losses.py at v2.18.0 · keras-team/tf-keras · GitHub
<!DOCTYPE html> <html lang="en" data-color-mode="auto" data-light-theme="light" data-dark-theme="dark" data-a11y-animated-images="system" data-a11y-link-underlines="true" > <head> <meta charset="utf-8"> <link rel="dns-prefetch" href="https://github.githubassets.com"> <link rel="dns-prefetch" href="https://avatars.githubusercontent.com"> <link rel="dns-prefetch" href="https://github-cloud.s3.amazonaws.com"> <link rel="dns-prefetch" href="https://user-images.githubusercontent.com/"> <link rel="preconnect" href="https://github.githubassets.com" crossorigin> <link rel="preconnect" href="https://avatars.githubusercontent.com"> <link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/light-605318cbe3a1.css" /><link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/dark-bd1cb5575fff.css" /><link data-color-theme="dark_dimmed" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/dark_dimmed-52a2075571c3.css" /><link data-color-theme="dark_high_contrast" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/dark_high_contrast-bf3988586de0.css" /><link data-color-theme="dark_colorblind" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/dark_colorblind-27a437876a92.css" /><link data-color-theme="light_colorblind" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/light_colorblind-97f0dc959f8f.css" /><link data-color-theme="light_high_contrast" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/light_high_contrast-708e3a93215a.css" /><link data-color-theme="light_tritanopia" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/light_tritanopia-9217138a8d5b.css" /><link data-color-theme="dark_tritanopia" crossorigin="anonymous" media="all" rel="stylesheet" data-href="https://github.githubassets.com/assets/dark_tritanopia-4397d91bdb49.css" /> <link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-primitives-225433424a87.css" /> <link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-93aded0ee8a1.css" /> <link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/global-5b2991c52993.css" /> <link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/github-d92840ce6f97.css" /> <link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/staff-7d691607ec07.css" /> <link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/devtools-ed3c56d5f6b2.css" /> <link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/repository-4fce88777fa8.css" /> <link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/code-0210be90f4d3.css" /> <script type="application/json" id="client-env">{"locale":"en","featureFlags":["a11y_quote_reply_fix","contentful_lp_optimize_image","contentful_lp_hero_video_cover_image","copilot_immersive_plugin_system","copilot_new_references_ui","copilot_chat_repo_custom_instructions_preview","copilot_chat_immersive_subthreading","copilot_no_floating_button","copilot_smell_icebreaker_ux","copilot_read_shared_conversation","dotcom_chat_client_side_skills","experimentation_azure_variant_endpoint","enterprise_nav_redesign","failbot_handle_non_errors","geojson_azure_maps","ghost_pilot_confidence_truncation_25","ghost_pilot_confidence_truncation_40","github_models_o3_mini_streaming","hovercard_accessibility","insert_before_patch","issues_react_remove_placeholders","issues_react_blur_item_picker_on_close","marketing_pages_search_explore_provider","react_data_router_pull_requests","remove_child_patch","sample_network_conn_type","swp_enterprise_contact_form","site_proxima_australia_update","issues_react_create_milestone","issues_react_cache_fix_workaround","lifecycle_label_name_updates","copilot_task_oriented_assistive_prompts","issue_types_prevent_private_type_creation"]}</script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/wp-runtime-7b48293b3dd7.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_oddbird_popover-polyfill_dist_popover_js-9da652f58479.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_github_arianotify-polyfill_ariaNotify-polyfill_js-node_modules_github_mi-3abb8f-d7e6bc799724.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/ui_packages_failbot_failbot_ts-4600dbf2d60a.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/environment-f04cb2a9fc8c.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_primer_behaviors_dist_esm_index_mjs-0dbb79f97f8f.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_github_selector-observer_dist_index_esm_js-f690fd9ae3d5.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_github_relative-time-element_dist_index_js-f6da4b3fa34c.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_github_text-expander-element_dist_index_js-78748950cb0c.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_github_auto-complete-element_dist_index_js-node_modules_github_catalyst_-8e9f78-a74b4e0a8a6b.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_github_filter-input-element_dist_index_js-node_modules_github_remote-inp-b5f1d7-a1760ffda83d.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_github_markdown-toolbar-element_dist_index_js-ceef33f593fa.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_github_file-attachment-element_dist_index_js-node_modules_primer_view-co-c44a69-8094ee2ecc5e.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/github-elements-e73c59eabd5a.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/element-registry-0339e35021ae.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_braintree_browser-detection_dist_browser-detection_js-node_modules_githu-bb80ec-72267f4e3ff9.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_lit-html_lit-html_js-be8cb88f481b.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_github_mini-throttle_dist_index_js-node_modules_morphdom_dist_morphdom-e-7c534c-a4a1922eb55f.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_github_turbo_dist_turbo_es2017-esm_js-e3cbe28f1638.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_github_remote-form_dist_index_js-node_modules_delegated-events_dist_inde-893f9f-6cf3320416b8.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_color-convert_index_js-e3180fe3bcb3.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_github_quote-selection_dist_index_js-node_modules_github_session-resume_-69cfcc-bc42a18e77d5.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/ui_packages_updatable-content_updatable-content_ts-2a55124d5c52.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/app_assets_modules_github_behaviors_task-list_ts-app_assets_modules_github_sso_ts-ui_packages-900dde-768abe60b1f8.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/app_assets_modules_github_sticky-scroll-into-view_ts-3e000c5d31a9.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/app_assets_modules_github_behaviors_ajax-error_ts-app_assets_modules_github_behaviors_include-87a4ae-21948f72ce0b.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/app_assets_modules_github_behaviors_commenting_edit_ts-app_assets_modules_github_behaviors_ht-83c235-e429cff6ceb1.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/behaviors-c37b8eb215ba.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_delegated-events_dist_index_js-node_modules_github_catalyst_lib_index_js-f6223d90c7ba.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/notifications-global-01e85cd1be94.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_github_mini-throttle_dist_index_js-node_modules_github_catalyst_lib_inde-dbbea9-26cce2010167.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/code-menu-1c0aedc134b1.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/primer-react-d4f7d0473d87.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/react-core-88273863451e.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/react-lib-f1bca44e0926.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/octicons-react-611691cca2f6.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_emotion_is-prop-valid_dist_emotion-is-prop-valid_esm_js-node_modules_emo-62da9f-2df2f32ec596.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_github_mini-throttle_dist_index_js-node_modules_stacktrace-parser_dist_s-e7dcdd-f7cc96ebae76.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_oddbird_popover-polyfill_dist_popover-fn_js-55fea94174bf.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_dompurify_dist_purify_es_mjs-dd1d3ea6a436.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_lodash-es__Stack_js-node_modules_lodash-es__Uint8Array_js-node_modules_l-4faaa6-4a736fde5c2f.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_lodash-es__baseIsEqual_js-8929eb9718d5.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_github_hydro-analytics-client_dist_analytics-client_js-node_modules_gith-40531a-09af0ef9a562.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/ui_packages_aria-live_aria-live_ts-ui_packages_promise-with-resolvers-polyfill_promise-with-r-17c672-34345cb18aac.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/ui_packages_paths_index_ts-f4b1f66d3ae9.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/ui_packages_ref-selector_RefSelector_tsx-7496afc3784d.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/ui_packages_commit-attribution_index_ts-ui_packages_commit-checks-status_index_ts-ui_packages-7094d4-88b083eead7f.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/ui_packages_diffs_diff-parts_ts-b05d9274ce63.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/ui_packages_code-view-shared_hooks_shortcuts_ts-ui_packages_code-view-shared_utilities_styles-0dc246-f8753c5db08d.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/ui_packages_code-view-shared_hooks_use-canonical-object_ts-ui_packages_document-metadata_docu-eb3d48-1697b118301c.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/ui_packages_code-view-shared_hooks_use-file-page-payload_ts-ui_packages_hydro-analytics_hydro-8ae148-1bd3788d78c1.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/app_assets_modules_github_blob-anchor_ts-ui_packages_code-nav_code-nav_ts-ui_packages_filter--8253c1-91468a3354f9.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/react-code-view-8a3af82fc23c.js"></script> <link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-react.62102b3a56146f8b8424.module.css" /> <link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/react-code-view.a0633e3d36c876a6eaa1.module.css" /> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/notifications-subscriptions-menu-58a0c58bfee4.js"></script> <link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-react.62102b3a56146f8b8424.module.css" /> <link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/notifications-subscriptions-menu.1bcff9205c241e99cff2.module.css" /> <title>tf-keras/tf_keras/losses.py at v2.18.0 · keras-team/tf-keras · GitHub</title> <meta name="route-pattern" content="/:user_id/:repository/blob/*name(/*path)" data-turbo-transient> <meta name="route-controller" content="blob" data-turbo-transient> <meta name="route-action" content="show" data-turbo-transient> <meta name="current-catalog-service-hash" content="f3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb"> <meta name="request-id" content="8372:18C552:22DE37:2B8E78:67D2073A" data-pjax-transient="true"/><meta name="html-safe-nonce" content="25a5283bfb8189ac57139e2f197101f167699fba17e2d1864c1e87920ced1c09" data-pjax-transient="true"/><meta name="visitor-payload" content="eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MzcyOjE4QzU1MjoyMkRFMzc6MkI4RTc4OjY3RDIwNzNBIiwidmlzaXRvcl9pZCI6IjIyNTA5NjQ0MjI4MTMxNTcxNzgiLCJyZWdpb25fZWRnZSI6InNvdXRoZWFzdGFzaWEiLCJyZWdpb25fcmVuZGVyIjoic291dGhlYXN0YXNpYSJ9" data-pjax-transient="true"/><meta name="visitor-hmac" content="1f302fc0d033a0a88635d9d3815ce05b267803515e299af39b9b636bb56542a1" data-pjax-transient="true"/> <meta name="hovercard-subject-tag" content="repository:686762574" data-turbo-transient> <meta name="github-keyboard-shortcuts" content="repository,source-code,file-tree,copilot" data-turbo-transient="true" /> <meta name="selected-link" value="repo_source" data-turbo-transient> <link rel="assets" href="https://github.githubassets.com/"> <meta name="google-site-verification" content="Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I"> <meta name="octolytics-url" content="https://collector.github.com/github/collect" /> <meta name="analytics-location" content="/<user-name>/<repo-name>/blob/show" data-turbo-transient="true" /> <meta name="user-login" content=""> <meta name="viewport" content="width=device-width"> <meta name="description" content="The TensorFlow-specific implementation of the Keras API, which was the default Keras from 2019 to 2023. - tf-keras/tf_keras/losses.py at v2.18.0 · keras-team/tf-keras"> <link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="GitHub"> <link rel="fluid-icon" href="https://github.com/fluidicon.png" title="GitHub"> <meta property="fb:app_id" content="1401488693436528"> <meta name="apple-itunes-app" content="app-id=1477376905, app-argument=https://github.com/keras-team/tf-keras/blob/v2.18.0/tf_keras/losses.py" /> <meta name="twitter:image" content="https://opengraph.githubassets.com/77732e580d3f59c2888c87bcc20b4e022f334c053d5c97b30cbb87eb1179192f/keras-team/tf-keras" /><meta name="twitter:site" content="@github" /><meta name="twitter:card" content="summary_large_image" /><meta name="twitter:title" content="tf-keras/tf_keras/losses.py at v2.18.0 · keras-team/tf-keras" /><meta name="twitter:description" content="The TensorFlow-specific implementation of the Keras API, which was the default Keras from 2019 to 2023. - keras-team/tf-keras" /> <meta property="og:image" content="https://opengraph.githubassets.com/77732e580d3f59c2888c87bcc20b4e022f334c053d5c97b30cbb87eb1179192f/keras-team/tf-keras" /><meta property="og:image:alt" content="The TensorFlow-specific implementation of the Keras API, which was the default Keras from 2019 to 2023. - keras-team/tf-keras" /><meta property="og:image:width" content="1200" /><meta property="og:image:height" content="600" /><meta property="og:site_name" content="GitHub" /><meta property="og:type" content="object" /><meta property="og:title" content="tf-keras/tf_keras/losses.py at v2.18.0 · keras-team/tf-keras" /><meta property="og:url" content="https://github.com/keras-team/tf-keras/blob/v2.18.0/tf_keras/losses.py" /><meta property="og:description" content="The TensorFlow-specific implementation of the Keras API, which was the default Keras from 2019 to 2023. - keras-team/tf-keras" /> <meta name="hostname" content="github.com"> <meta name="expected-hostname" content="github.com"> <meta http-equiv="x-pjax-version" content="59c57a8aab7c833ebeefef1236acf3c37f2a882fc885d2263164c6a3b924b70e" data-turbo-track="reload"> <meta http-equiv="x-pjax-csp-version" content="1387756d457e2f7c930482f0374bab8f35110d772491ea950a7236d69098c3a6" data-turbo-track="reload"> <meta http-equiv="x-pjax-css-version" content="186f65b5487bc65e2a0f43760d5795a426974816c46cfaeaa4073cf2b9a348d3" data-turbo-track="reload"> <meta http-equiv="x-pjax-js-version" content="1ae73fe46e81ba78ffdd23edd1b95da435317e6d0da89183772308e28fe2e087" data-turbo-track="reload"> <meta name="turbo-cache-control" content="no-preview" data-turbo-transient=""> <meta name="turbo-cache-control" content="no-cache" data-turbo-transient> <meta data-hydrostats="publish"> <meta name="go-import" content="github.com/keras-team/tf-keras git https://github.com/keras-team/tf-keras.git"> <meta name="octolytics-dimension-user_id" content="34455048" /><meta name="octolytics-dimension-user_login" content="keras-team" /><meta name="octolytics-dimension-repository_id" content="686762574" /><meta name="octolytics-dimension-repository_nwo" content="keras-team/tf-keras" /><meta name="octolytics-dimension-repository_public" content="true" /><meta name="octolytics-dimension-repository_is_fork" content="false" /><meta name="octolytics-dimension-repository_network_root_id" content="686762574" /><meta name="octolytics-dimension-repository_network_root_nwo" content="keras-team/tf-keras" /> <meta name="turbo-body-classes" content="logged-out env-production page-responsive"> <meta name="browser-stats-url" content="https://api.github.com/_private/browser/stats"> <meta name="browser-errors-url" content="https://api.github.com/_private/browser/errors"> <link rel="mask-icon" href="https://github.githubassets.com/assets/pinned-octocat-093da3e6fa40.svg" color="#000000"> <link rel="alternate icon" class="js-site-favicon" type="image/png" href="https://github.githubassets.com/favicons/favicon.png"> <link rel="icon" class="js-site-favicon" type="image/svg+xml" href="https://github.githubassets.com/favicons/favicon.svg" data-base-href="https://github.githubassets.com/favicons/favicon"> <meta name="theme-color" content="#1e2327"> <meta name="color-scheme" content="light dark" /> <link rel="manifest" href="/manifest.json" crossOrigin="use-credentials"> </head> <body class="logged-out env-production page-responsive" style="word-wrap: break-word;"> <div data-turbo-body class="logged-out env-production page-responsive" style="word-wrap: break-word;"> <div class="position-relative header-wrapper js-header-wrapper "> <a href="#start-of-content" data-skip-target-assigned="false" class="px-2 py-4 color-bg-accent-emphasis color-fg-on-emphasis show-on-focus js-skip-to-content">Skip to content</a> <span data-view-component="true" class="progress-pjax-loader Progress position-fixed width-full"> <span style="width: 0%;" data-view-component="true" class="Progress-item progress-pjax-loader-bar left-0 top-0 color-bg-accent-emphasis"></span> </span> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/ui_packages_ui-commands_ui-commands_ts-97496b0f52ba.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/keyboard-shortcuts-dialog-ac448fe050d6.js"></script> <link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-react.62102b3a56146f8b8424.module.css" /> <react-partial partial-name="keyboard-shortcuts-dialog" data-ssr="false" data-attempted-ssr="false" > <script type="application/json" data-target="react-partial.embeddedData">{"props":{"docsUrl":"https://docs.github.com/get-started/accessibility/keyboard-shortcuts"}}</script> <div data-target="react-partial.reactRoot"></div> </react-partial> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_github_remote-form_dist_index_js-node_modules_delegated-events_dist_inde-94fd67-56e2d9924e94.js"></script> <script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/sessions-730dca81d0a2.js"></script> <header class="HeaderMktg header-logged-out js-details-container js-header Details f4 py-3" role="banner" data-is-top="true" data-color-mode=light data-light-theme=light data-dark-theme=dark> <h2 class="sr-only">Navigation Menu</h2> <button type="button" class="HeaderMktg-backdrop d-lg-none border-0 position-fixed top-0 left-0 width-full height-full js-details-target" aria-label="Toggle navigation"> <span class="d-none">Toggle navigation</span> </button> <div class="d-flex flex-column flex-lg-row flex-items-center px-3 px-md-4 px-lg-5 height-full position-relative z-1"> <div class="d-flex flex-justify-between flex-items-center width-full width-lg-auto"> <div class="flex-1"> <button aria-label="Toggle navigation" aria-expanded="false" type="button" data-view-component="true" class="js-details-target js-nav-padding-recalculate js-header-menu-toggle Button--link Button--medium Button d-lg-none color-fg-inherit p-1"> <span class="Button-content"> <span class="Button-label"><div class="HeaderMenu-toggle-bar rounded my-1"></div> <div class="HeaderMenu-toggle-bar rounded my-1"></div> <div class="HeaderMenu-toggle-bar rounded my-1"></div></span> </span> </button> </div> <a class="mr-lg-3 color-fg-inherit flex-order-2 js-prevent-focus-on-mobile-nav" href="/" aria-label="Homepage" data-analytics-event="{"category":"Marketing nav","action":"click to go to homepage","label":"ref_page:Marketing;ref_cta:Logomark;ref_loc:Header"}"> <svg height="32" aria-hidden="true" viewBox="0 0 24 24" version="1.1" width="32" data-view-component="true" class="octicon octicon-mark-github"> <path d="M12.5.75C6.146.75 1 5.896 1 12.25c0 5.089 3.292 9.387 7.863 10.91.575.101.79-.244.79-.546 0-.273-.014-1.178-.014-2.142-2.889.532-3.636-.704-3.866-1.35-.13-.331-.69-1.352-1.18-1.625-.402-.216-.977-.748-.014-.762.906-.014 1.553.834 1.769 1.179 1.035 1.74 2.688 1.25 3.349.948.1-.747.402-1.25.733-1.538-2.559-.287-5.232-1.279-5.232-5.678 0-1.25.445-2.285 1.178-3.09-.115-.288-.517-1.467.115-3.048 0 0 .963-.302 3.163 1.179.92-.259 1.897-.388 2.875-.388.977 0 1.955.13 2.875.388 2.2-1.495 3.162-1.179 3.162-1.179.633 1.581.23 2.76.115 3.048.733.805 1.179 1.825 1.179 3.09 0 4.413-2.688 5.39-5.247 5.678.417.36.776 1.05.776 2.128 0 1.538-.014 2.774-.014 3.162 0 .302.216.662.79.547C20.709 21.637 24 17.324 24 12.25 24 5.896 18.854.75 12.5.75Z"></path> </svg> </a> <div class="flex-1 flex-order-2 text-right"> <a href="/login?return_to=https%3A%2F%2Fgithub.com%2Fkeras-team%2Ftf-keras%2Fblob%2Fv2.18.0%2Ftf_keras%2Flosses.py" class="HeaderMenu-link HeaderMenu-button d-inline-flex d-lg-none flex-order-1 f5 no-underline border color-border-default rounded-2 px-2 py-1 color-fg-inherit js-prevent-focus-on-mobile-nav" data-hydro-click="{"event_type":"authentication.click","payload":{"location_in_page":"site header menu","repository_id":null,"auth_type":"SIGN_UP","originating_url":"https://github.com/keras-team/tf-keras/blob/v2.18.0/tf_keras/losses.py","user_id":null}}" data-hydro-click-hmac="6c6c6df95fb59d44cb5d75b3a3251dec088a44c96868764263bf38dfed3b6043" data-analytics-event="{"category":"Marketing nav","action":"click to Sign in","label":"ref_page:Marketing;ref_cta:Sign in;ref_loc:Header"}" > Sign in </a> </div> </div> <div class="HeaderMenu js-header-menu height-fit position-lg-relative d-lg-flex flex-column flex-auto top-0"> <div class="HeaderMenu-wrapper d-flex flex-column flex-self-start flex-lg-row flex-auto rounded rounded-lg-0"> <nav class="HeaderMenu-nav" aria-label="Global"> <ul class="d-lg-flex list-style-none"> <li class="HeaderMenu-item position-relative flex-wrap flex-justify-between flex-items-center d-block d-lg-flex flex-lg-nowrap flex-lg-items-center js-details-container js-header-menu-item"> <button type="button" class="HeaderMenu-link border-0 width-full width-lg-auto px-0 px-lg-2 py-lg-2 no-wrap d-flex flex-items-center flex-justify-between js-details-target" aria-expanded="false"> Product <svg opacity="0.5" aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-chevron-down HeaderMenu-icon ml-1"> <path d="M12.78 5.22a.749.749 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.06 0L3.22 6.28a.749.749 0 1 1 1.06-1.06L8 8.939l3.72-3.719a.749.749 0 0 1 1.06 0Z"></path> </svg> </button> <div class="HeaderMenu-dropdown dropdown-menu rounded m-0 p-0 pt-2 pt-lg-4 position-relative position-lg-absolute left-0 left-lg-n3 pb-2 pb-lg-4 d-lg-flex flex-wrap dropdown-menu-wide"> <div class="HeaderMenu-column px-lg-4 border-lg-right mb-4 mb-lg-0 pr-lg-7"> <div class="border-bottom pb-3 pb-lg-0 border-lg-bottom-0"> <ul class="list-style-none f5" > <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary d-flex flex-items-center Link--has-description pb-lg-3" data-analytics-event="{"location":"navbar","action":"github_copilot","context":"product","tag":"link","label":"github_copilot_link_product_navbar"}" href="https://github.com/features/copilot"> <svg aria-hidden="true" height="24" viewBox="0 0 24 24" version="1.1" width="24" data-view-component="true" class="octicon octicon-copilot color-fg-subtle mr-3"> <path d="M23.922 16.992c-.861 1.495-5.859 5.023-11.922 5.023-6.063 0-11.061-3.528-11.922-5.023A.641.641 0 0 1 0 16.736v-2.869a.841.841 0 0 1 .053-.22c.372-.935 1.347-2.292 2.605-2.656.167-.429.414-1.055.644-1.517a10.195 10.195 0 0 1-.052-1.086c0-1.331.282-2.499 1.132-3.368.397-.406.89-.717 1.474-.952 1.399-1.136 3.392-2.093 6.122-2.093 2.731 0 4.767.957 6.166 2.093.584.235 1.077.546 1.474.952.85.869 1.132 2.037 1.132 3.368 0 .368-.014.733-.052 1.086.23.462.477 1.088.644 1.517 1.258.364 2.233 1.721 2.605 2.656a.832.832 0 0 1 .053.22v2.869a.641.641 0 0 1-.078.256ZM12.172 11h-.344a4.323 4.323 0 0 1-.355.508C10.703 12.455 9.555 13 7.965 13c-1.725 0-2.989-.359-3.782-1.259a2.005 2.005 0 0 1-.085-.104L4 11.741v6.585c1.435.779 4.514 2.179 8 2.179 3.486 0 6.565-1.4 8-2.179v-6.585l-.098-.104s-.033.045-.085.104c-.793.9-2.057 1.259-3.782 1.259-1.59 0-2.738-.545-3.508-1.492a4.323 4.323 0 0 1-.355-.508h-.016.016Zm.641-2.935c.136 1.057.403 1.913.878 2.497.442.544 1.134.938 2.344.938 1.573 0 2.292-.337 2.657-.751.384-.435.558-1.15.558-2.361 0-1.14-.243-1.847-.705-2.319-.477-.488-1.319-.862-2.824-1.025-1.487-.161-2.192.138-2.533.529-.269.307-.437.808-.438 1.578v.021c0 .265.021.562.063.893Zm-1.626 0c.042-.331.063-.628.063-.894v-.02c-.001-.77-.169-1.271-.438-1.578-.341-.391-1.046-.69-2.533-.529-1.505.163-2.347.537-2.824 1.025-.462.472-.705 1.179-.705 2.319 0 1.211.175 1.926.558 2.361.365.414 1.084.751 2.657.751 1.21 0 1.902-.394 2.344-.938.475-.584.742-1.44.878-2.497Z"></path><path d="M14.5 14.25a1 1 0 0 1 1 1v2a1 1 0 0 1-2 0v-2a1 1 0 0 1 1-1Zm-5 0a1 1 0 0 1 1 1v2a1 1 0 0 1-2 0v-2a1 1 0 0 1 1-1Z"></path> </svg> <div> <div class="color-fg-default h4">GitHub Copilot</div> Write better code with AI </div> </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary d-flex flex-items-center Link--has-description pb-lg-3" data-analytics-event="{"location":"navbar","action":"security","context":"product","tag":"link","label":"security_link_product_navbar"}" href="https://github.com/features/security"> <svg aria-hidden="true" height="24" viewBox="0 0 24 24" version="1.1" width="24" data-view-component="true" class="octicon octicon-shield-check color-fg-subtle mr-3"> <path d="M16.53 9.78a.75.75 0 0 0-1.06-1.06L11 13.19l-1.97-1.97a.75.75 0 0 0-1.06 1.06l2.5 2.5a.75.75 0 0 0 1.06 0l5-5Z"></path><path d="m12.54.637 8.25 2.675A1.75 1.75 0 0 1 22 4.976V10c0 6.19-3.771 10.704-9.401 12.83a1.704 1.704 0 0 1-1.198 0C5.77 20.705 2 16.19 2 10V4.976c0-.758.489-1.43 1.21-1.664L11.46.637a1.748 1.748 0 0 1 1.08 0Zm-.617 1.426-8.25 2.676a.249.249 0 0 0-.173.237V10c0 5.46 3.28 9.483 8.43 11.426a.199.199 0 0 0 .14 0C17.22 19.483 20.5 15.461 20.5 10V4.976a.25.25 0 0 0-.173-.237l-8.25-2.676a.253.253 0 0 0-.154 0Z"></path> </svg> <div> <div class="color-fg-default h4">Security</div> Find and fix vulnerabilities </div> </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary d-flex flex-items-center Link--has-description pb-lg-3" data-analytics-event="{"location":"navbar","action":"actions","context":"product","tag":"link","label":"actions_link_product_navbar"}" href="https://github.com/features/actions"> <svg aria-hidden="true" height="24" viewBox="0 0 24 24" version="1.1" width="24" data-view-component="true" class="octicon octicon-workflow color-fg-subtle mr-3"> <path d="M1 3a2 2 0 0 1 2-2h6.5a2 2 0 0 1 2 2v6.5a2 2 0 0 1-2 2H7v4.063C7 16.355 7.644 17 8.438 17H12.5v-2.5a2 2 0 0 1 2-2H21a2 2 0 0 1 2 2V21a2 2 0 0 1-2 2h-6.5a2 2 0 0 1-2-2v-2.5H8.437A2.939 2.939 0 0 1 5.5 15.562V11.5H3a2 2 0 0 1-2-2Zm2-.5a.5.5 0 0 0-.5.5v6.5a.5.5 0 0 0 .5.5h6.5a.5.5 0 0 0 .5-.5V3a.5.5 0 0 0-.5-.5ZM14.5 14a.5.5 0 0 0-.5.5V21a.5.5 0 0 0 .5.5H21a.5.5 0 0 0 .5-.5v-6.5a.5.5 0 0 0-.5-.5Z"></path> </svg> <div> <div class="color-fg-default h4">Actions</div> Automate any workflow </div> </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary d-flex flex-items-center Link--has-description pb-lg-3" data-analytics-event="{"location":"navbar","action":"codespaces","context":"product","tag":"link","label":"codespaces_link_product_navbar"}" href="https://github.com/features/codespaces"> <svg aria-hidden="true" height="24" viewBox="0 0 24 24" version="1.1" width="24" data-view-component="true" class="octicon octicon-codespaces color-fg-subtle mr-3"> <path d="M3.5 3.75C3.5 2.784 4.284 2 5.25 2h13.5c.966 0 1.75.784 1.75 1.75v7.5A1.75 1.75 0 0 1 18.75 13H5.25a1.75 1.75 0 0 1-1.75-1.75Zm-2 12c0-.966.784-1.75 1.75-1.75h17.5c.966 0 1.75.784 1.75 1.75v4a1.75 1.75 0 0 1-1.75 1.75H3.25a1.75 1.75 0 0 1-1.75-1.75ZM5.25 3.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h13.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Zm-2 12a.25.25 0 0 0-.25.25v4c0 .138.112.25.25.25h17.5a.25.25 0 0 0 .25-.25v-4a.25.25 0 0 0-.25-.25Z"></path><path d="M10 17.75a.75.75 0 0 1 .75-.75h6.5a.75.75 0 0 1 0 1.5h-6.5a.75.75 0 0 1-.75-.75Zm-4 0a.75.75 0 0 1 .75-.75h.5a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1-.75-.75Z"></path> </svg> <div> <div class="color-fg-default h4">Codespaces</div> Instant dev environments </div> </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary d-flex flex-items-center Link--has-description pb-lg-3" data-analytics-event="{"location":"navbar","action":"issues","context":"product","tag":"link","label":"issues_link_product_navbar"}" href="https://github.com/features/issues"> <svg aria-hidden="true" height="24" viewBox="0 0 24 24" version="1.1" width="24" data-view-component="true" class="octicon octicon-issue-opened color-fg-subtle mr-3"> <path d="M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Zm9.5 2a2 2 0 1 1-.001-3.999A2 2 0 0 1 12 14Z"></path> </svg> <div> <div class="color-fg-default h4">Issues</div> Plan and track work </div> </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary d-flex flex-items-center Link--has-description pb-lg-3" data-analytics-event="{"location":"navbar","action":"code_review","context":"product","tag":"link","label":"code_review_link_product_navbar"}" href="https://github.com/features/code-review"> <svg aria-hidden="true" height="24" viewBox="0 0 24 24" version="1.1" width="24" data-view-component="true" class="octicon octicon-code-review color-fg-subtle mr-3"> <path d="M10.3 6.74a.75.75 0 0 1-.04 1.06l-2.908 2.7 2.908 2.7a.75.75 0 1 1-1.02 1.1l-3.5-3.25a.75.75 0 0 1 0-1.1l3.5-3.25a.75.75 0 0 1 1.06.04Zm3.44 1.06a.75.75 0 1 1 1.02-1.1l3.5 3.25a.75.75 0 0 1 0 1.1l-3.5 3.25a.75.75 0 1 1-1.02-1.1l2.908-2.7-2.908-2.7Z"></path><path d="M1.5 4.25c0-.966.784-1.75 1.75-1.75h17.5c.966 0 1.75.784 1.75 1.75v12.5a1.75 1.75 0 0 1-1.75 1.75h-9.69l-3.573 3.573A1.458 1.458 0 0 1 5 21.043V18.5H3.25a1.75 1.75 0 0 1-1.75-1.75ZM3.25 4a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h2.5a.75.75 0 0 1 .75.75v3.19l3.72-3.72a.749.749 0 0 1 .53-.22h10a.25.25 0 0 0 .25-.25V4.25a.25.25 0 0 0-.25-.25Z"></path> </svg> <div> <div class="color-fg-default h4">Code Review</div> Manage code changes </div> </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary d-flex flex-items-center Link--has-description pb-lg-3" data-analytics-event="{"location":"navbar","action":"discussions","context":"product","tag":"link","label":"discussions_link_product_navbar"}" href="https://github.com/features/discussions"> <svg aria-hidden="true" height="24" viewBox="0 0 24 24" version="1.1" width="24" data-view-component="true" class="octicon octicon-comment-discussion color-fg-subtle mr-3"> <path d="M1.75 1h12.5c.966 0 1.75.784 1.75 1.75v9.5A1.75 1.75 0 0 1 14.25 14H8.061l-2.574 2.573A1.458 1.458 0 0 1 3 15.543V14H1.75A1.75 1.75 0 0 1 0 12.25v-9.5C0 1.784.784 1 1.75 1ZM1.5 2.75v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25H1.75a.25.25 0 0 0-.25.25Z"></path><path d="M22.5 8.75a.25.25 0 0 0-.25-.25h-3.5a.75.75 0 0 1 0-1.5h3.5c.966 0 1.75.784 1.75 1.75v9.5A1.75 1.75 0 0 1 22.25 20H21v1.543a1.457 1.457 0 0 1-2.487 1.03L15.939 20H10.75A1.75 1.75 0 0 1 9 18.25v-1.465a.75.75 0 0 1 1.5 0v1.465c0 .138.112.25.25.25h5.5a.75.75 0 0 1 .53.22l2.72 2.72v-2.19a.75.75 0 0 1 .75-.75h2a.25.25 0 0 0 .25-.25v-9.5Z"></path> </svg> <div> <div class="color-fg-default h4">Discussions</div> Collaborate outside of code </div> </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary d-flex flex-items-center Link--has-description" data-analytics-event="{"location":"navbar","action":"code_search","context":"product","tag":"link","label":"code_search_link_product_navbar"}" href="https://github.com/features/code-search"> <svg aria-hidden="true" height="24" viewBox="0 0 24 24" version="1.1" width="24" data-view-component="true" class="octicon octicon-code-square color-fg-subtle mr-3"> <path d="M10.3 8.24a.75.75 0 0 1-.04 1.06L7.352 12l2.908 2.7a.75.75 0 1 1-1.02 1.1l-3.5-3.25a.75.75 0 0 1 0-1.1l3.5-3.25a.75.75 0 0 1 1.06.04Zm3.44 1.06a.75.75 0 1 1 1.02-1.1l3.5 3.25a.75.75 0 0 1 0 1.1l-3.5 3.25a.75.75 0 1 1-1.02-1.1l2.908-2.7-2.908-2.7Z"></path><path d="M2 3.75C2 2.784 2.784 2 3.75 2h16.5c.966 0 1.75.784 1.75 1.75v16.5A1.75 1.75 0 0 1 20.25 22H3.75A1.75 1.75 0 0 1 2 20.25Zm1.75-.25a.25.25 0 0 0-.25.25v16.5c0 .138.112.25.25.25h16.5a.25.25 0 0 0 .25-.25V3.75a.25.25 0 0 0-.25-.25Z"></path> </svg> <div> <div class="color-fg-default h4">Code Search</div> Find more, search less </div> </a></li> </ul> </div> </div> <div class="HeaderMenu-column px-lg-4"> <div class="border-bottom pb-3 pb-lg-0 border-lg-bottom-0 border-bottom-0"> <span class="d-block h4 color-fg-default my-1" id="product-explore-heading">Explore</span> <ul class="list-style-none f5" aria-labelledby="product-explore-heading"> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary" data-analytics-event="{"location":"navbar","action":"all_features","context":"product","tag":"link","label":"all_features_link_product_navbar"}" href="https://github.com/features"> All features </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary Link--external" target="_blank" data-analytics-event="{"location":"navbar","action":"documentation","context":"product","tag":"link","label":"documentation_link_product_navbar"}" href="https://docs.github.com"> Documentation <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-link-external HeaderMenu-external-icon color-fg-subtle"> <path d="M3.75 2h3.5a.75.75 0 0 1 0 1.5h-3.5a.25.25 0 0 0-.25.25v8.5c0 .138.112.25.25.25h8.5a.25.25 0 0 0 .25-.25v-3.5a.75.75 0 0 1 1.5 0v3.5A1.75 1.75 0 0 1 12.25 14h-8.5A1.75 1.75 0 0 1 2 12.25v-8.5C2 2.784 2.784 2 3.75 2Zm6.854-1h4.146a.25.25 0 0 1 .25.25v4.146a.25.25 0 0 1-.427.177L13.03 4.03 9.28 7.78a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042l3.75-3.75-1.543-1.543A.25.25 0 0 1 10.604 1Z"></path> </svg> </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary Link--external" target="_blank" data-analytics-event="{"location":"navbar","action":"github_skills","context":"product","tag":"link","label":"github_skills_link_product_navbar"}" href="https://skills.github.com"> GitHub Skills <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-link-external HeaderMenu-external-icon color-fg-subtle"> <path d="M3.75 2h3.5a.75.75 0 0 1 0 1.5h-3.5a.25.25 0 0 0-.25.25v8.5c0 .138.112.25.25.25h8.5a.25.25 0 0 0 .25-.25v-3.5a.75.75 0 0 1 1.5 0v3.5A1.75 1.75 0 0 1 12.25 14h-8.5A1.75 1.75 0 0 1 2 12.25v-8.5C2 2.784 2.784 2 3.75 2Zm6.854-1h4.146a.25.25 0 0 1 .25.25v4.146a.25.25 0 0 1-.427.177L13.03 4.03 9.28 7.78a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042l3.75-3.75-1.543-1.543A.25.25 0 0 1 10.604 1Z"></path> </svg> </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary Link--external" target="_blank" data-analytics-event="{"location":"navbar","action":"blog","context":"product","tag":"link","label":"blog_link_product_navbar"}" href="https://github.blog"> Blog <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-link-external HeaderMenu-external-icon color-fg-subtle"> <path d="M3.75 2h3.5a.75.75 0 0 1 0 1.5h-3.5a.25.25 0 0 0-.25.25v8.5c0 .138.112.25.25.25h8.5a.25.25 0 0 0 .25-.25v-3.5a.75.75 0 0 1 1.5 0v3.5A1.75 1.75 0 0 1 12.25 14h-8.5A1.75 1.75 0 0 1 2 12.25v-8.5C2 2.784 2.784 2 3.75 2Zm6.854-1h4.146a.25.25 0 0 1 .25.25v4.146a.25.25 0 0 1-.427.177L13.03 4.03 9.28 7.78a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042l3.75-3.75-1.543-1.543A.25.25 0 0 1 10.604 1Z"></path> </svg> </a></li> </ul> </div> </div> </div> </li> <li class="HeaderMenu-item position-relative flex-wrap flex-justify-between flex-items-center d-block d-lg-flex flex-lg-nowrap flex-lg-items-center js-details-container js-header-menu-item"> <button type="button" class="HeaderMenu-link border-0 width-full width-lg-auto px-0 px-lg-2 py-lg-2 no-wrap d-flex flex-items-center flex-justify-between js-details-target" aria-expanded="false"> Solutions <svg opacity="0.5" aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-chevron-down HeaderMenu-icon ml-1"> <path d="M12.78 5.22a.749.749 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.06 0L3.22 6.28a.749.749 0 1 1 1.06-1.06L8 8.939l3.72-3.719a.749.749 0 0 1 1.06 0Z"></path> </svg> </button> <div class="HeaderMenu-dropdown dropdown-menu rounded m-0 p-0 pt-2 pt-lg-4 position-relative position-lg-absolute left-0 left-lg-n3 d-lg-flex flex-wrap dropdown-menu-wide"> <div class="HeaderMenu-column px-lg-4 border-lg-right mb-4 mb-lg-0 pr-lg-7"> <div class="border-bottom pb-3 pb-lg-0 border-lg-bottom-0 pb-lg-3 mb-3 mb-lg-0"> <span class="d-block h4 color-fg-default my-1" id="solutions-by-company-size-heading">By company size</span> <ul class="list-style-none f5" aria-labelledby="solutions-by-company-size-heading"> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary" data-analytics-event="{"location":"navbar","action":"enterprises","context":"solutions","tag":"link","label":"enterprises_link_solutions_navbar"}" href="https://github.com/enterprise"> Enterprises </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary" data-analytics-event="{"location":"navbar","action":"small_and_medium_teams","context":"solutions","tag":"link","label":"small_and_medium_teams_link_solutions_navbar"}" href="https://github.com/team"> Small and medium teams </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary" data-analytics-event="{"location":"navbar","action":"startups","context":"solutions","tag":"link","label":"startups_link_solutions_navbar"}" href="https://github.com/enterprise/startups"> Startups </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary" data-analytics-event="{"location":"navbar","action":"nonprofits","context":"solutions","tag":"link","label":"nonprofits_link_solutions_navbar"}" href="/solutions/industry/nonprofits"> Nonprofits </a></li> </ul> </div> <div class="border-bottom pb-3 pb-lg-0 border-lg-bottom-0"> <span class="d-block h4 color-fg-default my-1" id="solutions-by-use-case-heading">By use case</span> <ul class="list-style-none f5" aria-labelledby="solutions-by-use-case-heading"> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary" data-analytics-event="{"location":"navbar","action":"devsecops","context":"solutions","tag":"link","label":"devsecops_link_solutions_navbar"}" href="/solutions/use-case/devsecops"> DevSecOps </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary" data-analytics-event="{"location":"navbar","action":"devops","context":"solutions","tag":"link","label":"devops_link_solutions_navbar"}" href="/solutions/use-case/devops"> DevOps </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary" data-analytics-event="{"location":"navbar","action":"ci_cd","context":"solutions","tag":"link","label":"ci_cd_link_solutions_navbar"}" href="/solutions/use-case/ci-cd"> CI/CD </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary" data-analytics-event="{"location":"navbar","action":"view_all_use_cases","context":"solutions","tag":"link","label":"view_all_use_cases_link_solutions_navbar"}" href="/solutions/use-case"> View all use cases </a></li> </ul> </div> </div> <div class="HeaderMenu-column px-lg-4"> <div class="border-bottom pb-3 pb-lg-0 border-lg-bottom-0"> <span class="d-block h4 color-fg-default my-1" id="solutions-by-industry-heading">By industry</span> <ul class="list-style-none f5" aria-labelledby="solutions-by-industry-heading"> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary" data-analytics-event="{"location":"navbar","action":"healthcare","context":"solutions","tag":"link","label":"healthcare_link_solutions_navbar"}" href="/solutions/industry/healthcare"> Healthcare </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary" data-analytics-event="{"location":"navbar","action":"financial_services","context":"solutions","tag":"link","label":"financial_services_link_solutions_navbar"}" href="/solutions/industry/financial-services"> Financial services </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary" data-analytics-event="{"location":"navbar","action":"manufacturing","context":"solutions","tag":"link","label":"manufacturing_link_solutions_navbar"}" href="/solutions/industry/manufacturing"> Manufacturing </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary" data-analytics-event="{"location":"navbar","action":"government","context":"solutions","tag":"link","label":"government_link_solutions_navbar"}" href="/solutions/industry/government"> Government </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary" data-analytics-event="{"location":"navbar","action":"view_all_industries","context":"solutions","tag":"link","label":"view_all_industries_link_solutions_navbar"}" href="/solutions/industry"> View all industries </a></li> </ul> </div> </div> <div class="HeaderMenu-trailing-link rounded-bottom-2 flex-shrink-0 mt-lg-4 px-lg-4 py-4 py-lg-3 f5 text-semibold"> <a href="/solutions"> View all solutions <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-chevron-right HeaderMenu-trailing-link-icon"> <path d="M6.22 3.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L9.94 8 6.22 4.28a.75.75 0 0 1 0-1.06Z"></path> </svg> </a> </div> </div> </li> <li class="HeaderMenu-item position-relative flex-wrap flex-justify-between flex-items-center d-block d-lg-flex flex-lg-nowrap flex-lg-items-center js-details-container js-header-menu-item"> <button type="button" class="HeaderMenu-link border-0 width-full width-lg-auto px-0 px-lg-2 py-lg-2 no-wrap d-flex flex-items-center flex-justify-between js-details-target" aria-expanded="false"> Resources <svg opacity="0.5" aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-chevron-down HeaderMenu-icon ml-1"> <path d="M12.78 5.22a.749.749 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.06 0L3.22 6.28a.749.749 0 1 1 1.06-1.06L8 8.939l3.72-3.719a.749.749 0 0 1 1.06 0Z"></path> </svg> </button> <div class="HeaderMenu-dropdown dropdown-menu rounded m-0 p-0 pt-2 pt-lg-4 position-relative position-lg-absolute left-0 left-lg-n3 pb-2 pb-lg-4 d-lg-flex flex-wrap dropdown-menu-wide"> <div class="HeaderMenu-column px-lg-4 border-lg-right mb-4 mb-lg-0 pr-lg-7"> <div class="border-bottom pb-3 pb-lg-0 border-lg-bottom-0"> <span class="d-block h4 color-fg-default my-1" id="resources-topics-heading">Topics</span> <ul class="list-style-none f5" aria-labelledby="resources-topics-heading"> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary" data-analytics-event="{"location":"navbar","action":"ai","context":"resources","tag":"link","label":"ai_link_resources_navbar"}" href="/resources/articles/ai"> AI </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary" data-analytics-event="{"location":"navbar","action":"devops","context":"resources","tag":"link","label":"devops_link_resources_navbar"}" href="/resources/articles/devops"> DevOps </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary" data-analytics-event="{"location":"navbar","action":"security","context":"resources","tag":"link","label":"security_link_resources_navbar"}" href="/resources/articles/security"> Security </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary" data-analytics-event="{"location":"navbar","action":"software_development","context":"resources","tag":"link","label":"software_development_link_resources_navbar"}" href="/resources/articles/software-development"> Software Development </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary" data-analytics-event="{"location":"navbar","action":"view_all","context":"resources","tag":"link","label":"view_all_link_resources_navbar"}" href="/resources/articles"> View all </a></li> </ul> </div> </div> <div class="HeaderMenu-column px-lg-4"> <div class="border-bottom pb-3 pb-lg-0 border-lg-bottom-0 border-bottom-0"> <span class="d-block h4 color-fg-default my-1" id="resources-explore-heading">Explore</span> <ul class="list-style-none f5" aria-labelledby="resources-explore-heading"> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary Link--external" target="_blank" data-analytics-event="{"location":"navbar","action":"learning_pathways","context":"resources","tag":"link","label":"learning_pathways_link_resources_navbar"}" href="https://resources.github.com/learn/pathways"> Learning Pathways <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-link-external HeaderMenu-external-icon color-fg-subtle"> <path d="M3.75 2h3.5a.75.75 0 0 1 0 1.5h-3.5a.25.25 0 0 0-.25.25v8.5c0 .138.112.25.25.25h8.5a.25.25 0 0 0 .25-.25v-3.5a.75.75 0 0 1 1.5 0v3.5A1.75 1.75 0 0 1 12.25 14h-8.5A1.75 1.75 0 0 1 2 12.25v-8.5C2 2.784 2.784 2 3.75 2Zm6.854-1h4.146a.25.25 0 0 1 .25.25v4.146a.25.25 0 0 1-.427.177L13.03 4.03 9.28 7.78a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042l3.75-3.75-1.543-1.543A.25.25 0 0 1 10.604 1Z"></path> </svg> </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary Link--external" target="_blank" data-analytics-event="{"location":"navbar","action":"events_amp_webinars","context":"resources","tag":"link","label":"events_amp_webinars_link_resources_navbar"}" href="https://resources.github.com"> Events & Webinars <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-link-external HeaderMenu-external-icon color-fg-subtle"> <path d="M3.75 2h3.5a.75.75 0 0 1 0 1.5h-3.5a.25.25 0 0 0-.25.25v8.5c0 .138.112.25.25.25h8.5a.25.25 0 0 0 .25-.25v-3.5a.75.75 0 0 1 1.5 0v3.5A1.75 1.75 0 0 1 12.25 14h-8.5A1.75 1.75 0 0 1 2 12.25v-8.5C2 2.784 2.784 2 3.75 2Zm6.854-1h4.146a.25.25 0 0 1 .25.25v4.146a.25.25 0 0 1-.427.177L13.03 4.03 9.28 7.78a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042l3.75-3.75-1.543-1.543A.25.25 0 0 1 10.604 1Z"></path> </svg> </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary" data-analytics-event="{"location":"navbar","action":"ebooks_amp_whitepapers","context":"resources","tag":"link","label":"ebooks_amp_whitepapers_link_resources_navbar"}" href="https://github.com/resources/whitepapers"> Ebooks & Whitepapers </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary" data-analytics-event="{"location":"navbar","action":"customer_stories","context":"resources","tag":"link","label":"customer_stories_link_resources_navbar"}" href="https://github.com/customer-stories"> Customer Stories </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary Link--external" target="_blank" data-analytics-event="{"location":"navbar","action":"partners","context":"resources","tag":"link","label":"partners_link_resources_navbar"}" href="https://partner.github.com"> Partners <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-link-external HeaderMenu-external-icon color-fg-subtle"> <path d="M3.75 2h3.5a.75.75 0 0 1 0 1.5h-3.5a.25.25 0 0 0-.25.25v8.5c0 .138.112.25.25.25h8.5a.25.25 0 0 0 .25-.25v-3.5a.75.75 0 0 1 1.5 0v3.5A1.75 1.75 0 0 1 12.25 14h-8.5A1.75 1.75 0 0 1 2 12.25v-8.5C2 2.784 2.784 2 3.75 2Zm6.854-1h4.146a.25.25 0 0 1 .25.25v4.146a.25.25 0 0 1-.427.177L13.03 4.03 9.28 7.78a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042l3.75-3.75-1.543-1.543A.25.25 0 0 1 10.604 1Z"></path> </svg> </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary" data-analytics-event="{"location":"navbar","action":"executive_insights","context":"resources","tag":"link","label":"executive_insights_link_resources_navbar"}" href="https://github.com/solutions/executive-insights"> Executive Insights </a></li> </ul> </div> </div> </div> </li> <li class="HeaderMenu-item position-relative flex-wrap flex-justify-between flex-items-center d-block d-lg-flex flex-lg-nowrap flex-lg-items-center js-details-container js-header-menu-item"> <button type="button" class="HeaderMenu-link border-0 width-full width-lg-auto px-0 px-lg-2 py-lg-2 no-wrap d-flex flex-items-center flex-justify-between js-details-target" aria-expanded="false"> Open Source <svg opacity="0.5" aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-chevron-down HeaderMenu-icon ml-1"> <path d="M12.78 5.22a.749.749 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.06 0L3.22 6.28a.749.749 0 1 1 1.06-1.06L8 8.939l3.72-3.719a.749.749 0 0 1 1.06 0Z"></path> </svg> </button> <div class="HeaderMenu-dropdown dropdown-menu rounded m-0 p-0 pt-2 pt-lg-4 position-relative position-lg-absolute left-0 left-lg-n3 pb-2 pb-lg-4 px-lg-4"> <div class="HeaderMenu-column"> <div class="border-bottom pb-3 pb-lg-0 pb-lg-3 mb-3 mb-lg-0 mb-lg-3"> <ul class="list-style-none f5" > <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary d-flex flex-items-center Link--has-description" data-analytics-event="{"location":"navbar","action":"github_sponsors","context":"open_source","tag":"link","label":"github_sponsors_link_open_source_navbar"}" href="/sponsors"> <div> <div class="color-fg-default h4">GitHub Sponsors</div> Fund open source developers </div> </a></li> </ul> </div> <div class="border-bottom pb-3 pb-lg-0 pb-lg-3 mb-3 mb-lg-0 mb-lg-3"> <ul class="list-style-none f5" > <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary d-flex flex-items-center Link--has-description" data-analytics-event="{"location":"navbar","action":"the_readme_project","context":"open_source","tag":"link","label":"the_readme_project_link_open_source_navbar"}" href="https://github.com/readme"> <div> <div class="color-fg-default h4">The ReadME Project</div> GitHub community articles </div> </a></li> </ul> </div> <div class="border-bottom pb-3 pb-lg-0 border-bottom-0"> <span class="d-block h4 color-fg-default my-1" id="open-source-repositories-heading">Repositories</span> <ul class="list-style-none f5" aria-labelledby="open-source-repositories-heading"> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary" data-analytics-event="{"location":"navbar","action":"topics","context":"open_source","tag":"link","label":"topics_link_open_source_navbar"}" href="https://github.com/topics"> Topics </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary" data-analytics-event="{"location":"navbar","action":"trending","context":"open_source","tag":"link","label":"trending_link_open_source_navbar"}" href="https://github.com/trending"> Trending </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary" data-analytics-event="{"location":"navbar","action":"collections","context":"open_source","tag":"link","label":"collections_link_open_source_navbar"}" href="https://github.com/collections"> Collections </a></li> </ul> </div> </div> </div> </li> <li class="HeaderMenu-item position-relative flex-wrap flex-justify-between flex-items-center d-block d-lg-flex flex-lg-nowrap flex-lg-items-center js-details-container js-header-menu-item"> <button type="button" class="HeaderMenu-link border-0 width-full width-lg-auto px-0 px-lg-2 py-lg-2 no-wrap d-flex flex-items-center flex-justify-between js-details-target" aria-expanded="false"> Enterprise <svg opacity="0.5" aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-chevron-down HeaderMenu-icon ml-1"> <path d="M12.78 5.22a.749.749 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.06 0L3.22 6.28a.749.749 0 1 1 1.06-1.06L8 8.939l3.72-3.719a.749.749 0 0 1 1.06 0Z"></path> </svg> </button> <div class="HeaderMenu-dropdown dropdown-menu rounded m-0 p-0 pt-2 pt-lg-4 position-relative position-lg-absolute left-0 left-lg-n3 pb-2 pb-lg-4 px-lg-4"> <div class="HeaderMenu-column"> <div class="border-bottom pb-3 pb-lg-0 pb-lg-3 mb-3 mb-lg-0 mb-lg-3"> <ul class="list-style-none f5" > <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary d-flex flex-items-center Link--has-description" data-analytics-event="{"location":"navbar","action":"enterprise_platform","context":"enterprise","tag":"link","label":"enterprise_platform_link_enterprise_navbar"}" href="/enterprise"> <svg aria-hidden="true" height="24" viewBox="0 0 24 24" version="1.1" width="24" data-view-component="true" class="octicon octicon-stack color-fg-subtle mr-3"> <path d="M11.063 1.456a1.749 1.749 0 0 1 1.874 0l8.383 5.316a1.751 1.751 0 0 1 0 2.956l-8.383 5.316a1.749 1.749 0 0 1-1.874 0L2.68 9.728a1.751 1.751 0 0 1 0-2.956Zm1.071 1.267a.25.25 0 0 0-.268 0L3.483 8.039a.25.25 0 0 0 0 .422l8.383 5.316a.25.25 0 0 0 .268 0l8.383-5.316a.25.25 0 0 0 0-.422Z"></path><path d="M1.867 12.324a.75.75 0 0 1 1.035-.232l8.964 5.685a.25.25 0 0 0 .268 0l8.964-5.685a.75.75 0 0 1 .804 1.267l-8.965 5.685a1.749 1.749 0 0 1-1.874 0l-8.965-5.685a.75.75 0 0 1-.231-1.035Z"></path><path d="M1.867 16.324a.75.75 0 0 1 1.035-.232l8.964 5.685a.25.25 0 0 0 .268 0l8.964-5.685a.75.75 0 0 1 .804 1.267l-8.965 5.685a1.749 1.749 0 0 1-1.874 0l-8.965-5.685a.75.75 0 0 1-.231-1.035Z"></path> </svg> <div> <div class="color-fg-default h4">Enterprise platform</div> AI-powered developer platform </div> </a></li> </ul> </div> <div class="border-bottom pb-3 pb-lg-0 border-bottom-0"> <span class="d-block h4 color-fg-default my-1" id="enterprise-available-add-ons-heading">Available add-ons</span> <ul class="list-style-none f5" aria-labelledby="enterprise-available-add-ons-heading"> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary d-flex flex-items-center Link--has-description pb-lg-3" data-analytics-event="{"location":"navbar","action":"advanced_security","context":"enterprise","tag":"link","label":"advanced_security_link_enterprise_navbar"}" href="https://github.com/enterprise/advanced-security"> <svg aria-hidden="true" height="24" viewBox="0 0 24 24" version="1.1" width="24" data-view-component="true" class="octicon octicon-shield-check color-fg-subtle mr-3"> <path d="M16.53 9.78a.75.75 0 0 0-1.06-1.06L11 13.19l-1.97-1.97a.75.75 0 0 0-1.06 1.06l2.5 2.5a.75.75 0 0 0 1.06 0l5-5Z"></path><path d="m12.54.637 8.25 2.675A1.75 1.75 0 0 1 22 4.976V10c0 6.19-3.771 10.704-9.401 12.83a1.704 1.704 0 0 1-1.198 0C5.77 20.705 2 16.19 2 10V4.976c0-.758.489-1.43 1.21-1.664L11.46.637a1.748 1.748 0 0 1 1.08 0Zm-.617 1.426-8.25 2.676a.249.249 0 0 0-.173.237V10c0 5.46 3.28 9.483 8.43 11.426a.199.199 0 0 0 .14 0C17.22 19.483 20.5 15.461 20.5 10V4.976a.25.25 0 0 0-.173-.237l-8.25-2.676a.253.253 0 0 0-.154 0Z"></path> </svg> <div> <div class="color-fg-default h4">Advanced Security</div> Enterprise-grade security features </div> </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary d-flex flex-items-center Link--has-description pb-lg-3" data-analytics-event="{"location":"navbar","action":"copilot_for_business","context":"enterprise","tag":"link","label":"copilot_for_business_link_enterprise_navbar"}" href="/features/copilot/copilot-business"> <svg aria-hidden="true" height="24" viewBox="0 0 24 24" version="1.1" width="24" data-view-component="true" class="octicon octicon-copilot color-fg-subtle mr-3"> <path d="M23.922 16.992c-.861 1.495-5.859 5.023-11.922 5.023-6.063 0-11.061-3.528-11.922-5.023A.641.641 0 0 1 0 16.736v-2.869a.841.841 0 0 1 .053-.22c.372-.935 1.347-2.292 2.605-2.656.167-.429.414-1.055.644-1.517a10.195 10.195 0 0 1-.052-1.086c0-1.331.282-2.499 1.132-3.368.397-.406.89-.717 1.474-.952 1.399-1.136 3.392-2.093 6.122-2.093 2.731 0 4.767.957 6.166 2.093.584.235 1.077.546 1.474.952.85.869 1.132 2.037 1.132 3.368 0 .368-.014.733-.052 1.086.23.462.477 1.088.644 1.517 1.258.364 2.233 1.721 2.605 2.656a.832.832 0 0 1 .053.22v2.869a.641.641 0 0 1-.078.256ZM12.172 11h-.344a4.323 4.323 0 0 1-.355.508C10.703 12.455 9.555 13 7.965 13c-1.725 0-2.989-.359-3.782-1.259a2.005 2.005 0 0 1-.085-.104L4 11.741v6.585c1.435.779 4.514 2.179 8 2.179 3.486 0 6.565-1.4 8-2.179v-6.585l-.098-.104s-.033.045-.085.104c-.793.9-2.057 1.259-3.782 1.259-1.59 0-2.738-.545-3.508-1.492a4.323 4.323 0 0 1-.355-.508h-.016.016Zm.641-2.935c.136 1.057.403 1.913.878 2.497.442.544 1.134.938 2.344.938 1.573 0 2.292-.337 2.657-.751.384-.435.558-1.15.558-2.361 0-1.14-.243-1.847-.705-2.319-.477-.488-1.319-.862-2.824-1.025-1.487-.161-2.192.138-2.533.529-.269.307-.437.808-.438 1.578v.021c0 .265.021.562.063.893Zm-1.626 0c.042-.331.063-.628.063-.894v-.02c-.001-.77-.169-1.271-.438-1.578-.341-.391-1.046-.69-2.533-.529-1.505.163-2.347.537-2.824 1.025-.462.472-.705 1.179-.705 2.319 0 1.211.175 1.926.558 2.361.365.414 1.084.751 2.657.751 1.21 0 1.902-.394 2.344-.938.475-.584.742-1.44.878-2.497Z"></path><path d="M14.5 14.25a1 1 0 0 1 1 1v2a1 1 0 0 1-2 0v-2a1 1 0 0 1 1-1Zm-5 0a1 1 0 0 1 1 1v2a1 1 0 0 1-2 0v-2a1 1 0 0 1 1-1Z"></path> </svg> <div> <div class="color-fg-default h4">Copilot for business</div> Enterprise-grade AI features </div> </a></li> <li> <a class="HeaderMenu-dropdown-link d-block no-underline position-relative py-2 Link--secondary d-flex flex-items-center Link--has-description" data-analytics-event="{"location":"navbar","action":"premium_support","context":"enterprise","tag":"link","label":"premium_support_link_enterprise_navbar"}" href="/premium-support"> <svg aria-hidden="true" height="24" viewBox="0 0 24 24" version="1.1" width="24" data-view-component="true" class="octicon octicon-comment-discussion color-fg-subtle mr-3"> <path d="M1.75 1h12.5c.966 0 1.75.784 1.75 1.75v9.5A1.75 1.75 0 0 1 14.25 14H8.061l-2.574 2.573A1.458 1.458 0 0 1 3 15.543V14H1.75A1.75 1.75 0 0 1 0 12.25v-9.5C0 1.784.784 1 1.75 1ZM1.5 2.75v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25H1.75a.25.25 0 0 0-.25.25Z"></path><path d="M22.5 8.75a.25.25 0 0 0-.25-.25h-3.5a.75.75 0 0 1 0-1.5h3.5c.966 0 1.75.784 1.75 1.75v9.5A1.75 1.75 0 0 1 22.25 20H21v1.543a1.457 1.457 0 0 1-2.487 1.03L15.939 20H10.75A1.75 1.75 0 0 1 9 18.25v-1.465a.75.75 0 0 1 1.5 0v1.465c0 .138.112.25.25.25h5.5a.75.75 0 0 1 .53.22l2.72 2.72v-2.19a.75.75 0 0 1 .75-.75h2a.25.25 0 0 0 .25-.25v-9.5Z"></path> </svg> <div> <div class="color-fg-default h4">Premium Support</div> Enterprise-grade 24/7 support </div> </a></li> </ul> </div> </div> </div> </li> <li class="HeaderMenu-item position-relative flex-wrap flex-justify-between flex-items-center d-block d-lg-flex flex-lg-nowrap flex-lg-items-center js-details-container js-header-menu-item"> <a class="HeaderMenu-link no-underline px-0 px-lg-2 py-3 py-lg-2 d-block d-lg-inline-block" data-analytics-event="{"location":"navbar","action":"pricing","context":"global","tag":"link","label":"pricing_link_global_navbar"}" href="https://github.com/pricing">Pricing</a> </li> </ul> </nav> <div class="d-flex flex-column flex-lg-row width-full flex-justify-end flex-lg-items-center text-center mt-3 mt-lg-0 text-lg-left ml-lg-3"> <qbsearch-input class="search-input" data-scope="repo:keras-team/tf-keras" data-custom-scopes-path="/search/custom_scopes" data-delete-custom-scopes-csrf="UwEsdamIBtlTCz9NDmeHi_uVjmJ7RvAtNxZy7rZ1Rc83pQTEjwZ89dHLbE1SzuR5CBC4FJ36sul2_izEUjeafw" data-max-custom-scopes="10" data-header-redesign-enabled="false" data-initial-value="" data-blackbird-suggestions-path="/search/suggestions" data-jump-to-suggestions-path="/_graphql/GetSuggestedNavigationDestinations" data-current-repository="keras-team/tf-keras" data-current-org="keras-team" data-current-owner="" data-logged-in="false" data-copilot-chat-enabled="false" data-nl-search-enabled="false" data-retain-scroll-position="true"> <div class="search-input-container search-with-dialog position-relative d-flex flex-row flex-items-center mr-4 rounded" data-action="click:qbsearch-input#searchInputContainerClicked" > <button type="button" class="header-search-button placeholder input-button form-control d-flex flex-1 flex-self-stretch flex-items-center no-wrap width-full py-0 pl-2 pr-0 text-left border-0 box-shadow-none" data-target="qbsearch-input.inputButton" aria-label="Search or jump to…" aria-haspopup="dialog" placeholder="Search or jump to..." data-hotkey=s,/ autocapitalize="off" data-analytics-event="{"location":"navbar","action":"searchbar","context":"global","tag":"input","label":"searchbar_input_global_navbar"}" data-action="click:qbsearch-input#handleExpand" > <div class="mr-2 color-fg-muted"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-search"> <path d="M10.68 11.74a6 6 0 0 1-7.922-8.982 6 6 0 0 1 8.982 7.922l3.04 3.04a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215ZM11.5 7a4.499 4.499 0 1 0-8.997 0A4.499 4.499 0 0 0 11.5 7Z"></path> </svg> </div> <span class="flex-1" data-target="qbsearch-input.inputButtonText">Search or jump to...</span> <div class="d-flex" data-target="qbsearch-input.hotkeyIndicator"> <svg xmlns="http://www.w3.org/2000/svg" width="22" height="20" aria-hidden="true" class="mr-1"><path fill="none" stroke="#979A9C" opacity=".4" d="M3.5.5h12c1.7 0 3 1.3 3 3v13c0 1.7-1.3 3-3 3h-12c-1.7 0-3-1.3-3-3v-13c0-1.7 1.3-3 3-3z"></path><path fill="#979A9C" d="M11.8 6L8 15.1h-.9L10.8 6h1z"></path></svg> </div> </button> <input type="hidden" name="type" class="js-site-search-type-field"> <div class="Overlay--hidden " data-modal-dialog-overlay> <modal-dialog data-action="close:qbsearch-input#handleClose cancel:qbsearch-input#handleClose" data-target="qbsearch-input.searchSuggestionsDialog" role="dialog" id="search-suggestions-dialog" aria-modal="true" aria-labelledby="search-suggestions-dialog-header" data-view-component="true" class="Overlay Overlay--width-large Overlay--height-auto"> <h1 id="search-suggestions-dialog-header" class="sr-only">Search code, repositories, users, issues, pull requests...</h1> <div class="Overlay-body Overlay-body--paddingNone"> <div data-view-component="true"> <div class="search-suggestions position-fixed width-full color-shadow-large border color-fg-default color-bg-default overflow-hidden d-flex flex-column query-builder-container" style="border-radius: 12px;" data-target="qbsearch-input.queryBuilderContainer" hidden > <!-- '"` --><!-- </textarea></xmp> --></option></form><form id="query-builder-test-form" action="" accept-charset="UTF-8" method="get"> <query-builder data-target="qbsearch-input.queryBuilder" id="query-builder-query-builder-test" data-filter-key=":" data-view-component="true" class="QueryBuilder search-query-builder"> <div class="FormControl FormControl--fullWidth"> <label id="query-builder-test-label" for="query-builder-test" class="FormControl-label sr-only"> Search </label> <div class="QueryBuilder-StyledInput width-fit " data-target="query-builder.styledInput" > <span id="query-builder-test-leadingvisual-wrap" class="FormControl-input-leadingVisualWrap QueryBuilder-leadingVisualWrap"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-search FormControl-input-leadingVisual"> <path d="M10.68 11.74a6 6 0 0 1-7.922-8.982 6 6 0 0 1 8.982 7.922l3.04 3.04a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215ZM11.5 7a4.499 4.499 0 1 0-8.997 0A4.499 4.499 0 0 0 11.5 7Z"></path> </svg> </span> <div data-target="query-builder.styledInputContainer" class="QueryBuilder-StyledInputContainer"> <div aria-hidden="true" class="QueryBuilder-StyledInputContent" data-target="query-builder.styledInputContent" ></div> <div class="QueryBuilder-InputWrapper"> <div aria-hidden="true" class="QueryBuilder-Sizer" data-target="query-builder.sizer"></div> <input id="query-builder-test" name="query-builder-test" value="" autocomplete="off" type="text" role="combobox" spellcheck="false" aria-expanded="false" aria-describedby="validation-342da5fb-0018-430b-8ddd-30240198c749" data-target="query-builder.input" data-action=" input:query-builder#inputChange blur:query-builder#inputBlur keydown:query-builder#inputKeydown focus:query-builder#inputFocus " data-view-component="true" class="FormControl-input QueryBuilder-Input FormControl-medium" /> </div> </div> <span class="sr-only" id="query-builder-test-clear">Clear</span> <button role="button" id="query-builder-test-clear-button" aria-labelledby="query-builder-test-clear query-builder-test-label" data-target="query-builder.clearButton" data-action=" click:query-builder#clear focus:query-builder#clearButtonFocus blur:query-builder#clearButtonBlur " variant="small" hidden="hidden" type="button" data-view-component="true" class="Button Button--iconOnly Button--invisible Button--medium mr-1 px-2 py-0 d-flex flex-items-center rounded-1 color-fg-muted"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-x-circle-fill Button-visual"> <path d="M2.343 13.657A8 8 0 1 1 13.658 2.343 8 8 0 0 1 2.343 13.657ZM6.03 4.97a.751.751 0 0 0-1.042.018.751.751 0 0 0-.018 1.042L6.94 8 4.97 9.97a.749.749 0 0 0 .326 1.275.749.749 0 0 0 .734-.215L8 9.06l1.97 1.97a.749.749 0 0 0 1.275-.326.749.749 0 0 0-.215-.734L9.06 8l1.97-1.97a.749.749 0 0 0-.326-1.275.749.749 0 0 0-.734.215L8 6.94Z"></path> </svg> </button> </div> <template id="search-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-search"> <path d="M10.68 11.74a6 6 0 0 1-7.922-8.982 6 6 0 0 1 8.982 7.922l3.04 3.04a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215ZM11.5 7a4.499 4.499 0 1 0-8.997 0A4.499 4.499 0 0 0 11.5 7Z"></path> </svg> </template> <template id="code-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-code"> <path d="m11.28 3.22 4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L13.94 8l-3.72-3.72a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215Zm-6.56 0a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042L2.06 8l3.72 3.72a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L.47 8.53a.75.75 0 0 1 0-1.06Z"></path> </svg> </template> <template id="file-code-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-file-code"> <path d="M4 1.75C4 .784 4.784 0 5.75 0h5.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v8.586A1.75 1.75 0 0 1 14.25 15h-9a.75.75 0 0 1 0-1.5h9a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 10 4.25V1.5H5.75a.25.25 0 0 0-.25.25v2.5a.75.75 0 0 1-1.5 0Zm1.72 4.97a.75.75 0 0 1 1.06 0l2 2a.75.75 0 0 1 0 1.06l-2 2a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734l1.47-1.47-1.47-1.47a.75.75 0 0 1 0-1.06ZM3.28 7.78 1.81 9.25l1.47 1.47a.751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018l-2-2a.75.75 0 0 1 0-1.06l2-2a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Zm8.22-6.218V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z"></path> </svg> </template> <template id="history-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-history"> <path d="m.427 1.927 1.215 1.215a8.002 8.002 0 1 1-1.6 5.685.75.75 0 1 1 1.493-.154 6.5 6.5 0 1 0 1.18-4.458l1.358 1.358A.25.25 0 0 1 3.896 6H.25A.25.25 0 0 1 0 5.75V2.104a.25.25 0 0 1 .427-.177ZM7.75 4a.75.75 0 0 1 .75.75v2.992l2.028.812a.75.75 0 0 1-.557 1.392l-2.5-1A.751.751 0 0 1 7 8.25v-3.5A.75.75 0 0 1 7.75 4Z"></path> </svg> </template> <template id="repo-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-repo"> <path d="M2 2.5A2.5 2.5 0 0 1 4.5 0h8.75a.75.75 0 0 1 .75.75v12.5a.75.75 0 0 1-.75.75h-2.5a.75.75 0 0 1 0-1.5h1.75v-2h-8a1 1 0 0 0-.714 1.7.75.75 0 1 1-1.072 1.05A2.495 2.495 0 0 1 2 11.5Zm10.5-1h-8a1 1 0 0 0-1 1v6.708A2.486 2.486 0 0 1 4.5 9h8ZM5 12.25a.25.25 0 0 1 .25-.25h3.5a.25.25 0 0 1 .25.25v3.25a.25.25 0 0 1-.4.2l-1.45-1.087a.249.249 0 0 0-.3 0L5.4 15.7a.25.25 0 0 1-.4-.2Z"></path> </svg> </template> <template id="bookmark-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-bookmark"> <path d="M3 2.75C3 1.784 3.784 1 4.75 1h6.5c.966 0 1.75.784 1.75 1.75v11.5a.75.75 0 0 1-1.227.579L8 11.722l-3.773 3.107A.751.751 0 0 1 3 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.91l3.023-2.489a.75.75 0 0 1 .954 0l3.023 2.49V2.75a.25.25 0 0 0-.25-.25Z"></path> </svg> </template> <template id="plus-circle-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-plus-circle"> <path d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Zm7.25-3.25v2.5h2.5a.75.75 0 0 1 0 1.5h-2.5v2.5a.75.75 0 0 1-1.5 0v-2.5h-2.5a.75.75 0 0 1 0-1.5h2.5v-2.5a.75.75 0 0 1 1.5 0Z"></path> </svg> </template> <template id="circle-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-dot-fill"> <path d="M8 4a4 4 0 1 1 0 8 4 4 0 0 1 0-8Z"></path> </svg> </template> <template id="trash-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-trash"> <path d="M11 1.75V3h2.25a.75.75 0 0 1 0 1.5H2.75a.75.75 0 0 1 0-1.5H5V1.75C5 .784 5.784 0 6.75 0h2.5C10.216 0 11 .784 11 1.75ZM4.496 6.675l.66 6.6a.25.25 0 0 0 .249.225h5.19a.25.25 0 0 0 .249-.225l.66-6.6a.75.75 0 0 1 1.492.149l-.66 6.6A1.748 1.748 0 0 1 10.595 15h-5.19a1.75 1.75 0 0 1-1.741-1.575l-.66-6.6a.75.75 0 1 1 1.492-.15ZM6.5 1.75V3h3V1.75a.25.25 0 0 0-.25-.25h-2.5a.25.25 0 0 0-.25.25Z"></path> </svg> </template> <template id="team-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-people"> <path d="M2 5.5a3.5 3.5 0 1 1 5.898 2.549 5.508 5.508 0 0 1 3.034 4.084.75.75 0 1 1-1.482.235 4 4 0 0 0-7.9 0 .75.75 0 0 1-1.482-.236A5.507 5.507 0 0 1 3.102 8.05 3.493 3.493 0 0 1 2 5.5ZM11 4a3.001 3.001 0 0 1 2.22 5.018 5.01 5.01 0 0 1 2.56 3.012.749.749 0 0 1-.885.954.752.752 0 0 1-.549-.514 3.507 3.507 0 0 0-2.522-2.372.75.75 0 0 1-.574-.73v-.352a.75.75 0 0 1 .416-.672A1.5 1.5 0 0 0 11 5.5.75.75 0 0 1 11 4Zm-5.5-.5a2 2 0 1 0-.001 3.999A2 2 0 0 0 5.5 3.5Z"></path> </svg> </template> <template id="project-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-project"> <path d="M1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0 1 14.25 16H1.75A1.75 1.75 0 0 1 0 14.25V1.75C0 .784.784 0 1.75 0ZM1.5 1.75v12.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25V1.75a.25.25 0 0 0-.25-.25H1.75a.25.25 0 0 0-.25.25ZM11.75 3a.75.75 0 0 1 .75.75v7.5a.75.75 0 0 1-1.5 0v-7.5a.75.75 0 0 1 .75-.75Zm-8.25.75a.75.75 0 0 1 1.5 0v5.5a.75.75 0 0 1-1.5 0ZM8 3a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 3Z"></path> </svg> </template> <template id="pencil-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-pencil"> <path d="M11.013 1.427a1.75 1.75 0 0 1 2.474 0l1.086 1.086a1.75 1.75 0 0 1 0 2.474l-8.61 8.61c-.21.21-.47.364-.756.445l-3.251.93a.75.75 0 0 1-.927-.928l.929-3.25c.081-.286.235-.547.445-.758l8.61-8.61Zm.176 4.823L9.75 4.81l-6.286 6.287a.253.253 0 0 0-.064.108l-.558 1.953 1.953-.558a.253.253 0 0 0 .108-.064Zm1.238-3.763a.25.25 0 0 0-.354 0L10.811 3.75l1.439 1.44 1.263-1.263a.25.25 0 0 0 0-.354Z"></path> </svg> </template> <template id="copilot-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-copilot"> <path d="M7.998 15.035c-4.562 0-7.873-2.914-7.998-3.749V9.338c.085-.628.677-1.686 1.588-2.065.013-.07.024-.143.036-.218.029-.183.06-.384.126-.612-.201-.508-.254-1.084-.254-1.656 0-.87.128-1.769.693-2.484.579-.733 1.494-1.124 2.724-1.261 1.206-.134 2.262.034 2.944.765.05.053.096.108.139.165.044-.057.094-.112.143-.165.682-.731 1.738-.899 2.944-.765 1.23.137 2.145.528 2.724 1.261.566.715.693 1.614.693 2.484 0 .572-.053 1.148-.254 1.656.066.228.098.429.126.612.012.076.024.148.037.218.924.385 1.522 1.471 1.591 2.095v1.872c0 .766-3.351 3.795-8.002 3.795Zm0-1.485c2.28 0 4.584-1.11 5.002-1.433V7.862l-.023-.116c-.49.21-1.075.291-1.727.291-1.146 0-2.059-.327-2.71-.991A3.222 3.222 0 0 1 8 6.303a3.24 3.24 0 0 1-.544.743c-.65.664-1.563.991-2.71.991-.652 0-1.236-.081-1.727-.291l-.023.116v4.255c.419.323 2.722 1.433 5.002 1.433ZM6.762 2.83c-.193-.206-.637-.413-1.682-.297-1.019.113-1.479.404-1.713.7-.247.312-.369.789-.369 1.554 0 .793.129 1.171.308 1.371.162.181.519.379 1.442.379.853 0 1.339-.235 1.638-.54.315-.322.527-.827.617-1.553.117-.935-.037-1.395-.241-1.614Zm4.155-.297c-1.044-.116-1.488.091-1.681.297-.204.219-.359.679-.242 1.614.091.726.303 1.231.618 1.553.299.305.784.54 1.638.54.922 0 1.28-.198 1.442-.379.179-.2.308-.578.308-1.371 0-.765-.123-1.242-.37-1.554-.233-.296-.693-.587-1.713-.7Z"></path><path d="M6.25 9.037a.75.75 0 0 1 .75.75v1.501a.75.75 0 0 1-1.5 0V9.787a.75.75 0 0 1 .75-.75Zm4.25.75v1.501a.75.75 0 0 1-1.5 0V9.787a.75.75 0 0 1 1.5 0Z"></path> </svg> </template> <template id="copilot-error-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-copilot-error"> <path d="M16 11.24c0 .112-.072.274-.21.467L13 9.688V7.862l-.023-.116c-.49.21-1.075.291-1.727.291-.198 0-.388-.009-.571-.029L6.833 5.226a4.01 4.01 0 0 0 .17-.782c.117-.935-.037-1.395-.241-1.614-.193-.206-.637-.413-1.682-.297-.683.076-1.115.231-1.395.415l-1.257-.91c.579-.564 1.413-.877 2.485-.996 1.206-.134 2.262.034 2.944.765.05.053.096.108.139.165.044-.057.094-.112.143-.165.682-.731 1.738-.899 2.944-.765 1.23.137 2.145.528 2.724 1.261.566.715.693 1.614.693 2.484 0 .572-.053 1.148-.254 1.656.066.228.098.429.126.612.012.076.024.148.037.218.924.385 1.522 1.471 1.591 2.095Zm-5.083-8.707c-1.044-.116-1.488.091-1.681.297-.204.219-.359.679-.242 1.614.091.726.303 1.231.618 1.553.299.305.784.54 1.638.54.922 0 1.28-.198 1.442-.379.179-.2.308-.578.308-1.371 0-.765-.123-1.242-.37-1.554-.233-.296-.693-.587-1.713-.7Zm2.511 11.074c-1.393.776-3.272 1.428-5.43 1.428-4.562 0-7.873-2.914-7.998-3.749V9.338c.085-.628.677-1.686 1.588-2.065.013-.07.024-.143.036-.218.029-.183.06-.384.126-.612-.18-.455-.241-.963-.252-1.475L.31 4.107A.747.747 0 0 1 0 3.509V3.49a.748.748 0 0 1 .625-.73c.156-.026.306.047.435.139l14.667 10.578a.592.592 0 0 1 .227.264.752.752 0 0 1 .046.249v.022a.75.75 0 0 1-1.19.596Zm-1.367-.991L5.635 7.964a5.128 5.128 0 0 1-.889.073c-.652 0-1.236-.081-1.727-.291l-.023.116v4.255c.419.323 2.722 1.433 5.002 1.433 1.539 0 3.089-.505 4.063-.934Z"></path> </svg> </template> <template id="workflow-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-workflow"> <path d="M0 1.75C0 .784.784 0 1.75 0h3.5C6.216 0 7 .784 7 1.75v3.5A1.75 1.75 0 0 1 5.25 7H4v4a1 1 0 0 0 1 1h4v-1.25C9 9.784 9.784 9 10.75 9h3.5c.966 0 1.75.784 1.75 1.75v3.5A1.75 1.75 0 0 1 14.25 16h-3.5A1.75 1.75 0 0 1 9 14.25v-.75H5A2.5 2.5 0 0 1 2.5 11V7h-.75A1.75 1.75 0 0 1 0 5.25Zm1.75-.25a.25.25 0 0 0-.25.25v3.5c0 .138.112.25.25.25h3.5a.25.25 0 0 0 .25-.25v-3.5a.25.25 0 0 0-.25-.25Zm9 9a.25.25 0 0 0-.25.25v3.5c0 .138.112.25.25.25h3.5a.25.25 0 0 0 .25-.25v-3.5a.25.25 0 0 0-.25-.25Z"></path> </svg> </template> <template id="book-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-book"> <path d="M0 1.75A.75.75 0 0 1 .75 1h4.253c1.227 0 2.317.59 3 1.501A3.743 3.743 0 0 1 11.006 1h4.245a.75.75 0 0 1 .75.75v10.5a.75.75 0 0 1-.75.75h-4.507a2.25 2.25 0 0 0-1.591.659l-.622.621a.75.75 0 0 1-1.06 0l-.622-.621A2.25 2.25 0 0 0 5.258 13H.75a.75.75 0 0 1-.75-.75Zm7.251 10.324.004-5.073-.002-2.253A2.25 2.25 0 0 0 5.003 2.5H1.5v9h3.757a3.75 3.75 0 0 1 1.994.574ZM8.755 4.75l-.004 7.322a3.752 3.752 0 0 1 1.992-.572H14.5v-9h-3.495a2.25 2.25 0 0 0-2.25 2.25Z"></path> </svg> </template> <template id="code-review-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-code-review"> <path d="M1.75 1h12.5c.966 0 1.75.784 1.75 1.75v8.5A1.75 1.75 0 0 1 14.25 13H8.061l-2.574 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25v-8.5C0 1.784.784 1 1.75 1ZM1.5 2.75v8.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-8.5a.25.25 0 0 0-.25-.25H1.75a.25.25 0 0 0-.25.25Zm5.28 1.72a.75.75 0 0 1 0 1.06L5.31 7l1.47 1.47a.751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018l-2-2a.75.75 0 0 1 0-1.06l2-2a.75.75 0 0 1 1.06 0Zm2.44 0a.75.75 0 0 1 1.06 0l2 2a.75.75 0 0 1 0 1.06l-2 2a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L10.69 7 9.22 5.53a.75.75 0 0 1 0-1.06Z"></path> </svg> </template> <template id="codespaces-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-codespaces"> <path d="M0 11.25c0-.966.784-1.75 1.75-1.75h12.5c.966 0 1.75.784 1.75 1.75v3A1.75 1.75 0 0 1 14.25 16H1.75A1.75 1.75 0 0 1 0 14.25Zm2-9.5C2 .784 2.784 0 3.75 0h8.5C13.216 0 14 .784 14 1.75v5a1.75 1.75 0 0 1-1.75 1.75h-8.5A1.75 1.75 0 0 1 2 6.75Zm1.75-.25a.25.25 0 0 0-.25.25v5c0 .138.112.25.25.25h8.5a.25.25 0 0 0 .25-.25v-5a.25.25 0 0 0-.25-.25Zm-2 9.5a.25.25 0 0 0-.25.25v3c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25v-3a.25.25 0 0 0-.25-.25Z"></path><path d="M7 12.75a.75.75 0 0 1 .75-.75h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1-.75-.75Zm-4 0a.75.75 0 0 1 .75-.75h.5a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1-.75-.75Z"></path> </svg> </template> <template id="comment-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-comment"> <path d="M1 2.75C1 1.784 1.784 1 2.75 1h10.5c.966 0 1.75.784 1.75 1.75v7.5A1.75 1.75 0 0 1 13.25 12H9.06l-2.573 2.573A1.458 1.458 0 0 1 4 13.543V12H2.75A1.75 1.75 0 0 1 1 10.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h4.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z"></path> </svg> </template> <template id="comment-discussion-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-comment-discussion"> <path d="M1.75 1h8.5c.966 0 1.75.784 1.75 1.75v5.5A1.75 1.75 0 0 1 10.25 10H7.061l-2.574 2.573A1.458 1.458 0 0 1 2 11.543V10h-.25A1.75 1.75 0 0 1 0 8.25v-5.5C0 1.784.784 1 1.75 1ZM1.5 2.75v5.5c0 .138.112.25.25.25h1a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h3.5a.25.25 0 0 0 .25-.25v-5.5a.25.25 0 0 0-.25-.25h-8.5a.25.25 0 0 0-.25.25Zm13 2a.25.25 0 0 0-.25-.25h-.5a.75.75 0 0 1 0-1.5h.5c.966 0 1.75.784 1.75 1.75v5.5A1.75 1.75 0 0 1 14.25 12H14v1.543a1.458 1.458 0 0 1-2.487 1.03L9.22 12.28a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215l2.22 2.22v-2.19a.75.75 0 0 1 .75-.75h1a.25.25 0 0 0 .25-.25Z"></path> </svg> </template> <template id="organization-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-organization"> <path d="M1.75 16A1.75 1.75 0 0 1 0 14.25V1.75C0 .784.784 0 1.75 0h8.5C11.216 0 12 .784 12 1.75v12.5c0 .085-.006.168-.018.25h2.268a.25.25 0 0 0 .25-.25V8.285a.25.25 0 0 0-.111-.208l-1.055-.703a.749.749 0 1 1 .832-1.248l1.055.703c.487.325.779.871.779 1.456v5.965A1.75 1.75 0 0 1 14.25 16h-3.5a.766.766 0 0 1-.197-.026c-.099.017-.2.026-.303.026h-3a.75.75 0 0 1-.75-.75V14h-1v1.25a.75.75 0 0 1-.75.75Zm-.25-1.75c0 .138.112.25.25.25H4v-1.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 .75.75v1.25h2.25a.25.25 0 0 0 .25-.25V1.75a.25.25 0 0 0-.25-.25h-8.5a.25.25 0 0 0-.25.25ZM3.75 6h.5a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1 0-1.5ZM3 3.75A.75.75 0 0 1 3.75 3h.5a.75.75 0 0 1 0 1.5h-.5A.75.75 0 0 1 3 3.75Zm4 3A.75.75 0 0 1 7.75 6h.5a.75.75 0 0 1 0 1.5h-.5A.75.75 0 0 1 7 6.75ZM7.75 3h.5a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1 0-1.5ZM3 9.75A.75.75 0 0 1 3.75 9h.5a.75.75 0 0 1 0 1.5h-.5A.75.75 0 0 1 3 9.75ZM7.75 9h.5a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1 0-1.5Z"></path> </svg> </template> <template id="rocket-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-rocket"> <path d="M14.064 0h.186C15.216 0 16 .784 16 1.75v.186a8.752 8.752 0 0 1-2.564 6.186l-.458.459c-.314.314-.641.616-.979.904v3.207c0 .608-.315 1.172-.833 1.49l-2.774 1.707a.749.749 0 0 1-1.11-.418l-.954-3.102a1.214 1.214 0 0 1-.145-.125L3.754 9.816a1.218 1.218 0 0 1-.124-.145L.528 8.717a.749.749 0 0 1-.418-1.11l1.71-2.774A1.748 1.748 0 0 1 3.31 4h3.204c.288-.338.59-.665.904-.979l.459-.458A8.749 8.749 0 0 1 14.064 0ZM8.938 3.623h-.002l-.458.458c-.76.76-1.437 1.598-2.02 2.5l-1.5 2.317 2.143 2.143 2.317-1.5c.902-.583 1.74-1.26 2.499-2.02l.459-.458a7.25 7.25 0 0 0 2.123-5.127V1.75a.25.25 0 0 0-.25-.25h-.186a7.249 7.249 0 0 0-5.125 2.123ZM3.56 14.56c-.732.732-2.334 1.045-3.005 1.148a.234.234 0 0 1-.201-.064.234.234 0 0 1-.064-.201c.103-.671.416-2.273 1.15-3.003a1.502 1.502 0 1 1 2.12 2.12Zm6.94-3.935c-.088.06-.177.118-.266.175l-2.35 1.521.548 1.783 1.949-1.2a.25.25 0 0 0 .119-.213ZM3.678 8.116 5.2 5.766c.058-.09.117-.178.176-.266H3.309a.25.25 0 0 0-.213.119l-1.2 1.95ZM12 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path> </svg> </template> <template id="shield-check-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-shield-check"> <path d="m8.533.133 5.25 1.68A1.75 1.75 0 0 1 15 3.48V7c0 1.566-.32 3.182-1.303 4.682-.983 1.498-2.585 2.813-5.032 3.855a1.697 1.697 0 0 1-1.33 0c-2.447-1.042-4.049-2.357-5.032-3.855C1.32 10.182 1 8.566 1 7V3.48a1.75 1.75 0 0 1 1.217-1.667l5.25-1.68a1.748 1.748 0 0 1 1.066 0Zm-.61 1.429.001.001-5.25 1.68a.251.251 0 0 0-.174.237V7c0 1.36.275 2.666 1.057 3.859.784 1.194 2.121 2.342 4.366 3.298a.196.196 0 0 0 .154 0c2.245-.957 3.582-2.103 4.366-3.297C13.225 9.666 13.5 8.358 13.5 7V3.48a.25.25 0 0 0-.174-.238l-5.25-1.68a.25.25 0 0 0-.153 0ZM11.28 6.28l-3.5 3.5a.75.75 0 0 1-1.06 0l-1.5-1.5a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215l.97.97 2.97-2.97a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Z"></path> </svg> </template> <template id="heart-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-heart"> <path d="m8 14.25.345.666a.75.75 0 0 1-.69 0l-.008-.004-.018-.01a7.152 7.152 0 0 1-.31-.17 22.055 22.055 0 0 1-3.434-2.414C2.045 10.731 0 8.35 0 5.5 0 2.836 2.086 1 4.25 1 5.797 1 7.153 1.802 8 3.02 8.847 1.802 10.203 1 11.75 1 13.914 1 16 2.836 16 5.5c0 2.85-2.045 5.231-3.885 6.818a22.066 22.066 0 0 1-3.744 2.584l-.018.01-.006.003h-.002ZM4.25 2.5c-1.336 0-2.75 1.164-2.75 3 0 2.15 1.58 4.144 3.365 5.682A20.58 20.58 0 0 0 8 13.393a20.58 20.58 0 0 0 3.135-2.211C12.92 9.644 14.5 7.65 14.5 5.5c0-1.836-1.414-3-2.75-3-1.373 0-2.609.986-3.029 2.456a.749.749 0 0 1-1.442 0C6.859 3.486 5.623 2.5 4.25 2.5Z"></path> </svg> </template> <template id="server-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-server"> <path d="M1.75 1h12.5c.966 0 1.75.784 1.75 1.75v4c0 .372-.116.717-.314 1 .198.283.314.628.314 1v4a1.75 1.75 0 0 1-1.75 1.75H1.75A1.75 1.75 0 0 1 0 12.75v-4c0-.358.109-.707.314-1a1.739 1.739 0 0 1-.314-1v-4C0 1.784.784 1 1.75 1ZM1.5 2.75v4c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25v-4a.25.25 0 0 0-.25-.25H1.75a.25.25 0 0 0-.25.25Zm.25 5.75a.25.25 0 0 0-.25.25v4c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25v-4a.25.25 0 0 0-.25-.25ZM7 4.75A.75.75 0 0 1 7.75 4h4.5a.75.75 0 0 1 0 1.5h-4.5A.75.75 0 0 1 7 4.75ZM7.75 10h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM3 4.75A.75.75 0 0 1 3.75 4h.5a.75.75 0 0 1 0 1.5h-.5A.75.75 0 0 1 3 4.75ZM3.75 10h.5a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1 0-1.5Z"></path> </svg> </template> <template id="globe-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-globe"> <path d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM5.78 8.75a9.64 9.64 0 0 0 1.363 4.177c.255.426.542.832.857 1.215.245-.296.551-.705.857-1.215A9.64 9.64 0 0 0 10.22 8.75Zm4.44-1.5a9.64 9.64 0 0 0-1.363-4.177c-.307-.51-.612-.919-.857-1.215a9.927 9.927 0 0 0-.857 1.215A9.64 9.64 0 0 0 5.78 7.25Zm-5.944 1.5H1.543a6.507 6.507 0 0 0 4.666 5.5c-.123-.181-.24-.365-.352-.552-.715-1.192-1.437-2.874-1.581-4.948Zm-2.733-1.5h2.733c.144-2.074.866-3.756 1.58-4.948.12-.197.237-.381.353-.552a6.507 6.507 0 0 0-4.666 5.5Zm10.181 1.5c-.144 2.074-.866 3.756-1.58 4.948-.12.197-.237.381-.353.552a6.507 6.507 0 0 0 4.666-5.5Zm2.733-1.5a6.507 6.507 0 0 0-4.666-5.5c.123.181.24.365.353.552.714 1.192 1.436 2.874 1.58 4.948Z"></path> </svg> </template> <template id="issue-opened-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-issue-opened"> <path d="M8 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"></path><path d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Z"></path> </svg> </template> <template id="device-mobile-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-device-mobile"> <path d="M3.75 0h8.5C13.216 0 14 .784 14 1.75v12.5A1.75 1.75 0 0 1 12.25 16h-8.5A1.75 1.75 0 0 1 2 14.25V1.75C2 .784 2.784 0 3.75 0ZM3.5 1.75v12.5c0 .138.112.25.25.25h8.5a.25.25 0 0 0 .25-.25V1.75a.25.25 0 0 0-.25-.25h-8.5a.25.25 0 0 0-.25.25ZM8 13a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path> </svg> </template> <template id="package-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-package"> <path d="m8.878.392 5.25 3.045c.54.314.872.89.872 1.514v6.098a1.75 1.75 0 0 1-.872 1.514l-5.25 3.045a1.75 1.75 0 0 1-1.756 0l-5.25-3.045A1.75 1.75 0 0 1 1 11.049V4.951c0-.624.332-1.201.872-1.514L7.122.392a1.75 1.75 0 0 1 1.756 0ZM7.875 1.69l-4.63 2.685L8 7.133l4.755-2.758-4.63-2.685a.248.248 0 0 0-.25 0ZM2.5 5.677v5.372c0 .09.047.171.125.216l4.625 2.683V8.432Zm6.25 8.271 4.625-2.683a.25.25 0 0 0 .125-.216V5.677L8.75 8.432Z"></path> </svg> </template> <template id="credit-card-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-credit-card"> <path d="M10.75 9a.75.75 0 0 0 0 1.5h1.5a.75.75 0 0 0 0-1.5h-1.5Z"></path><path d="M0 3.75C0 2.784.784 2 1.75 2h12.5c.966 0 1.75.784 1.75 1.75v8.5A1.75 1.75 0 0 1 14.25 14H1.75A1.75 1.75 0 0 1 0 12.25ZM14.5 6.5h-13v5.75c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25Zm0-2.75a.25.25 0 0 0-.25-.25H1.75a.25.25 0 0 0-.25.25V5h13Z"></path> </svg> </template> <template id="play-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-play"> <path d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Zm4.879-2.773 4.264 2.559a.25.25 0 0 1 0 .428l-4.264 2.559A.25.25 0 0 1 6 10.559V5.442a.25.25 0 0 1 .379-.215Z"></path> </svg> </template> <template id="gift-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-gift"> <path d="M2 2.75A2.75 2.75 0 0 1 4.75 0c.983 0 1.873.42 2.57 1.232.268.318.497.668.68 1.042.183-.375.411-.725.68-1.044C9.376.42 10.266 0 11.25 0a2.75 2.75 0 0 1 2.45 4h.55c.966 0 1.75.784 1.75 1.75v2c0 .698-.409 1.301-1 1.582v4.918A1.75 1.75 0 0 1 13.25 16H2.75A1.75 1.75 0 0 1 1 14.25V9.332C.409 9.05 0 8.448 0 7.75v-2C0 4.784.784 4 1.75 4h.55c-.192-.375-.3-.8-.3-1.25ZM7.25 9.5H2.5v4.75c0 .138.112.25.25.25h4.5Zm1.5 0v5h4.5a.25.25 0 0 0 .25-.25V9.5Zm0-4V8h5.5a.25.25 0 0 0 .25-.25v-2a.25.25 0 0 0-.25-.25Zm-7 0a.25.25 0 0 0-.25.25v2c0 .138.112.25.25.25h5.5V5.5h-5.5Zm3-4a1.25 1.25 0 0 0 0 2.5h2.309c-.233-.818-.542-1.401-.878-1.793-.43-.502-.915-.707-1.431-.707ZM8.941 4h2.309a1.25 1.25 0 0 0 0-2.5c-.516 0-1 .205-1.43.707-.337.392-.646.975-.879 1.793Z"></path> </svg> </template> <template id="code-square-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-code-square"> <path d="M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0 1 14.25 16H1.75A1.75 1.75 0 0 1 0 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25V1.75a.25.25 0 0 0-.25-.25Zm7.47 3.97a.75.75 0 0 1 1.06 0l2 2a.75.75 0 0 1 0 1.06l-2 2a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L10.69 8 9.22 6.53a.75.75 0 0 1 0-1.06ZM6.78 6.53 5.31 8l1.47 1.47a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215l-2-2a.75.75 0 0 1 0-1.06l2-2a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Z"></path> </svg> </template> <template id="device-desktop-icon"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-device-desktop"> <path d="M14.25 1c.966 0 1.75.784 1.75 1.75v7.5A1.75 1.75 0 0 1 14.25 12h-3.727c.099 1.041.52 1.872 1.292 2.757A.752.752 0 0 1 11.25 16h-6.5a.75.75 0 0 1-.565-1.243c.772-.885 1.192-1.716 1.292-2.757H1.75A1.75 1.75 0 0 1 0 10.25v-7.5C0 1.784.784 1 1.75 1ZM1.75 2.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25ZM9.018 12H6.982a5.72 5.72 0 0 1-.765 2.5h3.566a5.72 5.72 0 0 1-.765-2.5Z"></path> </svg> </template> <div class="position-relative"> <ul role="listbox" class="ActionListWrap QueryBuilder-ListWrap" aria-label="Suggestions" data-action=" combobox-commit:query-builder#comboboxCommit mousedown:query-builder#resultsMousedown " data-target="query-builder.resultsList" data-persist-list=false id="query-builder-test-results" ></ul> </div> <div class="FormControl-inlineValidation" id="validation-342da5fb-0018-430b-8ddd-30240198c749" hidden="hidden"> <span class="FormControl-inlineValidation--visual"> <svg aria-hidden="true" height="12" viewBox="0 0 12 12" version="1.1" width="12" data-view-component="true" class="octicon octicon-alert-fill"> <path d="M4.855.708c.5-.896 1.79-.896 2.29 0l4.675 8.351a1.312 1.312 0 0 1-1.146 1.954H1.33A1.313 1.313 0 0 1 .183 9.058ZM7 7V3H5v4Zm-1 3a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"></path> </svg> </span> <span></span> </div> </div> <div data-target="query-builder.screenReaderFeedback" aria-live="polite" aria-atomic="true" class="sr-only"></div> </query-builder></form> <div class="d-flex flex-row color-fg-muted px-3 text-small color-bg-default search-feedback-prompt"> <a target="_blank" href="https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax" data-view-component="true" class="Link color-fg-accent text-normal ml-2">Search syntax tips</a> <div class="d-flex flex-1"></div> </div> </div> </div> </div> </modal-dialog></div> </div> <div data-action="click:qbsearch-input#retract" class="dark-backdrop position-fixed" hidden data-target="qbsearch-input.darkBackdrop"></div> <div class="color-fg-default"> <dialog-helper> <dialog data-target="qbsearch-input.feedbackDialog" data-action="close:qbsearch-input#handleDialogClose cancel:qbsearch-input#handleDialogClose" id="feedback-dialog" aria-modal="true" aria-labelledby="feedback-dialog-title" aria-describedby="feedback-dialog-description" data-view-component="true" class="Overlay Overlay-whenNarrow Overlay--size-medium Overlay--motion-scaleFade Overlay--disableScroll"> <div data-view-component="true" class="Overlay-header"> <div class="Overlay-headerContentWrap"> <div class="Overlay-titleWrap"> <h1 class="Overlay-title " id="feedback-dialog-title"> Provide feedback </h1> </div> <div class="Overlay-actionWrap"> <button data-close-dialog-id="feedback-dialog" aria-label="Close" type="button" data-view-component="true" class="close-button Overlay-closeButton"><svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-x"> <path d="M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l3.22 3.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-3.22 3.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06Z"></path> </svg></button> </div> </div> </div> <scrollable-region data-labelled-by="feedback-dialog-title"> <div data-view-component="true" class="Overlay-body"> <!-- '"` --><!-- </textarea></xmp> --></option></form><form id="code-search-feedback-form" data-turbo="false" action="/search/feedback" accept-charset="UTF-8" method="post"><input type="hidden" data-csrf="true" name="authenticity_token" value="WFgUIjVIWsmxcTeSjpyNXz+qFcgJJ2MF8uTic89U+PyGb9zo5q+YIUuaIIBlwznLzkUg2HUuSX8byojq7Mjvug==" /> <p>We read every piece of feedback, and take your input very seriously.</p> <textarea name="feedback" class="form-control width-full mb-2" style="height: 120px" id="feedback"></textarea> <input name="include_email" id="include_email" aria-label="Include my email address so I can be contacted" class="form-control mr-2" type="checkbox"> <label for="include_email" style="font-weight: normal">Include my email address so I can be contacted</label> </form></div> </scrollable-region> <div data-view-component="true" class="Overlay-footer Overlay-footer--alignEnd"> <button data-close-dialog-id="feedback-dialog" type="button" data-view-component="true" class="btn"> Cancel </button> <button form="code-search-feedback-form" data-action="click:qbsearch-input#submitFeedback" type="submit" data-view-component="true" class="btn-primary btn"> Submit feedback </button> </div> </dialog></dialog-helper> <custom-scopes data-target="qbsearch-input.customScopesManager"> <dialog-helper> <dialog data-target="custom-scopes.customScopesModalDialog" data-action="close:qbsearch-input#handleDialogClose cancel:qbsearch-input#handleDialogClose" id="custom-scopes-dialog" aria-modal="true" aria-labelledby="custom-scopes-dialog-title" aria-describedby="custom-scopes-dialog-description" data-view-component="true" class="Overlay Overlay-whenNarrow Overlay--size-medium Overlay--motion-scaleFade Overlay--disableScroll"> <div data-view-component="true" class="Overlay-header Overlay-header--divided"> <div class="Overlay-headerContentWrap"> <div class="Overlay-titleWrap"> <h1 class="Overlay-title " id="custom-scopes-dialog-title"> Saved searches </h1> <h2 id="custom-scopes-dialog-description" class="Overlay-description">Use saved searches to filter your results more quickly</h2> </div> <div class="Overlay-actionWrap"> <button data-close-dialog-id="custom-scopes-dialog" aria-label="Close" type="button" data-view-component="true" class="close-button Overlay-closeButton"><svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-x"> <path d="M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l3.22 3.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-3.22 3.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06Z"></path> </svg></button> </div> </div> </div> <scrollable-region data-labelled-by="custom-scopes-dialog-title"> <div data-view-component="true" class="Overlay-body"> <div data-target="custom-scopes.customScopesModalDialogFlash"></div> <div hidden class="create-custom-scope-form" data-target="custom-scopes.createCustomScopeForm"> <!-- '"` --><!-- </textarea></xmp> --></option></form><form id="custom-scopes-dialog-form" data-turbo="false" action="/search/custom_scopes" accept-charset="UTF-8" method="post"><input type="hidden" data-csrf="true" name="authenticity_token" value="F/Nk5RJ70fxk5lE+KBUwF12GTjlDVEsFfdKtZBuY29HXTKc4GSs8o8tm7yBMaYHBgDaYnpo/FBgcrVuHbj6/AQ==" /> <div data-target="custom-scopes.customScopesModalDialogFlash"></div> <input type="hidden" id="custom_scope_id" name="custom_scope_id" data-target="custom-scopes.customScopesIdField"> <div class="form-group"> <label for="custom_scope_name">Name</label> <auto-check src="/search/custom_scopes/check_name" required only-validate-on-blur="false"> <input type="text" name="custom_scope_name" id="custom_scope_name" data-target="custom-scopes.customScopesNameField" class="form-control" autocomplete="off" placeholder="github-ruby" required maxlength="50"> <input type="hidden" data-csrf="true" value="V8y4opwUT7vJeZy4xJqzbyexlOZ6J40ze1BAchC2rUgsfW2KJvlovfs/lZ1dUPQFKylXeYpi9oIbvt47QNQ8oA==" /> </auto-check> </div> <div class="form-group"> <label for="custom_scope_query">Query</label> <input type="text" name="custom_scope_query" id="custom_scope_query" data-target="custom-scopes.customScopesQueryField" class="form-control" autocomplete="off" placeholder="(repo:mona/a OR repo:mona/b) AND lang:python" required maxlength="500"> </div> <p class="text-small color-fg-muted"> To see all available qualifiers, see our <a class="Link--inTextBlock" href="https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax">documentation</a>. </p> </form> </div> <div data-target="custom-scopes.manageCustomScopesForm"> <div data-target="custom-scopes.list"></div> </div> </div> </scrollable-region> <div data-view-component="true" class="Overlay-footer Overlay-footer--alignEnd Overlay-footer--divided"> <button data-action="click:custom-scopes#customScopesCancel" type="button" data-view-component="true" class="btn"> Cancel </button> <button form="custom-scopes-dialog-form" data-action="click:custom-scopes#customScopesSubmit" data-target="custom-scopes.customScopesSubmitButton" type="submit" data-view-component="true" class="btn-primary btn"> Create saved search </button> </div> </dialog></dialog-helper> </custom-scopes> </div> </qbsearch-input> <div class="position-relative HeaderMenu-link-wrap d-lg-inline-block"> <a href="/login?return_to=https%3A%2F%2Fgithub.com%2Fkeras-team%2Ftf-keras%2Fblob%2Fv2.18.0%2Ftf_keras%2Flosses.py" class="HeaderMenu-link HeaderMenu-link--sign-in HeaderMenu-button flex-shrink-0 no-underline d-none d-lg-inline-flex border border-lg-0 rounded rounded-lg-0 px-2 py-1" style="margin-left: 12px;" data-hydro-click="{"event_type":"authentication.click","payload":{"location_in_page":"site header menu","repository_id":null,"auth_type":"SIGN_UP","originating_url":"https://github.com/keras-team/tf-keras/blob/v2.18.0/tf_keras/losses.py","user_id":null}}" data-hydro-click-hmac="6c6c6df95fb59d44cb5d75b3a3251dec088a44c96868764263bf38dfed3b6043" data-analytics-event="{"category":"Marketing nav","action":"click to go to homepage","label":"ref_page:Marketing;ref_cta:Sign in;ref_loc:Header"}" > Sign in </a> </div> <a href="/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fblob%2Fshow&source=header-repo&source_repo=keras-team%2Ftf-keras" class="HeaderMenu-link HeaderMenu-link--sign-up HeaderMenu-button flex-shrink-0 d-flex d-lg-inline-flex no-underline border color-border-default rounded px-2 py-1" data-hydro-click="{"event_type":"authentication.click","payload":{"location_in_page":"site header menu","repository_id":null,"auth_type":"SIGN_UP","originating_url":"https://github.com/keras-team/tf-keras/blob/v2.18.0/tf_keras/losses.py","user_id":null}}" data-hydro-click-hmac="6c6c6df95fb59d44cb5d75b3a3251dec088a44c96868764263bf38dfed3b6043" data-analytics-event="{"category":"Sign up","action":"click to sign up for account","label":"ref_page:/<user-name>/<repo-name>/blob/show;ref_cta:Sign up;ref_loc:header logged out"}" > Sign up </a> <button type="button" class="sr-only js-header-menu-focus-trap d-block d-lg-none">Reseting focus</button> </div> </div> </div> </div> </header> <div hidden="hidden" data-view-component="true" class="js-stale-session-flash stale-session-flash flash flash-warn flash-full"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-alert"> <path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path> </svg> <span class="js-stale-session-flash-signed-in" hidden>You signed in with another tab or window. <a class="Link--inTextBlock" href="">Reload</a> to refresh your session.</span> <span class="js-stale-session-flash-signed-out" hidden>You signed out in another tab or window. <a class="Link--inTextBlock" href="">Reload</a> to refresh your session.</span> <span class="js-stale-session-flash-switched" hidden>You switched accounts on another tab or window. <a class="Link--inTextBlock" href="">Reload</a> to refresh your session.</span> <button id="icon-button-38e9a689-3ad7-4e41-a617-98590d67014f" aria-labelledby="tooltip-97882fe7-33f0-4397-88dc-0c02f724dab3" type="button" data-view-component="true" class="Button Button--iconOnly Button--invisible Button--medium flash-close js-flash-close"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-x Button-visual"> <path d="M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l3.22 3.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-3.22 3.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06Z"></path> </svg> </button><tool-tip id="tooltip-97882fe7-33f0-4397-88dc-0c02f724dab3" for="icon-button-38e9a689-3ad7-4e41-a617-98590d67014f" popover="manual" data-direction="s" data-type="label" data-view-component="true" class="sr-only position-absolute">Dismiss alert</tool-tip> </div> </div> <div id="start-of-content" class="show-on-focus"></div> <div id="js-flash-container" class="flash-container" data-turbo-replace> <template class="js-flash-template"> <div class="flash flash-full {{ className }}"> <div > <button autofocus class="flash-close js-flash-close" type="button" aria-label="Dismiss this message"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-x"> <path d="M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l3.22 3.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-3.22 3.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06Z"></path> </svg> </button> <div aria-atomic="true" role="alert" class="js-flash-alert"> <div>{{ message }}</div> </div> </div> </div> </template> </div> <div class="application-main " data-commit-hovercards-enabled data-discussion-hovercards-enabled data-issue-and-pr-hovercards-enabled data-project-hovercards-enabled > <div itemscope itemtype="http://schema.org/SoftwareSourceCode" class=""> <main id="js-repo-pjax-container" > <div id="repository-container-header" class="pt-3 hide-full-screen" style="background-color: var(--page-header-bgColor, var(--color-page-header-bg));" data-turbo-replace> <div class="d-flex flex-nowrap flex-justify-end mb-3 px-3 px-lg-5" style="gap: 1rem;"> <div class="flex-auto min-width-0 width-fit"> <div class=" d-flex flex-wrap flex-items-center wb-break-word f3 text-normal"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-repo color-fg-muted mr-2"> <path d="M2 2.5A2.5 2.5 0 0 1 4.5 0h8.75a.75.75 0 0 1 .75.75v12.5a.75.75 0 0 1-.75.75h-2.5a.75.75 0 0 1 0-1.5h1.75v-2h-8a1 1 0 0 0-.714 1.7.75.75 0 1 1-1.072 1.05A2.495 2.495 0 0 1 2 11.5Zm10.5-1h-8a1 1 0 0 0-1 1v6.708A2.486 2.486 0 0 1 4.5 9h8ZM5 12.25a.25.25 0 0 1 .25-.25h3.5a.25.25 0 0 1 .25.25v3.25a.25.25 0 0 1-.4.2l-1.45-1.087a.249.249 0 0 0-.3 0L5.4 15.7a.25.25 0 0 1-.4-.2Z"></path> </svg> <span class="author flex-self-stretch" itemprop="author"> <a class="url fn" rel="author" data-hovercard-type="organization" data-hovercard-url="/orgs/keras-team/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="/keras-team"> keras-team </a> </span> <span class="mx-1 flex-self-stretch color-fg-muted">/</span> <strong itemprop="name" class="mr-2 flex-self-stretch"> <a data-pjax="#repo-content-pjax-container" data-turbo-frame="repo-content-turbo-frame" href="/keras-team/tf-keras">tf-keras</a> </strong> <span></span><span class="Label Label--secondary v-align-middle mr-1">Public</span> </div> </div> <div id="repository-details-container" class="flex-shrink-0" data-turbo-replace style="max-width: 70%;"> <ul class="pagehead-actions flex-shrink-0 d-none d-md-inline" style="padding: 2px 0;"> <li> <a href="/login?return_to=%2Fkeras-team%2Ftf-keras" rel="nofollow" id="repository-details-watch-button" data-hydro-click="{"event_type":"authentication.click","payload":{"location_in_page":"notification subscription menu watch","repository_id":null,"auth_type":"LOG_IN","originating_url":"https://github.com/keras-team/tf-keras/blob/v2.18.0/tf_keras/losses.py","user_id":null}}" data-hydro-click-hmac="40999c1d785f8ebe830060981d2e703a70c707ed381deaf692ddedbda7259c8c" aria-label="You must be signed in to change notification settings" data-view-component="true" class="btn-sm btn"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-bell mr-2"> <path d="M8 16a2 2 0 0 0 1.985-1.75c.017-.137-.097-.25-.235-.25h-3.5c-.138 0-.252.113-.235.25A2 2 0 0 0 8 16ZM3 5a5 5 0 0 1 10 0v2.947c0 .05.015.098.042.139l1.703 2.555A1.519 1.519 0 0 1 13.482 13H2.518a1.516 1.516 0 0 1-1.263-2.36l1.703-2.554A.255.255 0 0 0 3 7.947Zm5-3.5A3.5 3.5 0 0 0 4.5 5v2.947c0 .346-.102.683-.294.97l-1.703 2.556a.017.017 0 0 0-.003.01l.001.006c0 .002.002.004.004.006l.006.004.007.001h10.964l.007-.001.006-.004.004-.006.001-.007a.017.017 0 0 0-.003-.01l-1.703-2.554a1.745 1.745 0 0 1-.294-.97V5A3.5 3.5 0 0 0 8 1.5Z"></path> </svg>Notifications </a> <tool-tip id="tooltip-b3709fa9-7cc2-471b-88fb-56293092d12c" for="repository-details-watch-button" popover="manual" data-direction="s" data-type="description" data-view-component="true" class="sr-only position-absolute">You must be signed in to change notification settings</tool-tip> </li> <li> <a icon="repo-forked" id="fork-button" href="/login?return_to=%2Fkeras-team%2Ftf-keras" rel="nofollow" data-hydro-click="{"event_type":"authentication.click","payload":{"location_in_page":"repo details fork button","repository_id":686762574,"auth_type":"LOG_IN","originating_url":"https://github.com/keras-team/tf-keras/blob/v2.18.0/tf_keras/losses.py","user_id":null}}" data-hydro-click-hmac="937a3eae2f260f4f83da4b8c96b4f15cb62356a07d719006a5a3e1050b56899d" data-view-component="true" class="btn-sm btn"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-repo-forked mr-2"> <path d="M5 5.372v.878c0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75v-.878a2.25 2.25 0 1 1 1.5 0v.878a2.25 2.25 0 0 1-2.25 2.25h-1.5v2.128a2.251 2.251 0 1 1-1.5 0V8.5h-1.5A2.25 2.25 0 0 1 3.5 6.25v-.878a2.25 2.25 0 1 1 1.5 0ZM5 3.25a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Zm6.75.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm-3 8.75a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Z"></path> </svg>Fork <span id="repo-network-counter" data-pjax-replace="true" data-turbo-replace="true" title="36" data-view-component="true" class="Counter">36</span> </a> </li> <li> <div data-view-component="true" class="BtnGroup d-flex"> <a href="/login?return_to=%2Fkeras-team%2Ftf-keras" rel="nofollow" data-hydro-click="{"event_type":"authentication.click","payload":{"location_in_page":"star button","repository_id":686762574,"auth_type":"LOG_IN","originating_url":"https://github.com/keras-team/tf-keras/blob/v2.18.0/tf_keras/losses.py","user_id":null}}" data-hydro-click-hmac="5cffee4e9a456fa4884e64d02d19cb47611e4fec425c9a5dc20ec84efe6cd749" aria-label="You must be signed in to star a repository" data-view-component="true" class="tooltipped tooltipped-sw btn-sm btn"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-star v-align-text-bottom d-inline-block mr-2"> <path d="M8 .25a.75.75 0 0 1 .673.418l1.882 3.815 4.21.612a.75.75 0 0 1 .416 1.279l-3.046 2.97.719 4.192a.751.751 0 0 1-1.088.791L8 12.347l-3.766 1.98a.75.75 0 0 1-1.088-.79l.72-4.194L.818 6.374a.75.75 0 0 1 .416-1.28l4.21-.611L7.327.668A.75.75 0 0 1 8 .25Zm0 2.445L6.615 5.5a.75.75 0 0 1-.564.41l-3.097.45 2.24 2.184a.75.75 0 0 1 .216.664l-.528 3.084 2.769-1.456a.75.75 0 0 1 .698 0l2.77 1.456-.53-3.084a.75.75 0 0 1 .216-.664l2.24-2.183-3.096-.45a.75.75 0 0 1-.564-.41L8 2.694Z"></path> </svg><span data-view-component="true" class="d-inline"> Star </span> <span id="repo-stars-counter-star" aria-label="73 users starred this repository" data-singular-suffix="user starred this repository" data-plural-suffix="users starred this repository" data-turbo-replace="true" title="73" data-view-component="true" class="Counter js-social-count">73</span> </a></div> </li> </ul> </div> </div> <div id="responsive-meta-container" data-turbo-replace> </div> <nav data-pjax="#js-repo-pjax-container" aria-label="Repository" data-view-component="true" class="js-repo-nav js-sidenav-container-pjax js-responsive-underlinenav overflow-hidden UnderlineNav px-3 px-md-4 px-lg-5"> <ul data-view-component="true" class="UnderlineNav-body list-style-none"> <li data-view-component="true" class="d-inline-flex"> <a id="code-tab" href="/keras-team/tf-keras/tree/v2.18.0" data-tab-item="i0code-tab" data-selected-links="repo_source repo_downloads repo_commits repo_releases repo_tags repo_branches repo_packages repo_deployments repo_attestations /keras-team/tf-keras/tree/v2.18.0" data-pjax="#repo-content-pjax-container" data-turbo-frame="repo-content-turbo-frame" data-hotkey="g c" data-analytics-event="{"category":"Underline navbar","action":"Click tab","label":"Code","target":"UNDERLINE_NAV.TAB"}" aria-current="page" data-view-component="true" class="UnderlineNav-item no-wrap js-responsive-underlinenav-item js-selected-navigation-item selected"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-code UnderlineNav-octicon d-none d-sm-inline"> <path d="m11.28 3.22 4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L13.94 8l-3.72-3.72a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215Zm-6.56 0a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042L2.06 8l3.72 3.72a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L.47 8.53a.75.75 0 0 1 0-1.06Z"></path> </svg> <span data-content="Code">Code</span> <span id="code-repo-tab-count" data-pjax-replace="" data-turbo-replace="" title="Not available" data-view-component="true" class="Counter"></span> </a></li> <li data-view-component="true" class="d-inline-flex"> <a id="issues-tab" href="/keras-team/tf-keras/issues" data-tab-item="i1issues-tab" data-selected-links="repo_issues repo_labels repo_milestones /keras-team/tf-keras/issues" data-pjax="#repo-content-pjax-container" data-turbo-frame="repo-content-turbo-frame" data-hotkey="g i" data-analytics-event="{"category":"Underline navbar","action":"Click tab","label":"Issues","target":"UNDERLINE_NAV.TAB"}" data-view-component="true" class="UnderlineNav-item no-wrap js-responsive-underlinenav-item js-selected-navigation-item"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-issue-opened UnderlineNav-octicon d-none d-sm-inline"> <path d="M8 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"></path><path d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Z"></path> </svg> <span data-content="Issues">Issues</span> <span id="issues-repo-tab-count" data-pjax-replace="" data-turbo-replace="" title="179" data-view-component="true" class="Counter">179</span> </a></li> <li data-view-component="true" class="d-inline-flex"> <a id="pull-requests-tab" href="/keras-team/tf-keras/pulls" data-tab-item="i2pull-requests-tab" data-selected-links="repo_pulls checks /keras-team/tf-keras/pulls" data-pjax="#repo-content-pjax-container" data-turbo-frame="repo-content-turbo-frame" data-hotkey="g p" data-analytics-event="{"category":"Underline navbar","action":"Click tab","label":"Pull requests","target":"UNDERLINE_NAV.TAB"}" data-view-component="true" class="UnderlineNav-item no-wrap js-responsive-underlinenav-item js-selected-navigation-item"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-git-pull-request UnderlineNav-octicon d-none d-sm-inline"> <path d="M1.5 3.25a2.25 2.25 0 1 1 3 2.122v5.256a2.251 2.251 0 1 1-1.5 0V5.372A2.25 2.25 0 0 1 1.5 3.25Zm5.677-.177L9.573.677A.25.25 0 0 1 10 .854V2.5h1A2.5 2.5 0 0 1 13.5 5v5.628a2.251 2.251 0 1 1-1.5 0V5a1 1 0 0 0-1-1h-1v1.646a.25.25 0 0 1-.427.177L7.177 3.427a.25.25 0 0 1 0-.354ZM3.75 2.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm0 9.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm8.25.75a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0Z"></path> </svg> <span data-content="Pull requests">Pull requests</span> <span id="pull-requests-repo-tab-count" data-pjax-replace="" data-turbo-replace="" title="16" data-view-component="true" class="Counter">16</span> </a></li> <li data-view-component="true" class="d-inline-flex"> <a id="actions-tab" href="/keras-team/tf-keras/actions" data-tab-item="i3actions-tab" data-selected-links="repo_actions /keras-team/tf-keras/actions" data-pjax="#repo-content-pjax-container" data-turbo-frame="repo-content-turbo-frame" data-hotkey="g a" data-analytics-event="{"category":"Underline navbar","action":"Click tab","label":"Actions","target":"UNDERLINE_NAV.TAB"}" data-view-component="true" class="UnderlineNav-item no-wrap js-responsive-underlinenav-item js-selected-navigation-item"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-play UnderlineNav-octicon d-none d-sm-inline"> <path d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Zm4.879-2.773 4.264 2.559a.25.25 0 0 1 0 .428l-4.264 2.559A.25.25 0 0 1 6 10.559V5.442a.25.25 0 0 1 .379-.215Z"></path> </svg> <span data-content="Actions">Actions</span> <span id="actions-repo-tab-count" data-pjax-replace="" data-turbo-replace="" title="Not available" data-view-component="true" class="Counter"></span> </a></li> <li data-view-component="true" class="d-inline-flex"> <a id="projects-tab" href="/keras-team/tf-keras/projects" data-tab-item="i4projects-tab" data-selected-links="repo_projects new_repo_project repo_project /keras-team/tf-keras/projects" data-pjax="#repo-content-pjax-container" data-turbo-frame="repo-content-turbo-frame" data-hotkey="g b" data-analytics-event="{"category":"Underline navbar","action":"Click tab","label":"Projects","target":"UNDERLINE_NAV.TAB"}" data-view-component="true" class="UnderlineNav-item no-wrap js-responsive-underlinenav-item js-selected-navigation-item"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-table UnderlineNav-octicon d-none d-sm-inline"> <path d="M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0 1 14.25 16H1.75A1.75 1.75 0 0 1 0 14.25ZM6.5 6.5v8h7.75a.25.25 0 0 0 .25-.25V6.5Zm8-1.5V1.75a.25.25 0 0 0-.25-.25H6.5V5Zm-13 1.5v7.75c0 .138.112.25.25.25H5v-8ZM5 5V1.5H1.75a.25.25 0 0 0-.25.25V5Z"></path> </svg> <span data-content="Projects">Projects</span> <span id="projects-repo-tab-count" data-pjax-replace="" data-turbo-replace="" title="0" hidden="hidden" data-view-component="true" class="Counter">0</span> </a></li> <li data-view-component="true" class="d-inline-flex"> <a id="security-tab" href="/keras-team/tf-keras/security" data-tab-item="i5security-tab" data-selected-links="security overview alerts policy token_scanning code_scanning /keras-team/tf-keras/security" data-pjax="#repo-content-pjax-container" data-turbo-frame="repo-content-turbo-frame" data-hotkey="g s" data-analytics-event="{"category":"Underline navbar","action":"Click tab","label":"Security","target":"UNDERLINE_NAV.TAB"}" data-view-component="true" class="UnderlineNav-item no-wrap js-responsive-underlinenav-item js-selected-navigation-item"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-shield UnderlineNav-octicon d-none d-sm-inline"> <path d="M7.467.133a1.748 1.748 0 0 1 1.066 0l5.25 1.68A1.75 1.75 0 0 1 15 3.48V7c0 1.566-.32 3.182-1.303 4.682-.983 1.498-2.585 2.813-5.032 3.855a1.697 1.697 0 0 1-1.33 0c-2.447-1.042-4.049-2.357-5.032-3.855C1.32 10.182 1 8.566 1 7V3.48a1.75 1.75 0 0 1 1.217-1.667Zm.61 1.429a.25.25 0 0 0-.153 0l-5.25 1.68a.25.25 0 0 0-.174.238V7c0 1.358.275 2.666 1.057 3.86.784 1.194 2.121 2.34 4.366 3.297a.196.196 0 0 0 .154 0c2.245-.956 3.582-2.104 4.366-3.298C13.225 9.666 13.5 8.36 13.5 7V3.48a.251.251 0 0 0-.174-.237l-5.25-1.68ZM8.75 4.75v3a.75.75 0 0 1-1.5 0v-3a.75.75 0 0 1 1.5 0ZM9 10.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path> </svg> <span data-content="Security">Security</span> <include-fragment src="/keras-team/tf-keras/security/overall-count" accept="text/fragment+html"></include-fragment> </a></li> <li data-view-component="true" class="d-inline-flex"> <a id="insights-tab" href="/keras-team/tf-keras/pulse" data-tab-item="i6insights-tab" data-selected-links="repo_graphs repo_contributors dependency_graph dependabot_updates pulse people community /keras-team/tf-keras/pulse" data-pjax="#repo-content-pjax-container" data-turbo-frame="repo-content-turbo-frame" data-analytics-event="{"category":"Underline navbar","action":"Click tab","label":"Insights","target":"UNDERLINE_NAV.TAB"}" data-view-component="true" class="UnderlineNav-item no-wrap js-responsive-underlinenav-item js-selected-navigation-item"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-graph UnderlineNav-octicon d-none d-sm-inline"> <path d="M1.5 1.75V13.5h13.75a.75.75 0 0 1 0 1.5H.75a.75.75 0 0 1-.75-.75V1.75a.75.75 0 0 1 1.5 0Zm14.28 2.53-5.25 5.25a.75.75 0 0 1-1.06 0L7 7.06 4.28 9.78a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042l3.25-3.25a.75.75 0 0 1 1.06 0L10 7.94l4.72-4.72a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Z"></path> </svg> <span data-content="Insights">Insights</span> <span id="insights-repo-tab-count" data-pjax-replace="" data-turbo-replace="" title="Not available" data-view-component="true" class="Counter"></span> </a></li> </ul> <div style="visibility:hidden;" data-view-component="true" class="UnderlineNav-actions js-responsive-underlinenav-overflow position-absolute pr-3 pr-md-4 pr-lg-5 right-0"> <action-menu data-select-variant="none" data-view-component="true"> <focus-group direction="vertical" mnemonics retain> <button id="action-menu-1ea890f8-bed0-4975-9faf-d97b139e954a-button" popovertarget="action-menu-1ea890f8-bed0-4975-9faf-d97b139e954a-overlay" aria-controls="action-menu-1ea890f8-bed0-4975-9faf-d97b139e954a-list" aria-haspopup="true" aria-labelledby="tooltip-55b6a157-8300-4a44-972f-bcdb37e0a17b" type="button" data-view-component="true" class="Button Button--iconOnly Button--secondary Button--medium UnderlineNav-item"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-kebab-horizontal Button-visual"> <path d="M8 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM1.5 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm13 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"></path> </svg> </button><tool-tip id="tooltip-55b6a157-8300-4a44-972f-bcdb37e0a17b" for="action-menu-1ea890f8-bed0-4975-9faf-d97b139e954a-button" popover="manual" data-direction="s" data-type="label" data-view-component="true" class="sr-only position-absolute">Additional navigation options</tool-tip> <anchored-position data-target="action-menu.overlay" id="action-menu-1ea890f8-bed0-4975-9faf-d97b139e954a-overlay" anchor="action-menu-1ea890f8-bed0-4975-9faf-d97b139e954a-button" align="start" side="outside-bottom" anchor-offset="normal" popover="auto" data-view-component="true"> <div data-view-component="true" class="Overlay Overlay--size-auto"> <div data-view-component="true" class="Overlay-body Overlay-body--paddingNone"> <action-list> <div data-view-component="true"> <ul aria-labelledby="action-menu-1ea890f8-bed0-4975-9faf-d97b139e954a-button" id="action-menu-1ea890f8-bed0-4975-9faf-d97b139e954a-list" role="menu" data-view-component="true" class="ActionListWrap--inset ActionListWrap"> <li hidden="hidden" data-menu-item="i0code-tab" data-targets="action-list.items" role="none" data-view-component="true" class="ActionListItem"> <a tabindex="-1" id="item-d8b17b2e-4df5-4376-8cfa-44e56513d0e9" href="/keras-team/tf-keras/tree/v2.18.0" role="menuitem" data-view-component="true" class="ActionListContent ActionListContent--visual16"> <span class="ActionListItem-visual ActionListItem-visual--leading"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-code"> <path d="m11.28 3.22 4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L13.94 8l-3.72-3.72a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215Zm-6.56 0a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042L2.06 8l3.72 3.72a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L.47 8.53a.75.75 0 0 1 0-1.06Z"></path> </svg> </span> <span data-view-component="true" class="ActionListItem-label"> Code </span> </a> </li> <li hidden="hidden" data-menu-item="i1issues-tab" data-targets="action-list.items" role="none" data-view-component="true" class="ActionListItem"> <a tabindex="-1" id="item-4e609a5a-4c04-450c-a13c-92de1d4b1ddc" href="/keras-team/tf-keras/issues" role="menuitem" data-view-component="true" class="ActionListContent ActionListContent--visual16"> <span class="ActionListItem-visual ActionListItem-visual--leading"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-issue-opened"> <path d="M8 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"></path><path d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Z"></path> </svg> </span> <span data-view-component="true" class="ActionListItem-label"> Issues </span> </a> </li> <li hidden="hidden" data-menu-item="i2pull-requests-tab" data-targets="action-list.items" role="none" data-view-component="true" class="ActionListItem"> <a tabindex="-1" id="item-992a16df-0132-4ea4-9e14-405888501ffa" href="/keras-team/tf-keras/pulls" role="menuitem" data-view-component="true" class="ActionListContent ActionListContent--visual16"> <span class="ActionListItem-visual ActionListItem-visual--leading"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-git-pull-request"> <path d="M1.5 3.25a2.25 2.25 0 1 1 3 2.122v5.256a2.251 2.251 0 1 1-1.5 0V5.372A2.25 2.25 0 0 1 1.5 3.25Zm5.677-.177L9.573.677A.25.25 0 0 1 10 .854V2.5h1A2.5 2.5 0 0 1 13.5 5v5.628a2.251 2.251 0 1 1-1.5 0V5a1 1 0 0 0-1-1h-1v1.646a.25.25 0 0 1-.427.177L7.177 3.427a.25.25 0 0 1 0-.354ZM3.75 2.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm0 9.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm8.25.75a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0Z"></path> </svg> </span> <span data-view-component="true" class="ActionListItem-label"> Pull requests </span> </a> </li> <li hidden="hidden" data-menu-item="i3actions-tab" data-targets="action-list.items" role="none" data-view-component="true" class="ActionListItem"> <a tabindex="-1" id="item-d665bacf-dc5a-43db-92a7-4173796942d7" href="/keras-team/tf-keras/actions" role="menuitem" data-view-component="true" class="ActionListContent ActionListContent--visual16"> <span class="ActionListItem-visual ActionListItem-visual--leading"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-play"> <path d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Zm4.879-2.773 4.264 2.559a.25.25 0 0 1 0 .428l-4.264 2.559A.25.25 0 0 1 6 10.559V5.442a.25.25 0 0 1 .379-.215Z"></path> </svg> </span> <span data-view-component="true" class="ActionListItem-label"> Actions </span> </a> </li> <li hidden="hidden" data-menu-item="i4projects-tab" data-targets="action-list.items" role="none" data-view-component="true" class="ActionListItem"> <a tabindex="-1" id="item-e84df87a-eedf-4308-bb90-5e1c3e9bd19d" href="/keras-team/tf-keras/projects" role="menuitem" data-view-component="true" class="ActionListContent ActionListContent--visual16"> <span class="ActionListItem-visual ActionListItem-visual--leading"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-table"> <path d="M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0 1 14.25 16H1.75A1.75 1.75 0 0 1 0 14.25ZM6.5 6.5v8h7.75a.25.25 0 0 0 .25-.25V6.5Zm8-1.5V1.75a.25.25 0 0 0-.25-.25H6.5V5Zm-13 1.5v7.75c0 .138.112.25.25.25H5v-8ZM5 5V1.5H1.75a.25.25 0 0 0-.25.25V5Z"></path> </svg> </span> <span data-view-component="true" class="ActionListItem-label"> Projects </span> </a> </li> <li hidden="hidden" data-menu-item="i5security-tab" data-targets="action-list.items" role="none" data-view-component="true" class="ActionListItem"> <a tabindex="-1" id="item-c4258e72-c02c-4729-abeb-16d19bb0138e" href="/keras-team/tf-keras/security" role="menuitem" data-view-component="true" class="ActionListContent ActionListContent--visual16"> <span class="ActionListItem-visual ActionListItem-visual--leading"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-shield"> <path d="M7.467.133a1.748 1.748 0 0 1 1.066 0l5.25 1.68A1.75 1.75 0 0 1 15 3.48V7c0 1.566-.32 3.182-1.303 4.682-.983 1.498-2.585 2.813-5.032 3.855a1.697 1.697 0 0 1-1.33 0c-2.447-1.042-4.049-2.357-5.032-3.855C1.32 10.182 1 8.566 1 7V3.48a1.75 1.75 0 0 1 1.217-1.667Zm.61 1.429a.25.25 0 0 0-.153 0l-5.25 1.68a.25.25 0 0 0-.174.238V7c0 1.358.275 2.666 1.057 3.86.784 1.194 2.121 2.34 4.366 3.297a.196.196 0 0 0 .154 0c2.245-.956 3.582-2.104 4.366-3.298C13.225 9.666 13.5 8.36 13.5 7V3.48a.251.251 0 0 0-.174-.237l-5.25-1.68ZM8.75 4.75v3a.75.75 0 0 1-1.5 0v-3a.75.75 0 0 1 1.5 0ZM9 10.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path> </svg> </span> <span data-view-component="true" class="ActionListItem-label"> Security </span> </a> </li> <li hidden="hidden" data-menu-item="i6insights-tab" data-targets="action-list.items" role="none" data-view-component="true" class="ActionListItem"> <a tabindex="-1" id="item-baa675ae-f16a-49b7-b74c-fe105dcae07a" href="/keras-team/tf-keras/pulse" role="menuitem" data-view-component="true" class="ActionListContent ActionListContent--visual16"> <span class="ActionListItem-visual ActionListItem-visual--leading"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-graph"> <path d="M1.5 1.75V13.5h13.75a.75.75 0 0 1 0 1.5H.75a.75.75 0 0 1-.75-.75V1.75a.75.75 0 0 1 1.5 0Zm14.28 2.53-5.25 5.25a.75.75 0 0 1-1.06 0L7 7.06 4.28 9.78a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042l3.25-3.25a.75.75 0 0 1 1.06 0L10 7.94l4.72-4.72a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Z"></path> </svg> </span> <span data-view-component="true" class="ActionListItem-label"> Insights </span> </a> </li> </ul> </div></action-list> </div> </div></anchored-position> </focus-group> </action-menu></div> </nav> </div> <turbo-frame id="repo-content-turbo-frame" target="_top" data-turbo-action="advance" class=""> <div id="repo-content-pjax-container" class="repository-content " > <react-app app-name="react-code-view" initial-path="/keras-team/tf-keras/blob/v2.18.0/tf_keras/losses.py" style="display: block; min-height: calc(100vh - 64px);" data-attempted-ssr="true" data-ssr="true" data-lazy="false" data-alternate="false" data-data-router-enabled="false" > <script type="application/json" data-target="react-app.embeddedData">{"payload":{"allShortcutsEnabled":false,"fileTree":{"tf_keras":{"items":[{"name":"api","path":"tf_keras/api","contentType":"directory"},{"name":"applications","path":"tf_keras/applications","contentType":"directory"},{"name":"benchmarks","path":"tf_keras/benchmarks","contentType":"directory"},{"name":"datasets","path":"tf_keras/datasets","contentType":"directory"},{"name":"distribute","path":"tf_keras/distribute","contentType":"directory"},{"name":"dtensor","path":"tf_keras/dtensor","contentType":"directory"},{"name":"engine","path":"tf_keras/engine","contentType":"directory"},{"name":"estimator","path":"tf_keras/estimator","contentType":"directory"},{"name":"export","path":"tf_keras/export","contentType":"directory"},{"name":"feature_column","path":"tf_keras/feature_column","contentType":"directory"},{"name":"initializers","path":"tf_keras/initializers","contentType":"directory"},{"name":"integration_test","path":"tf_keras/integration_test","contentType":"directory"},{"name":"kokoro","path":"tf_keras/kokoro","contentType":"directory"},{"name":"layers","path":"tf_keras/layers","contentType":"directory"},{"name":"legacy_tf_layers","path":"tf_keras/legacy_tf_layers","contentType":"directory"},{"name":"metrics","path":"tf_keras/metrics","contentType":"directory"},{"name":"mixed_precision","path":"tf_keras/mixed_precision","contentType":"directory"},{"name":"models","path":"tf_keras/models","contentType":"directory"},{"name":"optimizers","path":"tf_keras/optimizers","contentType":"directory"},{"name":"premade_models","path":"tf_keras/premade_models","contentType":"directory"},{"name":"preprocessing","path":"tf_keras/preprocessing","contentType":"directory"},{"name":"protobuf","path":"tf_keras/protobuf","contentType":"directory"},{"name":"saving","path":"tf_keras/saving","contentType":"directory"},{"name":"testing_infra","path":"tf_keras/testing_infra","contentType":"directory"},{"name":"tests","path":"tf_keras/tests","contentType":"directory"},{"name":"tools","path":"tf_keras/tools","contentType":"directory"},{"name":"utils","path":"tf_keras/utils","contentType":"directory"},{"name":"BUILD","path":"tf_keras/BUILD","contentType":"file"},{"name":"__init__.py","path":"tf_keras/__init__.py","contentType":"file"},{"name":"activations.py","path":"tf_keras/activations.py","contentType":"file"},{"name":"activations_test.py","path":"tf_keras/activations_test.py","contentType":"file"},{"name":"backend.py","path":"tf_keras/backend.py","contentType":"file"},{"name":"backend_config.py","path":"tf_keras/backend_config.py","contentType":"file"},{"name":"backend_config_test.py","path":"tf_keras/backend_config_test.py","contentType":"file"},{"name":"backend_test.py","path":"tf_keras/backend_test.py","contentType":"file"},{"name":"callbacks.py","path":"tf_keras/callbacks.py","contentType":"file"},{"name":"callbacks_test.py","path":"tf_keras/callbacks_test.py","contentType":"file"},{"name":"callbacks_v1.py","path":"tf_keras/callbacks_v1.py","contentType":"file"},{"name":"callbacks_v1_test.py","path":"tf_keras/callbacks_v1_test.py","contentType":"file"},{"name":"constraints.py","path":"tf_keras/constraints.py","contentType":"file"},{"name":"constraints_test.py","path":"tf_keras/constraints_test.py","contentType":"file"},{"name":"losses.py","path":"tf_keras/losses.py","contentType":"file"},{"name":"losses_test.py","path":"tf_keras/losses_test.py","contentType":"file"},{"name":"opensource_only.files","path":"tf_keras/opensource_only.files","contentType":"file"},{"name":"regularizers.py","path":"tf_keras/regularizers.py","contentType":"file"},{"name":"regularizers_test.py","path":"tf_keras/regularizers_test.py","contentType":"file"},{"name":"tf_keras.bzl","path":"tf_keras/tf_keras.bzl","contentType":"file"}],"totalCount":47},"":{"items":[{"name":".devcontainer","path":".devcontainer","contentType":"directory"},{"name":".github","path":".github","contentType":"directory"},{"name":".vscode","path":".vscode","contentType":"directory"},{"name":"shell","path":"shell","contentType":"directory"},{"name":"tf_keras","path":"tf_keras","contentType":"directory"},{"name":"third_party","path":"third_party","contentType":"directory"},{"name":".bazelrc","path":".bazelrc","contentType":"file"},{"name":".bazelversion","path":".bazelversion","contentType":"file"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":"BUILD","path":"BUILD","contentType":"file"},{"name":"CONTRIBUTING.md","path":"CONTRIBUTING.md","contentType":"file"},{"name":"ISSUE_TEMPLATE.md","path":"ISSUE_TEMPLATE.md","contentType":"file"},{"name":"LICENSE","path":"LICENSE","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"},{"name":"SECURITY.md","path":"SECURITY.md","contentType":"file"},{"name":"WORKSPACE","path":"WORKSPACE","contentType":"file"},{"name":"oss_setup.py","path":"oss_setup.py","contentType":"file"},{"name":"pip_build.py","path":"pip_build.py","contentType":"file"},{"name":"requirements.txt","path":"requirements.txt","contentType":"file"},{"name":"setup.cfg","path":"setup.cfg","contentType":"file"}],"totalCount":20}},"fileTreeProcessingTime":20.729794,"foldersToFetch":[],"repo":{"id":686762574,"defaultBranch":"master","name":"tf-keras","ownerLogin":"keras-team","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2023-09-03T21:20:51.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/34455048?v=4","public":true,"private":false,"isOrgOwned":true},"codeLineWrapEnabled":false,"symbolsExpanded":false,"treeExpanded":true,"refInfo":{"name":"v2.18.0","listCacheKey":"v0:1741227372.0","canEdit":false,"refType":"tag","currentOid":"94def19c8d8602ab3403fb08314e3c433f1a4f12"},"path":"tf_keras/losses.py","currentUser":null,"blob":{"rawLines":["# Copyright 2015 The TensorFlow Authors. All Rights Reserved.","#","# Licensed under the Apache License, Version 2.0 (the \"License\");","# you may not use this file except in compliance with the License.","# You may obtain a copy of the License at","#","# http://www.apache.org/licenses/LICENSE-2.0","#","# Unless required by applicable law or agreed to in writing, software","# distributed under the License is distributed on an \"AS IS\" BASIS,","# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.","# See the License for the specific language governing permissions and","# limitations under the License.","# ==============================================================================","","\"\"\"Built-in loss functions.\"\"\"","","","import abc","import functools","import warnings","","import tensorflow.compat.v2 as tf","","from tf_keras import backend","from tf_keras.saving import saving_lib","from tf_keras.saving.legacy import serialization as legacy_serialization","from tf_keras.saving.serialization_lib import deserialize_keras_object","from tf_keras.saving.serialization_lib import serialize_keras_object","from tf_keras.utils import losses_utils","from tf_keras.utils import tf_utils","","# isort: off","from tensorflow.python.ops.ragged import ragged_map_ops","from tensorflow.python.ops.ragged import ragged_util","from tensorflow.python.util import dispatch","from tensorflow.python.util.tf_export import keras_export","from tensorflow.tools.docs import doc_controls","","","@keras_export(\"keras.losses.Loss\")","class Loss:"," \"\"\"Loss base class.",""," To be implemented by subclasses:"," * `call()`: Contains the logic for loss calculation using `y_true`,"," `y_pred`.",""," Example subclass implementation:",""," ```python"," class MeanSquaredError(Loss):",""," def call(self, y_true, y_pred):"," return tf.reduce_mean(tf.math.square(y_pred - y_true), axis=-1)"," ```",""," When using a Loss under a `tf.distribute.Strategy`, except passing it"," to `Model.compile()` for use by `Model.fit()`, please use reduction"," types 'SUM' or 'NONE', and reduce losses explicitly. Using 'AUTO' or"," 'SUM_OVER_BATCH_SIZE' will raise an error when calling the Loss object"," from a custom training loop or from user-defined code in `Layer.call()`."," Please see this custom training"," [tutorial](https://www.tensorflow.org/tutorials/distribute/custom_training)"," for more details on this."," \"\"\"",""," def __init__(self, reduction=losses_utils.ReductionV2.AUTO, name=None):"," \"\"\"Initializes `Loss` class.",""," Args:"," reduction: Type of `tf.keras.losses.Reduction` to apply to"," loss. Default value is `AUTO`. `AUTO` indicates that the"," reduction option will be determined by the usage context. For"," almost all cases this defaults to `SUM_OVER_BATCH_SIZE`. When"," used under a `tf.distribute.Strategy`, except via"," `Model.compile()` and `Model.fit()`, using `AUTO` or"," `SUM_OVER_BATCH_SIZE` will raise an error. Please see this"," custom training [tutorial]("," https://www.tensorflow.org/tutorials/distribute/custom_training)"," for more details."," name: Optional name for the instance."," \"\"\""," losses_utils.ReductionV2.validate(reduction)"," self.reduction = reduction"," self.name = name"," # SUM_OVER_BATCH is only allowed in losses managed by `fit` or"," # CannedEstimators."," self._allow_sum_over_batch_size = False"," self._set_name_scope()",""," def _set_name_scope(self):"," \"\"\"Creates a valid `name_scope` name.\"\"\""," if self.name is None:"," self._name_scope = self.__class__.__name__.strip(\"_\")"," elif self.name == \"\u003clambda\u003e\":"," self._name_scope = \"lambda\""," else:"," # E.g. '_my_loss' =\u003e 'my_loss'"," self._name_scope = self.name.strip(\"_\")",""," def __call__(self, y_true, y_pred, sample_weight=None):"," \"\"\"Invokes the `Loss` instance.",""," Args:"," y_true: Ground truth values. shape = `[batch_size, d0, .. dN]`,"," except sparse loss functions such as sparse categorical"," crossentropy where shape = `[batch_size, d0, .. dN-1]`"," y_pred: The predicted values. shape = `[batch_size, d0, .. dN]`"," sample_weight: Optional `sample_weight` acts as a coefficient for"," the loss. If a scalar is provided, then the loss is simply"," scaled by the given value. If `sample_weight` is a tensor of"," size `[batch_size]`, then the total loss for each sample of the"," batch is rescaled by the corresponding element in the"," `sample_weight` vector. If the shape of `sample_weight` is"," `[batch_size, d0, .. dN-1]` (or can be broadcasted to this"," shape), then each loss element of `y_pred` is scaled by the"," corresponding value of `sample_weight`. (Note on`dN-1`: all loss"," functions reduce by 1 dimension, usually axis=-1.)",""," Returns:"," Weighted loss float `Tensor`. If `reduction` is `NONE`, this has"," shape `[batch_size, d0, .. dN-1]`; otherwise, it is scalar."," (Note `dN-1` because all loss functions reduce by 1 dimension,"," usually axis=-1.)",""," Raises:"," ValueError: If the shape of `sample_weight` is invalid."," \"\"\""," # If we are wrapping a lambda function strip '\u003c\u003e' from the name as it is"," # not accepted in scope name."," graph_ctx = tf_utils.graph_context_for_symbolic_tensors("," y_true, y_pred, sample_weight"," )"," with backend.name_scope(self._name_scope), graph_ctx:"," if tf.executing_eagerly():"," call_fn = self.call"," else:"," call_fn = tf.__internal__.autograph.tf_convert("," self.call, tf.__internal__.autograph.control_status_ctx()"," )",""," losses = call_fn(y_true, y_pred)",""," in_mask = losses_utils.get_mask(y_pred)"," out_mask = losses_utils.get_mask(losses)",""," if in_mask is not None and out_mask is not None:"," mask = in_mask \u0026 out_mask"," elif in_mask is not None:"," mask = in_mask"," elif out_mask is not None:"," mask = out_mask"," else:"," mask = None",""," reduction = self._get_reduction()"," sample_weight = losses_utils.apply_valid_mask("," losses, sample_weight, mask, reduction"," )"," return losses_utils.compute_weighted_loss("," losses, sample_weight, reduction=reduction"," )",""," @classmethod"," def from_config(cls, config):"," \"\"\"Instantiates a `Loss` from its config (output of `get_config()`).",""," Args:"," config: Output of `get_config()`.",""," Returns:"," A `Loss` instance."," \"\"\""," return cls(**config)",""," def get_config(self):"," \"\"\"Returns the config dictionary for a `Loss` instance.\"\"\""," return {\"reduction\": self.reduction, \"name\": self.name}",""," @abc.abstractmethod"," @doc_controls.for_subclass_implementers"," def call(self, y_true, y_pred):"," \"\"\"Invokes the `Loss` instance.",""," Args:"," y_true: Ground truth values. shape = `[batch_size, d0, .. dN]`,"," except sparse loss functions such as sparse categorical"," crossentropy where shape = `[batch_size, d0, .. dN-1]`"," y_pred: The predicted values. shape = `[batch_size, d0, .. dN]`",""," Returns:"," Loss values with the shape `[batch_size, d0, .. dN-1]`."," \"\"\""," raise NotImplementedError(\"Must be implemented in subclasses.\")",""," def _get_reduction(self):"," \"\"\"Handles `AUTO` reduction cases and returns the reduction value.\"\"\""," if ("," not self._allow_sum_over_batch_size"," and tf.distribute.has_strategy()"," and ("," self.reduction == losses_utils.ReductionV2.AUTO"," or self.reduction"," == losses_utils.ReductionV2.SUM_OVER_BATCH_SIZE"," )"," ):"," raise ValueError("," \"Please use `tf.keras.losses.Reduction.SUM` or \""," \"`tf.keras.losses.Reduction.NONE` for loss reduction when \""," \"losses are used with `tf.distribute.Strategy`, \""," \"except for specifying losses in `Model.compile()` \""," \"for use by the built-in training looop `Model.fit()`.\\n\""," \"Please see https://www.tensorflow.org/tutorials\""," \"/distribute/custom_training for more details.\""," )",""," if self.reduction == losses_utils.ReductionV2.AUTO:"," return losses_utils.ReductionV2.SUM_OVER_BATCH_SIZE"," return self.reduction","","","@keras_export(\"keras.__internal__.losses.LossFunctionWrapper\", v1=[])","class LossFunctionWrapper(Loss):"," \"\"\"Wraps a loss function in the `Loss` class.\"\"\"",""," def __init__("," self, fn, reduction=losses_utils.ReductionV2.AUTO, name=None, **kwargs"," ):"," \"\"\"Initializes `LossFunctionWrapper` class.",""," Args:"," fn: The loss function to wrap, with signature `fn(y_true, y_pred,"," **kwargs)`."," reduction: Type of `tf.keras.losses.Reduction` to apply to"," loss. Default value is `AUTO`. `AUTO` indicates that the"," reduction option will be determined by the usage context. For"," almost all cases this defaults to `SUM_OVER_BATCH_SIZE`. When"," used under a `tf.distribute.Strategy`, except via"," `Model.compile()` and `Model.fit()`, using `AUTO` or"," `SUM_OVER_BATCH_SIZE` will raise an error. Please see this"," custom training [tutorial]("," https://www.tensorflow.org/tutorials/distribute/custom_training)"," for more details."," name: Optional name for the instance."," **kwargs: The keyword arguments that are passed on to `fn`."," \"\"\""," super().__init__(reduction=reduction, name=name)"," self.fn = fn"," self._fn_kwargs = kwargs",""," def call(self, y_true, y_pred):"," \"\"\"Invokes the `LossFunctionWrapper` instance.",""," Args:"," y_true: Ground truth values."," y_pred: The predicted values.",""," Returns:"," Loss values per sample."," \"\"\""," if tf.is_tensor(y_pred) and tf.is_tensor(y_true):"," y_pred, y_true = losses_utils.squeeze_or_expand_dimensions("," y_pred, y_true"," )",""," ag_fn = tf.__internal__.autograph.tf_convert("," self.fn, tf.__internal__.autograph.control_status_ctx()"," )"," return ag_fn(y_true, y_pred, **self._fn_kwargs)",""," def get_config(self):"," config = {}"," for k, v in self._fn_kwargs.items():"," config[k] = ("," backend.eval(v) if tf_utils.is_tensor_or_variable(v) else v"," )",""," if saving_lib.saving_v3_enabled():"," from tf_keras.utils import get_registered_name",""," config[\"fn\"] = get_registered_name(self.fn)",""," base_config = super().get_config()"," return dict(list(base_config.items()) + list(config.items()))",""," @classmethod"," def from_config(cls, config):"," \"\"\"Instantiates a `Loss` from its config (output of `get_config()`).",""," Args:"," config: Output of `get_config()`.",""," Returns:"," A `keras.losses.Loss` instance."," \"\"\""," if saving_lib.saving_v3_enabled():"," fn_name = config.pop(\"fn\", None)"," if fn_name and cls is LossFunctionWrapper:"," config[\"fn\"] = get(fn_name)"," return cls(**config)","","","@keras_export(\"keras.losses.MeanSquaredError\")","class MeanSquaredError(LossFunctionWrapper):"," \"\"\"Computes the mean of squares of errors between labels and predictions.",""," `loss = mean(square(y_true - y_pred))`",""," Standalone usage:",""," \u003e\u003e\u003e y_true = [[0., 1.], [0., 0.]]"," \u003e\u003e\u003e y_pred = [[1., 1.], [1., 0.]]"," \u003e\u003e\u003e # Using 'auto'/'sum_over_batch_size' reduction type."," \u003e\u003e\u003e mse = tf.keras.losses.MeanSquaredError()"," \u003e\u003e\u003e mse(y_true, y_pred).numpy()"," 0.5",""," \u003e\u003e\u003e # Calling with 'sample_weight'."," \u003e\u003e\u003e mse(y_true, y_pred, sample_weight=[0.7, 0.3]).numpy()"," 0.25",""," \u003e\u003e\u003e # Using 'sum' reduction type."," \u003e\u003e\u003e mse = tf.keras.losses.MeanSquaredError("," ... reduction=tf.keras.losses.Reduction.SUM)"," \u003e\u003e\u003e mse(y_true, y_pred).numpy()"," 1.0",""," \u003e\u003e\u003e # Using 'none' reduction type."," \u003e\u003e\u003e mse = tf.keras.losses.MeanSquaredError("," ... reduction=tf.keras.losses.Reduction.NONE)"," \u003e\u003e\u003e mse(y_true, y_pred).numpy()"," array([0.5, 0.5], dtype=float32)",""," Usage with the `compile()` API:",""," ```python"," model.compile(optimizer='sgd', loss=tf.keras.losses.MeanSquaredError())"," ```"," \"\"\"",""," def __init__("," self, reduction=losses_utils.ReductionV2.AUTO, name=\"mean_squared_error\""," ):"," \"\"\"Initializes `MeanSquaredError` instance.",""," Args:"," reduction: Type of `tf.keras.losses.Reduction` to apply to"," loss. Default value is `AUTO`. `AUTO` indicates that the"," reduction option will be determined by the usage context. For"," almost all cases this defaults to `SUM_OVER_BATCH_SIZE`. When"," used under a `tf.distribute.Strategy`, except via"," `Model.compile()` and `Model.fit()`, using `AUTO` or"," `SUM_OVER_BATCH_SIZE` will raise an error. Please see this"," custom training [tutorial]("," https://www.tensorflow.org/tutorials/distribute/custom_training)"," for more details."," name: Optional name for the instance. Defaults to"," 'mean_squared_error'."," \"\"\""," super().__init__(mean_squared_error, name=name, reduction=reduction)","","","@keras_export(\"keras.losses.MeanAbsoluteError\")","class MeanAbsoluteError(LossFunctionWrapper):"," \"\"\"Computes the mean of absolute difference between labels and predictions.",""," `loss = mean(abs(y_true - y_pred))`",""," Standalone usage:",""," \u003e\u003e\u003e y_true = [[0., 1.], [0., 0.]]"," \u003e\u003e\u003e y_pred = [[1., 1.], [1., 0.]]"," \u003e\u003e\u003e # Using 'auto'/'sum_over_batch_size' reduction type."," \u003e\u003e\u003e mae = tf.keras.losses.MeanAbsoluteError()"," \u003e\u003e\u003e mae(y_true, y_pred).numpy()"," 0.5",""," \u003e\u003e\u003e # Calling with 'sample_weight'."," \u003e\u003e\u003e mae(y_true, y_pred, sample_weight=[0.7, 0.3]).numpy()"," 0.25",""," \u003e\u003e\u003e # Using 'sum' reduction type."," \u003e\u003e\u003e mae = tf.keras.losses.MeanAbsoluteError("," ... reduction=tf.keras.losses.Reduction.SUM)"," \u003e\u003e\u003e mae(y_true, y_pred).numpy()"," 1.0",""," \u003e\u003e\u003e # Using 'none' reduction type."," \u003e\u003e\u003e mae = tf.keras.losses.MeanAbsoluteError("," ... reduction=tf.keras.losses.Reduction.NONE)"," \u003e\u003e\u003e mae(y_true, y_pred).numpy()"," array([0.5, 0.5], dtype=float32)",""," Usage with the `compile()` API:",""," ```python"," model.compile(optimizer='sgd', loss=tf.keras.losses.MeanAbsoluteError())"," ```"," \"\"\"",""," def __init__("," self,"," reduction=losses_utils.ReductionV2.AUTO,"," name=\"mean_absolute_error\","," ):"," \"\"\"Initializes `MeanAbsoluteError` instance.",""," Args:"," reduction: Type of `tf.keras.losses.Reduction` to apply to"," loss. Default value is `AUTO`. `AUTO` indicates that the"," reduction option will be determined by the usage context. For"," almost all cases this defaults to `SUM_OVER_BATCH_SIZE`. When"," used under a `tf.distribute.Strategy`, except via"," `Model.compile()` and `Model.fit()`, using `AUTO` or"," `SUM_OVER_BATCH_SIZE` will raise an error. Please see this"," custom training [tutorial]("," https://www.tensorflow.org/tutorials/distribute/custom_training)"," for more details."," name: Optional name for the instance. Defaults to"," 'mean_absolute_error'."," \"\"\""," super().__init__(mean_absolute_error, name=name, reduction=reduction)","","","@keras_export(\"keras.losses.MeanAbsolutePercentageError\")","class MeanAbsolutePercentageError(LossFunctionWrapper):"," \"\"\"Computes the mean absolute percentage error between `y_true` \u0026 `y_pred`.",""," Formula:",""," `loss = 100 * abs((y_true - y_pred) / y_true)`",""," Note that to avoid dividing by zero, a small epsilon value"," is added to the denominator.",""," Standalone usage:",""," \u003e\u003e\u003e y_true = [[2., 1.], [2., 3.]]"," \u003e\u003e\u003e y_pred = [[1., 1.], [1., 0.]]"," \u003e\u003e\u003e # Using 'auto'/'sum_over_batch_size' reduction type."," \u003e\u003e\u003e mape = tf.keras.losses.MeanAbsolutePercentageError()"," \u003e\u003e\u003e mape(y_true, y_pred).numpy()"," 50.",""," \u003e\u003e\u003e # Calling with 'sample_weight'."," \u003e\u003e\u003e mape(y_true, y_pred, sample_weight=[0.7, 0.3]).numpy()"," 20.",""," \u003e\u003e\u003e # Using 'sum' reduction type."," \u003e\u003e\u003e mape = tf.keras.losses.MeanAbsolutePercentageError("," ... reduction=tf.keras.losses.Reduction.SUM)"," \u003e\u003e\u003e mape(y_true, y_pred).numpy()"," 100.",""," \u003e\u003e\u003e # Using 'none' reduction type."," \u003e\u003e\u003e mape = tf.keras.losses.MeanAbsolutePercentageError("," ... reduction=tf.keras.losses.Reduction.NONE)"," \u003e\u003e\u003e mape(y_true, y_pred).numpy()"," array([25., 75.], dtype=float32)",""," Usage with the `compile()` API:",""," ```python"," model.compile(optimizer='sgd',"," loss=tf.keras.losses.MeanAbsolutePercentageError())"," ```"," \"\"\"",""," def __init__("," self,"," reduction=losses_utils.ReductionV2.AUTO,"," name=\"mean_absolute_percentage_error\","," ):"," \"\"\"Initializes `MeanAbsolutePercentageError` instance.",""," Args:"," reduction: Type of `tf.keras.losses.Reduction` to apply to"," loss. Default value is `AUTO`. `AUTO` indicates that the"," reduction option will be determined by the usage context. For"," almost all cases this defaults to `SUM_OVER_BATCH_SIZE`. When"," used under a `tf.distribute.Strategy`, except via"," `Model.compile()` and `Model.fit()`, using `AUTO` or"," `SUM_OVER_BATCH_SIZE` will raise an error. Please see this"," custom training [tutorial]("," https://www.tensorflow.org/tutorials/distribute/custom_training)"," for more details."," name: Optional name for the instance. Defaults to"," 'mean_absolute_percentage_error'."," \"\"\""," super().__init__("," mean_absolute_percentage_error, name=name, reduction=reduction"," )","","","@keras_export(\"keras.losses.MeanSquaredLogarithmicError\")","class MeanSquaredLogarithmicError(LossFunctionWrapper):"," \"\"\"Computes the mean squared logarithmic error between `y_true` \u0026 `y_pred`.",""," `loss = square(log(y_true + 1.) - log(y_pred + 1.))`",""," Standalone usage:",""," \u003e\u003e\u003e y_true = [[0., 1.], [0., 0.]]"," \u003e\u003e\u003e y_pred = [[1., 1.], [1., 0.]]"," \u003e\u003e\u003e # Using 'auto'/'sum_over_batch_size' reduction type."," \u003e\u003e\u003e msle = tf.keras.losses.MeanSquaredLogarithmicError()"," \u003e\u003e\u003e msle(y_true, y_pred).numpy()"," 0.240",""," \u003e\u003e\u003e # Calling with 'sample_weight'."," \u003e\u003e\u003e msle(y_true, y_pred, sample_weight=[0.7, 0.3]).numpy()"," 0.120",""," \u003e\u003e\u003e # Using 'sum' reduction type."," \u003e\u003e\u003e msle = tf.keras.losses.MeanSquaredLogarithmicError("," ... reduction=tf.keras.losses.Reduction.SUM)"," \u003e\u003e\u003e msle(y_true, y_pred).numpy()"," 0.480",""," \u003e\u003e\u003e # Using 'none' reduction type."," \u003e\u003e\u003e msle = tf.keras.losses.MeanSquaredLogarithmicError("," ... reduction=tf.keras.losses.Reduction.NONE)"," \u003e\u003e\u003e msle(y_true, y_pred).numpy()"," array([0.240, 0.240], dtype=float32)",""," Usage with the `compile()` API:",""," ```python"," model.compile(optimizer='sgd',"," loss=tf.keras.losses.MeanSquaredLogarithmicError())"," ```"," \"\"\"",""," def __init__("," self,"," reduction=losses_utils.ReductionV2.AUTO,"," name=\"mean_squared_logarithmic_error\","," ):"," \"\"\"Initializes `MeanSquaredLogarithmicError` instance.",""," Args:"," reduction: Type of `tf.keras.losses.Reduction` to apply to"," loss. Default value is `AUTO`. `AUTO` indicates that the"," reduction option will be determined by the usage context. For"," almost all cases this defaults to `SUM_OVER_BATCH_SIZE`. When"," used under a `tf.distribute.Strategy`, except via"," `Model.compile()` and `Model.fit()`, using `AUTO` or"," `SUM_OVER_BATCH_SIZE` will raise an error. Please see this"," custom training [tutorial]("," https://www.tensorflow.org/tutorials/distribute/custom_training)"," for more details."," name: Optional name for the instance. Defaults to"," 'mean_squared_logarithmic_error'."," \"\"\""," super().__init__("," mean_squared_logarithmic_error, name=name, reduction=reduction"," )","","","@keras_export(\"keras.losses.BinaryCrossentropy\")","class BinaryCrossentropy(LossFunctionWrapper):"," \"\"\"Computes the cross-entropy loss between true labels and predicted labels.",""," Use this cross-entropy loss for binary (0 or 1) classification applications."," The loss function requires the following inputs:",""," - `y_true` (true label): This is either 0 or 1."," - `y_pred` (predicted value): This is the model's prediction, i.e, a single"," floating-point value which either represents a"," [logit](https://en.wikipedia.org/wiki/Logit), (i.e, value in [-inf, inf]"," when `from_logits=True`) or a probability (i.e, value in [0., 1.] when"," `from_logits=False`).",""," **Recommended Usage:** (set `from_logits=True`)",""," With `tf.keras` API:",""," ```python"," model.compile("," loss=tf.keras.losses.BinaryCrossentropy(from_logits=True),"," ...."," )"," ```",""," As a standalone function:",""," \u003e\u003e\u003e # Example 1: (batch_size = 1, number of samples = 4)"," \u003e\u003e\u003e y_true = [0, 1, 0, 0]"," \u003e\u003e\u003e y_pred = [-18.6, 0.51, 2.94, -12.8]"," \u003e\u003e\u003e bce = tf.keras.losses.BinaryCrossentropy(from_logits=True)"," \u003e\u003e\u003e bce(y_true, y_pred).numpy()"," 0.865",""," \u003e\u003e\u003e # Example 2: (batch_size = 2, number of samples = 4)"," \u003e\u003e\u003e y_true = [[0, 1], [0, 0]]"," \u003e\u003e\u003e y_pred = [[-18.6, 0.51], [2.94, -12.8]]"," \u003e\u003e\u003e # Using default 'auto'/'sum_over_batch_size' reduction type."," \u003e\u003e\u003e bce = tf.keras.losses.BinaryCrossentropy(from_logits=True)"," \u003e\u003e\u003e bce(y_true, y_pred).numpy()"," 0.865"," \u003e\u003e\u003e # Using 'sample_weight' attribute"," \u003e\u003e\u003e bce(y_true, y_pred, sample_weight=[0.8, 0.2]).numpy()"," 0.243"," \u003e\u003e\u003e # Using 'sum' reduction` type."," \u003e\u003e\u003e bce = tf.keras.losses.BinaryCrossentropy(from_logits=True,"," ... reduction=tf.keras.losses.Reduction.SUM)"," \u003e\u003e\u003e bce(y_true, y_pred).numpy()"," 1.730"," \u003e\u003e\u003e # Using 'none' reduction type."," \u003e\u003e\u003e bce = tf.keras.losses.BinaryCrossentropy(from_logits=True,"," ... reduction=tf.keras.losses.Reduction.NONE)"," \u003e\u003e\u003e bce(y_true, y_pred).numpy()"," array([0.235, 1.496], dtype=float32)",""," **Default Usage:** (set `from_logits=False`)",""," \u003e\u003e\u003e # Make the following updates to the above \"Recommended Usage\" section"," \u003e\u003e\u003e # 1. Set `from_logits=False`"," \u003e\u003e\u003e tf.keras.losses.BinaryCrossentropy() # OR ...('from_logits=False')"," \u003e\u003e\u003e # 2. Update `y_pred` to use probabilities instead of logits"," \u003e\u003e\u003e y_pred = [0.6, 0.3, 0.2, 0.8] # OR [[0.6, 0.3], [0.2, 0.8]]"," \"\"\"",""," def __init__("," self,"," from_logits=False,"," label_smoothing=0.0,"," axis=-1,"," reduction=losses_utils.ReductionV2.AUTO,"," name=\"binary_crossentropy\","," ):"," \"\"\"Initializes `BinaryCrossentropy` instance.",""," Args:"," from_logits: Whether to interpret `y_pred` as a tensor of"," [logit](https://en.wikipedia.org/wiki/Logit) values. By default,"," we assume that `y_pred` contains probabilities (i.e., values in"," [0, 1])."," label_smoothing: Float in [0, 1]. When 0, no smoothing occurs."," When \u003e 0, we compute the loss between the predicted labels and a"," smoothed version of the true labels, where the smoothing"," squeezes the labels towards 0.5. Larger values of"," `label_smoothing` correspond to heavier smoothing."," axis: The axis along which to compute crossentropy (the features"," axis). Defaults to -1."," reduction: Type of `tf.keras.losses.Reduction` to apply to"," loss. Default value is `AUTO`. `AUTO` indicates that the"," reduction option will be determined by the usage context. For"," almost all cases this defaults to `SUM_OVER_BATCH_SIZE`. When"," used under a `tf.distribute.Strategy`, except via"," `Model.compile()` and `Model.fit()`, using `AUTO` or"," `SUM_OVER_BATCH_SIZE` will raise an error. Please see this"," custom training [tutorial]("," https://www.tensorflow.org/tutorials/distribute/custom_training)"," for more details."," name: Name for the op. Defaults to 'binary_crossentropy'."," \"\"\""," super().__init__("," binary_crossentropy,"," name=name,"," reduction=reduction,"," from_logits=from_logits,"," label_smoothing=label_smoothing,"," axis=axis,"," )"," self.from_logits = from_logits","","","@keras_export(\"keras.losses.BinaryFocalCrossentropy\")","class BinaryFocalCrossentropy(LossFunctionWrapper):"," \"\"\"Computes focal cross-entropy loss between true labels and predictions.",""," Binary cross-entropy loss is often used for binary (0 or 1) classification"," tasks. The loss function requires the following inputs:",""," - `y_true` (true label): This is either 0 or 1."," - `y_pred` (predicted value): This is the model's prediction, i.e, a single"," floating-point value which either represents a"," [logit](https://en.wikipedia.org/wiki/Logit), (i.e, value in [-inf, inf]"," when `from_logits=True`) or a probability (i.e, value in [0., 1.] when"," `from_logits=False`).",""," According to [Lin et al., 2018](https://arxiv.org/pdf/1708.02002.pdf), it"," helps to apply a \"focal factor\" to down-weight easy examples and focus more"," on hard examples. By default, the focal tensor is computed as follows:",""," `focal_factor = (1 - output) ** gamma` for class 1"," `focal_factor = output ** gamma` for class 0"," where `gamma` is a focusing parameter. When `gamma=0`, this function is"," equivalent to the binary crossentropy loss.",""," With the `compile()` API:",""," ```python"," model.compile("," loss=tf.keras.losses.BinaryFocalCrossentropy(gamma=2.0, from_logits=True),"," ...."," )"," ```",""," As a standalone function:",""," \u003e\u003e\u003e # Example 1: (batch_size = 1, number of samples = 4)"," \u003e\u003e\u003e y_true = [0, 1, 0, 0]"," \u003e\u003e\u003e y_pred = [-18.6, 0.51, 2.94, -12.8]"," \u003e\u003e\u003e loss = tf.keras.losses.BinaryFocalCrossentropy(gamma=2,"," ... from_logits=True)"," \u003e\u003e\u003e loss(y_true, y_pred).numpy()"," 0.691",""," \u003e\u003e\u003e # Apply class weight"," \u003e\u003e\u003e loss = tf.keras.losses.BinaryFocalCrossentropy("," ... apply_class_balancing=True, gamma=2, from_logits=True)"," \u003e\u003e\u003e loss(y_true, y_pred).numpy()"," 0.51",""," \u003e\u003e\u003e # Example 2: (batch_size = 2, number of samples = 4)"," \u003e\u003e\u003e y_true = [[0, 1], [0, 0]]"," \u003e\u003e\u003e y_pred = [[-18.6, 0.51], [2.94, -12.8]]"," \u003e\u003e\u003e # Using default 'auto'/'sum_over_batch_size' reduction type."," \u003e\u003e\u003e loss = tf.keras.losses.BinaryFocalCrossentropy(gamma=3,"," ... from_logits=True)"," \u003e\u003e\u003e loss(y_true, y_pred).numpy()"," 0.647",""," \u003e\u003e\u003e # Apply class weight"," \u003e\u003e\u003e loss = tf.keras.losses.BinaryFocalCrossentropy("," ... apply_class_balancing=True, gamma=3, from_logits=True)"," \u003e\u003e\u003e loss(y_true, y_pred).numpy()"," 0.482",""," \u003e\u003e\u003e # Using 'sample_weight' attribute with focal effect"," \u003e\u003e\u003e loss = tf.keras.losses.BinaryFocalCrossentropy(gamma=3,"," ... from_logits=True)"," \u003e\u003e\u003e loss(y_true, y_pred, sample_weight=[0.8, 0.2]).numpy()"," 0.133",""," \u003e\u003e\u003e # Apply class weight"," \u003e\u003e\u003e loss = tf.keras.losses.BinaryFocalCrossentropy("," ... apply_class_balancing=True, gamma=3, from_logits=True)"," \u003e\u003e\u003e loss(y_true, y_pred, sample_weight=[0.8, 0.2]).numpy()"," 0.097",""," \u003e\u003e\u003e # Using 'sum' reduction` type."," \u003e\u003e\u003e loss = tf.keras.losses.BinaryFocalCrossentropy(gamma=4,"," ... from_logits=True,"," ... reduction=tf.keras.losses.Reduction.SUM)"," \u003e\u003e\u003e loss(y_true, y_pred).numpy()"," 1.222",""," \u003e\u003e\u003e # Apply class weight"," \u003e\u003e\u003e loss = tf.keras.losses.BinaryFocalCrossentropy("," ... apply_class_balancing=True, gamma=4, from_logits=True,"," ... reduction=tf.keras.losses.Reduction.SUM)"," \u003e\u003e\u003e loss(y_true, y_pred).numpy()"," 0.914",""," \u003e\u003e\u003e # Using 'none' reduction type."," \u003e\u003e\u003e loss = tf.keras.losses.BinaryFocalCrossentropy("," ... gamma=5, from_logits=True,"," ... reduction=tf.keras.losses.Reduction.NONE)"," \u003e\u003e\u003e loss(y_true, y_pred).numpy()"," array([0.0017 1.1561], dtype=float32)",""," \u003e\u003e\u003e # Apply class weight"," \u003e\u003e\u003e loss = tf.keras.losses.BinaryFocalCrossentropy("," ... apply_class_balancing=True, gamma=5, from_logits=True,"," ... reduction=tf.keras.losses.Reduction.NONE)"," \u003e\u003e\u003e loss(y_true, y_pred).numpy()"," array([0.0004 0.8670], dtype=float32)","",""," Args:"," apply_class_balancing: A bool, whether to apply weight balancing on the"," binary classes 0 and 1."," alpha: A weight balancing factor for class 1, default is `0.25` as"," mentioned in reference [Lin et al., 2018]("," https://arxiv.org/pdf/1708.02002.pdf). The weight for class 0 is"," `1.0 - alpha`."," gamma: A focusing parameter used to compute the focal factor, default is"," `2.0` as mentioned in the reference"," [Lin et al., 2018](https://arxiv.org/pdf/1708.02002.pdf)."," from_logits: Whether to interpret `y_pred` as a tensor of"," [logit](https://en.wikipedia.org/wiki/Logit) values. By default, we"," assume that `y_pred` are probabilities (i.e., values in `[0, 1]`)."," label_smoothing: Float in `[0, 1]`. When `0`, no smoothing occurs."," When \u003e `0`, we compute the loss between the predicted labels and a"," smoothed version of the true labels, where the smoothing squeezes"," the labels towards `0.5`. Larger values of `label_smoothing`"," correspond to heavier smoothing."," axis: The axis along which to compute crossentropy (the features axis)."," Defaults to `-1`."," reduction: Type of `tf.keras.losses.Reduction` to apply to"," loss. Default value is `AUTO`. `AUTO` indicates that the reduction"," option will be determined by the usage context. For almost all cases"," this defaults to `SUM_OVER_BATCH_SIZE`. When used under a"," `tf.distribute.Strategy`, except via `Model.compile()` and"," `Model.fit()`, using `AUTO` or `SUM_OVER_BATCH_SIZE`"," will raise an error. Please see this custom training [tutorial]("," https://www.tensorflow.org/tutorials/distribute/custom_training)"," for more details."," name: Name for the op. Defaults to 'binary_focal_crossentropy'."," \"\"\"",""," def __init__("," self,"," apply_class_balancing=False,"," alpha=0.25,"," gamma=2.0,"," from_logits=False,"," label_smoothing=0.0,"," axis=-1,"," reduction=losses_utils.ReductionV2.AUTO,"," name=\"binary_focal_crossentropy\","," ):"," \"\"\"Initializes `BinaryFocalCrossentropy` instance.\"\"\""," super().__init__("," binary_focal_crossentropy,"," apply_class_balancing=apply_class_balancing,"," alpha=alpha,"," gamma=gamma,"," name=name,"," reduction=reduction,"," from_logits=from_logits,"," label_smoothing=label_smoothing,"," axis=axis,"," )"," self.from_logits = from_logits"," self.apply_class_balancing = apply_class_balancing"," self.alpha = alpha"," self.gamma = gamma",""," def get_config(self):"," config = {"," \"apply_class_balancing\": self.apply_class_balancing,"," \"alpha\": self.alpha,"," \"gamma\": self.gamma,"," }"," base_config = super().get_config()"," return dict(list(base_config.items()) + list(config.items()))","","","@keras_export(\"keras.losses.CategoricalCrossentropy\")","class CategoricalCrossentropy(LossFunctionWrapper):"," \"\"\"Computes the crossentropy loss between the labels and predictions.",""," Use this crossentropy loss function when there are two or more label"," classes. We expect labels to be provided in a `one_hot` representation. If"," you want to provide labels as integers, please use"," `SparseCategoricalCrossentropy` loss. There should be `# classes` floating"," point values per feature.",""," In the snippet below, there is `# classes` floating pointing values per"," example. The shape of both `y_pred` and `y_true` are"," `[batch_size, num_classes]`.",""," Standalone usage:",""," \u003e\u003e\u003e y_true = [[0, 1, 0], [0, 0, 1]]"," \u003e\u003e\u003e y_pred = [[0.05, 0.95, 0], [0.1, 0.8, 0.1]]"," \u003e\u003e\u003e # Using 'auto'/'sum_over_batch_size' reduction type."," \u003e\u003e\u003e cce = tf.keras.losses.CategoricalCrossentropy()"," \u003e\u003e\u003e cce(y_true, y_pred).numpy()"," 1.177",""," \u003e\u003e\u003e # Calling with 'sample_weight'."," \u003e\u003e\u003e cce(y_true, y_pred, sample_weight=tf.constant([0.3, 0.7])).numpy()"," 0.814",""," \u003e\u003e\u003e # Using 'sum' reduction type."," \u003e\u003e\u003e cce = tf.keras.losses.CategoricalCrossentropy("," ... reduction=tf.keras.losses.Reduction.SUM)"," \u003e\u003e\u003e cce(y_true, y_pred).numpy()"," 2.354",""," \u003e\u003e\u003e # Using 'none' reduction type."," \u003e\u003e\u003e cce = tf.keras.losses.CategoricalCrossentropy("," ... reduction=tf.keras.losses.Reduction.NONE)"," \u003e\u003e\u003e cce(y_true, y_pred).numpy()"," array([0.0513, 2.303], dtype=float32)",""," Usage with the `compile()` API:",""," ```python"," model.compile(optimizer='sgd',"," loss=tf.keras.losses.CategoricalCrossentropy())"," ```"," \"\"\"",""," def __init__("," self,"," from_logits=False,"," label_smoothing=0.0,"," axis=-1,"," reduction=losses_utils.ReductionV2.AUTO,"," name=\"categorical_crossentropy\","," ):"," \"\"\"Initializes `CategoricalCrossentropy` instance.",""," Args:"," from_logits: Whether `y_pred` is expected to be a logits tensor. By"," default, we assume that `y_pred` encodes a probability"," distribution."," label_smoothing: Float in [0, 1]. When \u003e 0, label values are"," smoothed, meaning the confidence on label values are relaxed."," For example, if `0.1`, use `0.1 / num_classes` for non-target"," labels and `0.9 + 0.1 / num_classes` for target labels."," axis: The axis along which to compute crossentropy (the features"," axis). Defaults to -1."," reduction: Type of `tf.keras.losses.Reduction` to apply to loss."," Default value is `AUTO`. `AUTO` indicates that the reduction"," option will be determined by the usage context. For almost all"," cases this defaults to `SUM_OVER_BATCH_SIZE`. When used under a"," `tf.distribute.Strategy`, except via `Model.compile()` and"," `Model.fit()`, using `AUTO` or `SUM_OVER_BATCH_SIZE`"," will raise an error. Please see this custom training [tutorial]("," https://www.tensorflow.org/tutorials/distribute/custom_training)"," for more details."," name: Optional name for the instance."," Defaults to 'categorical_crossentropy'."," \"\"\""," super().__init__("," categorical_crossentropy,"," name=name,"," reduction=reduction,"," from_logits=from_logits,"," label_smoothing=label_smoothing,"," axis=axis,"," )","","","@keras_export(\"keras.losses.CategoricalFocalCrossentropy\")","class CategoricalFocalCrossentropy(LossFunctionWrapper):"," \"\"\"Computes the alpha balanced focal crossentropy loss.",""," Use this crossentropy loss function when there are two or more label"," classes and if you want to handle class imbalance without using"," `class_weights`. We expect labels to be provided in a `one_hot`"," representation.",""," According to [Lin et al., 2018](https://arxiv.org/pdf/1708.02002.pdf), it"," helps to apply a focal factor to down-weight easy examples and focus more on"," hard examples. The general formula for the focal loss (FL)"," is as follows:",""," `FL(p_t) = (1 − p_t)^gamma * log(p_t)`",""," where `p_t` is defined as follows:"," `p_t = output if y_true == 1, else 1 - output`",""," `(1 − p_t)^gamma` is the `modulating_factor`, where `gamma` is a focusing"," parameter. When `gamma` = 0, there is no focal effect on the cross entropy."," `gamma` reduces the importance given to simple examples in a smooth manner.",""," The authors use alpha-balanced variant of focal loss (FL) in the paper:"," `FL(p_t) = −alpha * (1 − p_t)^gamma * log(p_t)`",""," where `alpha` is the weight factor for the classes. If `alpha` = 1, the"," loss won't be able to handle class imbalance properly as all"," classes will have the same weight. This can be a constant or a list of"," constants. If alpha is a list, it must have the same length as the number"," of classes.",""," The formula above can be generalized to:"," `FL(p_t) = alpha * (1 − p_t)^gamma * CrossEntropy(y_true, y_pred)`",""," where minus comes from `CrossEntropy(y_true, y_pred)` (CE).",""," Extending this to multi-class case is straightforward:"," `FL(p_t) = alpha * (1 − p_t)^gamma * CategoricalCE(y_true, y_pred)`",""," In the snippet below, there is `# classes` floating pointing values per"," example. The shape of both `y_pred` and `y_true` are"," `[batch_size, num_classes]`.",""," Standalone usage:",""," \u003e\u003e\u003e y_true = [[0., 1., 0.], [0., 0., 1.]]"," \u003e\u003e\u003e y_pred = [[0.05, 0.95, 0], [0.1, 0.8, 0.1]]"," \u003e\u003e\u003e # Using 'auto'/'sum_over_batch_size' reduction type."," \u003e\u003e\u003e cce = tf.keras.losses.CategoricalFocalCrossentropy()"," \u003e\u003e\u003e cce(y_true, y_pred).numpy()"," 0.23315276",""," \u003e\u003e\u003e # Calling with 'sample_weight'."," \u003e\u003e\u003e cce(y_true, y_pred, sample_weight=tf.constant([0.3, 0.7])).numpy()"," 0.1632",""," \u003e\u003e\u003e # Using 'sum' reduction type."," \u003e\u003e\u003e cce = tf.keras.losses.CategoricalFocalCrossentropy("," ... reduction=tf.keras.losses.Reduction.SUM)"," \u003e\u003e\u003e cce(y_true, y_pred).numpy()"," 0.46631",""," \u003e\u003e\u003e # Using 'none' reduction type."," \u003e\u003e\u003e cce = tf.keras.losses.CategoricalFocalCrossentropy("," ... reduction=tf.keras.losses.Reduction.NONE)"," \u003e\u003e\u003e cce(y_true, y_pred).numpy()"," array([3.2058331e-05, 4.6627346e-01], dtype=float32)",""," Usage with the `compile()` API:"," ```python"," model.compile(optimizer='adam',"," loss=tf.keras.losses.CategoricalFocalCrossentropy())"," ```",""," Args:"," alpha: A weight balancing factor for all classes, default is `0.25` as"," mentioned in the reference. It can be a list of floats or a scalar."," In the multi-class case, alpha may be set by inverse class"," frequency by using `compute_class_weight` from `sklearn.utils`."," gamma: A focusing parameter, default is `2.0` as mentioned in the"," reference. It helps to gradually reduce the importance given to"," simple (easy) examples in a smooth manner."," from_logits: Whether `output` is expected to be a logits tensor. By"," default, we consider that `output` encodes a probability"," distribution."," label_smoothing: Float in [0, 1]. When \u003e 0, label values are smoothed,"," meaning the confidence on label values are relaxed. For example, if"," `0.1`, use `0.1 / num_classes` for non-target labels and"," `0.9 + 0.1 / num_classes` for target labels."," axis: The axis along which to compute crossentropy (the features"," axis). Defaults to -1."," reduction: Type of `tf.keras.losses.Reduction` to apply to"," loss. Default value is `AUTO`. `AUTO` indicates that the reduction"," option will be determined by the usage context. For almost all cases"," this defaults to `SUM_OVER_BATCH_SIZE`. When used under a"," `tf.distribute.Strategy`, except via `Model.compile()` and"," `Model.fit()`, using `AUTO` or `SUM_OVER_BATCH_SIZE`"," will raise an error. Please see this custom training [tutorial]("," https://www.tensorflow.org/tutorials/distribute/custom_training)"," for more details."," name: Optional name for the instance."," Defaults to 'categorical_focal_crossentropy'.",""," \"\"\"",""," def __init__("," self,"," alpha=0.25,"," gamma=2.0,"," from_logits=False,"," label_smoothing=0.0,"," axis=-1,"," reduction=losses_utils.ReductionV2.AUTO,"," name=\"categorical_focal_crossentropy\","," ):"," \"\"\"Initializes `CategoricalFocalCrossentropy` instance.\"\"\""," super().__init__("," categorical_focal_crossentropy,"," alpha=alpha,"," gamma=gamma,"," name=name,"," reduction=reduction,"," from_logits=from_logits,"," label_smoothing=label_smoothing,"," axis=axis,"," )"," self.from_logits = from_logits"," self.alpha = alpha"," self.gamma = gamma",""," def get_config(self):"," config = {"," \"alpha\": self.alpha,"," \"gamma\": self.gamma,"," }"," base_config = super().get_config()"," return dict(list(base_config.items()) + list(config.items()))","","","@keras_export(\"keras.losses.SparseCategoricalCrossentropy\")","class SparseCategoricalCrossentropy(LossFunctionWrapper):"," \"\"\"Computes the crossentropy loss between the labels and predictions.",""," Use this crossentropy loss function when there are two or more label"," classes. We expect labels to be provided as integers. If you want to"," provide labels using `one-hot` representation, please use"," `CategoricalCrossentropy` loss. There should be `# classes` floating point"," values per feature for `y_pred` and a single floating point value per"," feature for `y_true`.",""," In the snippet below, there is a single floating point value per example for"," `y_true` and `# classes` floating pointing values per example for `y_pred`."," The shape of `y_true` is `[batch_size]` and the shape of `y_pred` is"," `[batch_size, num_classes]`.",""," Standalone usage:",""," \u003e\u003e\u003e y_true = [1, 2]"," \u003e\u003e\u003e y_pred = [[0.05, 0.95, 0], [0.1, 0.8, 0.1]]"," \u003e\u003e\u003e # Using 'auto'/'sum_over_batch_size' reduction type."," \u003e\u003e\u003e scce = tf.keras.losses.SparseCategoricalCrossentropy()"," \u003e\u003e\u003e scce(y_true, y_pred).numpy()"," 1.177",""," \u003e\u003e\u003e # Calling with 'sample_weight'."," \u003e\u003e\u003e scce(y_true, y_pred, sample_weight=tf.constant([0.3, 0.7])).numpy()"," 0.814",""," \u003e\u003e\u003e # Using 'sum' reduction type."," \u003e\u003e\u003e scce = tf.keras.losses.SparseCategoricalCrossentropy("," ... reduction=tf.keras.losses.Reduction.SUM)"," \u003e\u003e\u003e scce(y_true, y_pred).numpy()"," 2.354",""," \u003e\u003e\u003e # Using 'none' reduction type."," \u003e\u003e\u003e scce = tf.keras.losses.SparseCategoricalCrossentropy("," ... reduction=tf.keras.losses.Reduction.NONE)"," \u003e\u003e\u003e scce(y_true, y_pred).numpy()"," array([0.0513, 2.303], dtype=float32)",""," Usage with the `compile()` API:",""," ```python"," model.compile(optimizer='sgd',"," loss=tf.keras.losses.SparseCategoricalCrossentropy())"," ```"," \"\"\"",""," def __init__("," self,"," from_logits=False,"," ignore_class=None,"," reduction=losses_utils.ReductionV2.AUTO,"," name=\"sparse_categorical_crossentropy\","," ):"," \"\"\"Initializes `SparseCategoricalCrossentropy` instance.",""," Args:"," from_logits: Whether `y_pred` is expected to be a logits tensor. By"," default, we assume that `y_pred` encodes a probability"," distribution."," ignore_class: Optional integer. The ID of a class to be ignored"," during loss computation. This is useful, for example, in"," segmentation problems featuring a \"void\" class (commonly -1 or"," 255) in segmentation maps."," By default (`ignore_class=None`), all classes are considered."," reduction: Type of `tf.keras.losses.Reduction` to apply to"," loss. Default value is `AUTO`. `AUTO` indicates that the"," reduction ption will be determined by the usage context. For"," almost all cases this defaults to `SUM_OVER_BATCH_SIZE`. When"," used under a `tf.distribute.Strategy`, except via"," `Model.compile()` and `Model.fit()`, using `AUTO` or"," `SUM_OVER_BATCH_SIZE` will raise an error. Please see this"," custom training [tutorial]("," https://www.tensorflow.org/tutorials/distribute/custom_training)"," for more details."," name: Optional name for the instance."," Defaults to 'sparse_categorical_crossentropy'."," \"\"\""," super().__init__("," sparse_categorical_crossentropy,"," name=name,"," reduction=reduction,"," from_logits=from_logits,"," ignore_class=ignore_class,"," )","","","@keras_export(\"keras.losses.CosineSimilarity\")","class CosineSimilarity(LossFunctionWrapper):"," \"\"\"Computes the cosine similarity between labels and predictions.",""," Note that it is a number between -1 and 1. When it is a negative number"," between -1 and 0, 0 indicates orthogonality and values closer to -1"," indicate greater similarity. The values closer to 1 indicate greater"," dissimilarity. This makes it usable as a loss function in a setting"," where you try to maximize the proximity between predictions and targets."," If either `y_true` or `y_pred` is a zero vector, cosine similarity will be 0"," regardless of the proximity between predictions and targets.",""," `loss = -sum(l2_norm(y_true) * l2_norm(y_pred))`",""," Standalone usage:",""," \u003e\u003e\u003e y_true = [[0., 1.], [1., 1.]]"," \u003e\u003e\u003e y_pred = [[1., 0.], [1., 1.]]"," \u003e\u003e\u003e # Using 'auto'/'sum_over_batch_size' reduction type."," \u003e\u003e\u003e cosine_loss = tf.keras.losses.CosineSimilarity(axis=1)"," \u003e\u003e\u003e # l2_norm(y_true) = [[0., 1.], [1./1.414, 1./1.414]]"," \u003e\u003e\u003e # l2_norm(y_pred) = [[1., 0.], [1./1.414, 1./1.414]]"," \u003e\u003e\u003e # l2_norm(y_true) . l2_norm(y_pred) = [[0., 0.], [0.5, 0.5]]"," \u003e\u003e\u003e # loss = mean(sum(l2_norm(y_true) . l2_norm(y_pred), axis=1))"," \u003e\u003e\u003e # = -((0. + 0.) + (0.5 + 0.5)) / 2"," \u003e\u003e\u003e cosine_loss(y_true, y_pred).numpy()"," -0.5",""," \u003e\u003e\u003e # Calling with 'sample_weight'."," \u003e\u003e\u003e cosine_loss(y_true, y_pred, sample_weight=[0.8, 0.2]).numpy()"," -0.0999",""," \u003e\u003e\u003e # Using 'sum' reduction type."," \u003e\u003e\u003e cosine_loss = tf.keras.losses.CosineSimilarity(axis=1,"," ... reduction=tf.keras.losses.Reduction.SUM)"," \u003e\u003e\u003e cosine_loss(y_true, y_pred).numpy()"," -0.999",""," \u003e\u003e\u003e # Using 'none' reduction type."," \u003e\u003e\u003e cosine_loss = tf.keras.losses.CosineSimilarity(axis=1,"," ... reduction=tf.keras.losses.Reduction.NONE)"," \u003e\u003e\u003e cosine_loss(y_true, y_pred).numpy()"," array([-0., -0.999], dtype=float32)",""," Usage with the `compile()` API:",""," ```python"," model.compile(optimizer='sgd',"," loss=tf.keras.losses.CosineSimilarity(axis=1))"," ```",""," Args:"," axis: The axis along which the cosine similarity is computed"," (the features axis). Defaults to -1."," reduction: Type of `tf.keras.losses.Reduction` to apply to loss."," Default value is `AUTO`. `AUTO` indicates that the reduction option"," will be determined by the usage context. For almost all cases this"," defaults to `SUM_OVER_BATCH_SIZE`. When used under a"," `tf.distribute.Strategy`, except via `Model.compile()` and"," `Model.fit()`, using `AUTO` or `SUM_OVER_BATCH_SIZE` will raise an"," error. Please see this custom training [tutorial]("," https://www.tensorflow.org/tutorials/distribute/custom_training)"," for more details."," name: Optional name for the instance. Defaults to 'cosine_similarity'."," \"\"\"",""," def __init__("," self,"," axis=-1,"," reduction=losses_utils.ReductionV2.AUTO,"," name=\"cosine_similarity\","," ):"," super().__init__("," cosine_similarity, reduction=reduction, name=name, axis=axis"," )","","","@keras_export(\"keras.losses.Hinge\")","class Hinge(LossFunctionWrapper):"," \"\"\"Computes the hinge loss between `y_true` \u0026 `y_pred`.",""," `loss = maximum(1 - y_true * y_pred, 0)`",""," `y_true` values are expected to be -1 or 1. If binary (0 or 1) labels are"," provided we will convert them to -1 or 1.",""," Standalone usage:",""," \u003e\u003e\u003e y_true = [[0., 1.], [0., 0.]]"," \u003e\u003e\u003e y_pred = [[0.6, 0.4], [0.4, 0.6]]"," \u003e\u003e\u003e # Using 'auto'/'sum_over_batch_size' reduction type."," \u003e\u003e\u003e h = tf.keras.losses.Hinge()"," \u003e\u003e\u003e h(y_true, y_pred).numpy()"," 1.3",""," \u003e\u003e\u003e # Calling with 'sample_weight'."," \u003e\u003e\u003e h(y_true, y_pred, sample_weight=[1, 0]).numpy()"," 0.55",""," \u003e\u003e\u003e # Using 'sum' reduction type."," \u003e\u003e\u003e h = tf.keras.losses.Hinge("," ... reduction=tf.keras.losses.Reduction.SUM)"," \u003e\u003e\u003e h(y_true, y_pred).numpy()"," 2.6",""," \u003e\u003e\u003e # Using 'none' reduction type."," \u003e\u003e\u003e h = tf.keras.losses.Hinge("," ... reduction=tf.keras.losses.Reduction.NONE)"," \u003e\u003e\u003e h(y_true, y_pred).numpy()"," array([1.1, 1.5], dtype=float32)",""," Usage with the `compile()` API:",""," ```python"," model.compile(optimizer='sgd', loss=tf.keras.losses.Hinge())"," ```"," \"\"\"",""," def __init__(self, reduction=losses_utils.ReductionV2.AUTO, name=\"hinge\"):"," \"\"\"Initializes `Hinge` instance.",""," Args:"," reduction: Type of `tf.keras.losses.Reduction` to apply to"," loss. Default value is `AUTO`. `AUTO` indicates that the"," reduction ption will be determined by the usage context. For"," almost all cases this defaults to `SUM_OVER_BATCH_SIZE`. When"," used under a `tf.distribute.Strategy`, except via"," `Model.compile()` and `Model.fit()`, using `AUTO` or"," `SUM_OVER_BATCH_SIZE` will raise an error. Please see this"," custom training [tutorial]("," https://www.tensorflow.org/tutorials/distribute/custom_training)"," for more details."," name: Optional name for the instance. Defaults to 'hinge'."," \"\"\""," super().__init__(hinge, name=name, reduction=reduction)","","","@keras_export(\"keras.losses.SquaredHinge\")","class SquaredHinge(LossFunctionWrapper):"," \"\"\"Computes the squared hinge loss between `y_true` \u0026 `y_pred`.",""," `loss = square(maximum(1 - y_true * y_pred, 0))`",""," `y_true` values are expected to be -1 or 1. If binary (0 or 1) labels are"," provided we will convert them to -1 or 1.",""," Standalone usage:",""," \u003e\u003e\u003e y_true = [[0., 1.], [0., 0.]]"," \u003e\u003e\u003e y_pred = [[0.6, 0.4], [0.4, 0.6]]"," \u003e\u003e\u003e # Using 'auto'/'sum_over_batch_size' reduction type."," \u003e\u003e\u003e h = tf.keras.losses.SquaredHinge()"," \u003e\u003e\u003e h(y_true, y_pred).numpy()"," 1.86",""," \u003e\u003e\u003e # Calling with 'sample_weight'."," \u003e\u003e\u003e h(y_true, y_pred, sample_weight=[1, 0]).numpy()"," 0.73",""," \u003e\u003e\u003e # Using 'sum' reduction type."," \u003e\u003e\u003e h = tf.keras.losses.SquaredHinge("," ... reduction=tf.keras.losses.Reduction.SUM)"," \u003e\u003e\u003e h(y_true, y_pred).numpy()"," 3.72",""," \u003e\u003e\u003e # Using 'none' reduction type."," \u003e\u003e\u003e h = tf.keras.losses.SquaredHinge("," ... reduction=tf.keras.losses.Reduction.NONE)"," \u003e\u003e\u003e h(y_true, y_pred).numpy()"," array([1.46, 2.26], dtype=float32)",""," Usage with the `compile()` API:",""," ```python"," model.compile(optimizer='sgd', loss=tf.keras.losses.SquaredHinge())"," ```"," \"\"\"",""," def __init__("," self, reduction=losses_utils.ReductionV2.AUTO, name=\"squared_hinge\""," ):"," \"\"\"Initializes `SquaredHinge` instance.",""," Args:"," reduction: Type of `tf.keras.losses.Reduction` to apply to"," loss. Default value is `AUTO`. `AUTO` indicates that the"," reduction ption will be determined by the usage context. For"," almost all cases this defaults to `SUM_OVER_BATCH_SIZE`. When"," used under a `tf.distribute.Strategy`, except via"," `Model.compile()` and `Model.fit()`, using `AUTO` or"," `SUM_OVER_BATCH_SIZE` will raise an error. Please see this"," custom training [tutorial]("," https://www.tensorflow.org/tutorials/distribute/custom_training)"," for more details."," name: Optional name for the instance. Defaults to 'squared_hinge'."," \"\"\""," super().__init__(squared_hinge, name=name, reduction=reduction)","","","@keras_export(\"keras.losses.CategoricalHinge\")","class CategoricalHinge(LossFunctionWrapper):"," \"\"\"Computes the categorical hinge loss between `y_true` \u0026 `y_pred`.",""," `loss = maximum(neg - pos + 1, 0)`"," where `neg=maximum((1-y_true)*y_pred) and pos=sum(y_true*y_pred)`",""," Standalone usage:",""," \u003e\u003e\u003e y_true = [[0, 1], [0, 0]]"," \u003e\u003e\u003e y_pred = [[0.6, 0.4], [0.4, 0.6]]"," \u003e\u003e\u003e # Using 'auto'/'sum_over_batch_size' reduction type."," \u003e\u003e\u003e h = tf.keras.losses.CategoricalHinge()"," \u003e\u003e\u003e h(y_true, y_pred).numpy()"," 1.4",""," \u003e\u003e\u003e # Calling with 'sample_weight'."," \u003e\u003e\u003e h(y_true, y_pred, sample_weight=[1, 0]).numpy()"," 0.6",""," \u003e\u003e\u003e # Using 'sum' reduction type."," \u003e\u003e\u003e h = tf.keras.losses.CategoricalHinge("," ... reduction=tf.keras.losses.Reduction.SUM)"," \u003e\u003e\u003e h(y_true, y_pred).numpy()"," 2.8",""," \u003e\u003e\u003e # Using 'none' reduction type."," \u003e\u003e\u003e h = tf.keras.losses.CategoricalHinge("," ... reduction=tf.keras.losses.Reduction.NONE)"," \u003e\u003e\u003e h(y_true, y_pred).numpy()"," array([1.2, 1.6], dtype=float32)",""," Usage with the `compile()` API:",""," ```python"," model.compile(optimizer='sgd', loss=tf.keras.losses.CategoricalHinge())"," ```"," \"\"\"",""," def __init__("," self, reduction=losses_utils.ReductionV2.AUTO, name=\"categorical_hinge\""," ):"," \"\"\"Initializes `CategoricalHinge` instance.",""," Args:"," reduction: Type of `tf.keras.losses.Reduction` to apply to"," loss. Default value is `AUTO`. `AUTO` indicates that the"," reduction ption will be determined by the usage context. For"," almost all cases this defaults to `SUM_OVER_BATCH_SIZE`. When"," used under a `tf.distribute.Strategy`, except via"," `Model.compile()` and `Model.fit()`, using `AUTO` or"," `SUM_OVER_BATCH_SIZE` will raise an error. Please see this"," custom training [tutorial]("," https://www.tensorflow.org/tutorials/distribute/custom_training)"," for more details."," name: Optional name for the instance."," Defaults to 'categorical_hinge'."," \"\"\""," super().__init__(categorical_hinge, name=name, reduction=reduction)","","","@keras_export(\"keras.losses.Poisson\")","class Poisson(LossFunctionWrapper):"," \"\"\"Computes the Poisson loss between `y_true` \u0026 `y_pred`.",""," `loss = y_pred - y_true * log(y_pred)`",""," Standalone usage:",""," \u003e\u003e\u003e y_true = [[0., 1.], [0., 0.]]"," \u003e\u003e\u003e y_pred = [[1., 1.], [0., 0.]]"," \u003e\u003e\u003e # Using 'auto'/'sum_over_batch_size' reduction type."," \u003e\u003e\u003e p = tf.keras.losses.Poisson()"," \u003e\u003e\u003e p(y_true, y_pred).numpy()"," 0.5",""," \u003e\u003e\u003e # Calling with 'sample_weight'."," \u003e\u003e\u003e p(y_true, y_pred, sample_weight=[0.8, 0.2]).numpy()"," 0.4",""," \u003e\u003e\u003e # Using 'sum' reduction type."," \u003e\u003e\u003e p = tf.keras.losses.Poisson("," ... reduction=tf.keras.losses.Reduction.SUM)"," \u003e\u003e\u003e p(y_true, y_pred).numpy()"," 0.999",""," \u003e\u003e\u003e # Using 'none' reduction type."," \u003e\u003e\u003e p = tf.keras.losses.Poisson("," ... reduction=tf.keras.losses.Reduction.NONE)"," \u003e\u003e\u003e p(y_true, y_pred).numpy()"," array([0.999, 0.], dtype=float32)",""," Usage with the `compile()` API:",""," ```python"," model.compile(optimizer='sgd', loss=tf.keras.losses.Poisson())"," ```"," \"\"\"",""," def __init__(self, reduction=losses_utils.ReductionV2.AUTO, name=\"poisson\"):"," \"\"\"Initializes `Poisson` instance.",""," Args:"," reduction: Type of `tf.keras.losses.Reduction` to apply to"," loss. Default value is `AUTO`. `AUTO` indicates that the"," reduction ption will be determined by the usage context. For"," almost all cases this defaults to `SUM_OVER_BATCH_SIZE`. When"," used under a `tf.distribute.Strategy`, except via"," `Model.compile()` and `Model.fit()`, using `AUTO` or"," `SUM_OVER_BATCH_SIZE` will raise an error. Please see this"," custom training [tutorial]("," https://www.tensorflow.org/tutorials/distribute/custom_training)"," for more details."," name: Optional name for the instance. Defaults to 'poisson'."," \"\"\""," super().__init__(poisson, name=name, reduction=reduction)","","","@keras_export(\"keras.losses.LogCosh\")","class LogCosh(LossFunctionWrapper):"," \"\"\"Computes the logarithm of the hyperbolic cosine of the prediction error.",""," `logcosh = log((exp(x) + exp(-x))/2)`,"," where x is the error `y_pred - y_true`.",""," Standalone usage:",""," \u003e\u003e\u003e y_true = [[0., 1.], [0., 0.]]"," \u003e\u003e\u003e y_pred = [[1., 1.], [0., 0.]]"," \u003e\u003e\u003e # Using 'auto'/'sum_over_batch_size' reduction type."," \u003e\u003e\u003e l = tf.keras.losses.LogCosh()"," \u003e\u003e\u003e l(y_true, y_pred).numpy()"," 0.108",""," \u003e\u003e\u003e # Calling with 'sample_weight'."," \u003e\u003e\u003e l(y_true, y_pred, sample_weight=[0.8, 0.2]).numpy()"," 0.087",""," \u003e\u003e\u003e # Using 'sum' reduction type."," \u003e\u003e\u003e l = tf.keras.losses.LogCosh("," ... reduction=tf.keras.losses.Reduction.SUM)"," \u003e\u003e\u003e l(y_true, y_pred).numpy()"," 0.217",""," \u003e\u003e\u003e # Using 'none' reduction type."," \u003e\u003e\u003e l = tf.keras.losses.LogCosh("," ... reduction=tf.keras.losses.Reduction.NONE)"," \u003e\u003e\u003e l(y_true, y_pred).numpy()"," array([0.217, 0.], dtype=float32)",""," Usage with the `compile()` API:",""," ```python"," model.compile(optimizer='sgd', loss=tf.keras.losses.LogCosh())"," ```"," \"\"\"",""," def __init__("," self, reduction=losses_utils.ReductionV2.AUTO, name=\"log_cosh\""," ):"," \"\"\"Initializes `LogCosh` instance.",""," Args:"," reduction: Type of `tf.keras.losses.Reduction` to apply to"," loss. Default value is `AUTO`. `AUTO` indicates that the"," reduction ption will be determined by the usage context. For"," almost all cases this defaults to `SUM_OVER_BATCH_SIZE`. When"," used under a `tf.distribute.Strategy`, except via"," `Model.compile()` and `Model.fit()`, using `AUTO` or"," `SUM_OVER_BATCH_SIZE` will raise an error. Please see this"," custom training [tutorial]("," https://www.tensorflow.org/tutorials/distribute/custom_training)"," for more details."," name: Optional name for the instance. Defaults to 'log_cosh'."," \"\"\""," super().__init__(log_cosh, name=name, reduction=reduction)","","","@keras_export(\"keras.losses.KLDivergence\")","class KLDivergence(LossFunctionWrapper):"," \"\"\"Computes Kullback-Leibler divergence loss between `y_true` \u0026 `y_pred`.",""," `loss = y_true * log(y_true / y_pred)`",""," See: https://en.wikipedia.org/wiki/Kullback%E2%80%93Leibler_divergence",""," Standalone usage:",""," \u003e\u003e\u003e y_true = [[0, 1], [0, 0]]"," \u003e\u003e\u003e y_pred = [[0.6, 0.4], [0.4, 0.6]]"," \u003e\u003e\u003e # Using 'auto'/'sum_over_batch_size' reduction type."," \u003e\u003e\u003e kl = tf.keras.losses.KLDivergence()"," \u003e\u003e\u003e kl(y_true, y_pred).numpy()"," 0.458",""," \u003e\u003e\u003e # Calling with 'sample_weight'."," \u003e\u003e\u003e kl(y_true, y_pred, sample_weight=[0.8, 0.2]).numpy()"," 0.366",""," \u003e\u003e\u003e # Using 'sum' reduction type."," \u003e\u003e\u003e kl = tf.keras.losses.KLDivergence("," ... reduction=tf.keras.losses.Reduction.SUM)"," \u003e\u003e\u003e kl(y_true, y_pred).numpy()"," 0.916",""," \u003e\u003e\u003e # Using 'none' reduction type."," \u003e\u003e\u003e kl = tf.keras.losses.KLDivergence("," ... reduction=tf.keras.losses.Reduction.NONE)"," \u003e\u003e\u003e kl(y_true, y_pred).numpy()"," array([0.916, -3.08e-06], dtype=float32)",""," Usage with the `compile()` API:",""," ```python"," model.compile(optimizer='sgd', loss=tf.keras.losses.KLDivergence())"," ```"," \"\"\"",""," def __init__("," self, reduction=losses_utils.ReductionV2.AUTO, name=\"kl_divergence\""," ):"," \"\"\"Initializes `KLDivergence` instance.",""," Args:"," reduction: Type of `tf.keras.losses.Reduction` to apply to"," loss. Default value is `AUTO`. `AUTO` indicates that the"," reduction ption will be determined by the usage context. For"," almost all cases this defaults to `SUM_OVER_BATCH_SIZE`. When"," used under a `tf.distribute.Strategy`, except via"," `Model.compile()` and `Model.fit()`, using `AUTO` or"," `SUM_OVER_BATCH_SIZE` will raise an error. Please see this"," custom training [tutorial]("," https://www.tensorflow.org/tutorials/distribute/custom_training)"," for more details."," name: Optional name for the instance."," Defaults to 'kl_divergence'."," \"\"\""," super().__init__(kl_divergence, name=name, reduction=reduction)","","","@keras_export(\"keras.losses.Huber\")","class Huber(LossFunctionWrapper):"," \"\"\"Computes the Huber loss between `y_true` \u0026 `y_pred`.",""," For each value x in `error = y_true - y_pred`:",""," ```"," loss = 0.5 * x^2 if |x| \u003c= d"," loss = 0.5 * d^2 + d * (|x| - d) if |x| \u003e d"," ```"," where d is `delta`. See: https://en.wikipedia.org/wiki/Huber_loss",""," Standalone usage:",""," \u003e\u003e\u003e y_true = [[0, 1], [0, 0]]"," \u003e\u003e\u003e y_pred = [[0.6, 0.4], [0.4, 0.6]]"," \u003e\u003e\u003e # Using 'auto'/'sum_over_batch_size' reduction type."," \u003e\u003e\u003e h = tf.keras.losses.Huber()"," \u003e\u003e\u003e h(y_true, y_pred).numpy()"," 0.155",""," \u003e\u003e\u003e # Calling with 'sample_weight'."," \u003e\u003e\u003e h(y_true, y_pred, sample_weight=[1, 0]).numpy()"," 0.09",""," \u003e\u003e\u003e # Using 'sum' reduction type."," \u003e\u003e\u003e h = tf.keras.losses.Huber("," ... reduction=tf.keras.losses.Reduction.SUM)"," \u003e\u003e\u003e h(y_true, y_pred).numpy()"," 0.31",""," \u003e\u003e\u003e # Using 'none' reduction type."," \u003e\u003e\u003e h = tf.keras.losses.Huber("," ... reduction=tf.keras.losses.Reduction.NONE)"," \u003e\u003e\u003e h(y_true, y_pred).numpy()"," array([0.18, 0.13], dtype=float32)",""," Usage with the `compile()` API:",""," ```python"," model.compile(optimizer='sgd', loss=tf.keras.losses.Huber())"," ```"," \"\"\"",""," def __init__("," self,"," delta=1.0,"," reduction=losses_utils.ReductionV2.AUTO,"," name=\"huber_loss\","," ):"," \"\"\"Initializes `Huber` instance.",""," Args:"," delta: A float, the point where the Huber loss function changes from"," a quadratic to linear."," reduction: Type of `tf.keras.losses.Reduction` to apply to"," loss. Default value is `AUTO`. `AUTO` indicates that the"," reduction ption will be determined by the usage context. For"," almost all cases this defaults to `SUM_OVER_BATCH_SIZE`. When"," used under a `tf.distribute.Strategy`, except via"," `Model.compile()` and `Model.fit()`, using `AUTO` or"," `SUM_OVER_BATCH_SIZE` will raise an error. Please see this"," custom training [tutorial]("," https://www.tensorflow.org/tutorials/distribute/custom_training)"," for more details."," name: Optional name for the instance. Defaults to 'huber_loss'."," \"\"\""," super().__init__(huber, name=name, reduction=reduction, delta=delta)","","","@keras_export("," \"keras.metrics.mean_squared_error\","," \"keras.metrics.mse\","," \"keras.metrics.MSE\","," \"keras.losses.mean_squared_error\","," \"keras.losses.mse\","," \"keras.losses.MSE\",",")","@tf.__internal__.dispatch.add_dispatch_support","def mean_squared_error(y_true, y_pred):"," \"\"\"Computes the mean squared error between labels and predictions.",""," After computing the squared distance between the inputs, the mean value over"," the last dimension is returned.",""," `loss = mean(square(y_true - y_pred), axis=-1)`",""," Standalone usage:",""," \u003e\u003e\u003e y_true = np.random.randint(0, 2, size=(2, 3))"," \u003e\u003e\u003e y_pred = np.random.random(size=(2, 3))"," \u003e\u003e\u003e loss = tf.keras.losses.mean_squared_error(y_true, y_pred)"," \u003e\u003e\u003e assert loss.shape == (2,)"," \u003e\u003e\u003e assert np.array_equal("," ... loss.numpy(), np.mean(np.square(y_true - y_pred), axis=-1))",""," Args:"," y_true: Ground truth values. shape = `[batch_size, d0, .. dN]`."," y_pred: The predicted values. shape = `[batch_size, d0, .. dN]`.",""," Returns:"," Mean squared error values. shape = `[batch_size, d0, .. dN-1]`."," \"\"\""," y_pred = tf.convert_to_tensor(y_pred)"," y_true = tf.cast(y_true, y_pred.dtype)"," return backend.mean(tf.math.squared_difference(y_pred, y_true), axis=-1)","","","def _ragged_tensor_apply_loss(loss_fn, y_true, y_pred, y_pred_extra_dim=False):"," \"\"\"Apply a loss function on a per batch basis.",""," Args:"," loss_fn: The loss function"," y_true: truth values (RaggedTensor)"," y_pred: predicted values (RaggedTensor)"," y_pred_extra_dim: whether y_pred has an additional dimension compared to"," y_true",""," Returns:"," Loss-function result. A dense tensor if the output has a single"," dimension (per-batch loss value); a ragged tensor otherwise."," \"\"\"",""," def rt_is_equiv_dense(rt):"," \"\"\"Returns true if this RaggedTensor has the same row_lengths across",""," all ragged dimensions and thus can be converted to a dense tensor"," without loss of information.",""," Args:"," rt: RaggedTensor."," \"\"\""," return tf.reduce_all("," ["," tf.equal("," tf.math.reduce_variance("," tf.cast(row_lens, backend.floatx())"," ),"," tf.constant([0.0]),"," )"," for row_lens in rt.nested_row_lengths()"," ]"," )",""," def _convert_to_dense(inputs):"," return tuple("," rt.to_tensor() if isinstance(rt, tf.RaggedTensor) else rt"," for rt in inputs"," )",""," def _call_loss(inputs, ragged_output):"," \"\"\"Adapt the result to ragged or dense tensor according to the expected",""," output type. This is done so that all the return values of the map"," operation have the same type."," \"\"\""," r = loss_fn(*inputs)"," if ragged_output and not isinstance(r, tf.RaggedTensor):"," r = tf.RaggedTensor.from_tensor(r)"," elif not ragged_output and isinstance(r, tf.RaggedTensor):"," r = r.to_tensor()"," return r",""," def _wrapper(inputs, ragged_output):"," _, y_pred = inputs"," if isinstance(y_pred, tf.RaggedTensor):"," return tf.cond("," rt_is_equiv_dense(y_pred),"," lambda: _call_loss(_convert_to_dense(inputs), ragged_output),"," lambda: _call_loss(inputs, ragged_output),"," )",""," return loss_fn(*inputs)",""," if not isinstance(y_true, tf.RaggedTensor):"," return loss_fn(y_true, y_pred.to_tensor())",""," lshape = y_pred.shape.as_list()[1:-1]"," if len(lshape) \u003e 0:"," spec = tf.RaggedTensorSpec(shape=lshape, dtype=y_pred.dtype)"," else:"," spec = tf.TensorSpec(shape=[], dtype=y_pred.dtype)",""," nested_splits_list = [rt.nested_row_splits for rt in (y_true, y_pred)]"," if y_pred_extra_dim:"," # The last dimension of a categorical prediction may be ragged or not."," rdims = [len(slist) for slist in nested_splits_list]"," if rdims[0] == rdims[1] - 1:"," nested_splits_list[1] = nested_splits_list[1][:-1]",""," map_fn = functools.partial(_wrapper, ragged_output=len(lshape) \u003e 1)",""," assertion_list = ragged_util.assert_splits_match(nested_splits_list)"," with tf.control_dependencies(assertion_list):"," return ragged_map_ops.map_fn(map_fn, elems=(y_true, y_pred), dtype=spec)","","","@dispatch.dispatch_for_types(mean_squared_error, tf.RaggedTensor)","def _ragged_tensor_mse(y_true, y_pred):"," \"\"\"Implements support for handling RaggedTensors.",""," Args:"," y_true: RaggedTensor truth values. shape = `[batch_size, d0, .. dN]`."," y_pred: RaggedTensor predicted values."," shape = `[batch_size, d0, .. dN]`.",""," Returns:"," Mean squared error values. shape = `[batch_size, d0, .. dN-1]`."," When the number of dimensions of the batch feature vector [d0, .. dN] is"," greater than one the return value is a RaggedTensor. Otherwise, a Dense"," tensor with dimensions [batch_size] is returned."," \"\"\""," return _ragged_tensor_apply_loss(mean_squared_error, y_true, y_pred)","","","@keras_export("," \"keras.metrics.mean_absolute_error\","," \"keras.metrics.mae\","," \"keras.metrics.MAE\","," \"keras.losses.mean_absolute_error\","," \"keras.losses.mae\","," \"keras.losses.MAE\",",")","@tf.__internal__.dispatch.add_dispatch_support","def mean_absolute_error(y_true, y_pred):"," \"\"\"Computes the mean absolute error between labels and predictions.",""," `loss = mean(abs(y_true - y_pred), axis=-1)`",""," Standalone usage:",""," \u003e\u003e\u003e y_true = np.random.randint(0, 2, size=(2, 3))"," \u003e\u003e\u003e y_pred = np.random.random(size=(2, 3))"," \u003e\u003e\u003e loss = tf.keras.losses.mean_absolute_error(y_true, y_pred)"," \u003e\u003e\u003e assert loss.shape == (2,)"," \u003e\u003e\u003e assert np.array_equal("," ... loss.numpy(), np.mean(np.abs(y_true - y_pred), axis=-1))",""," Args:"," y_true: Ground truth values. shape = `[batch_size, d0, .. dN]`."," y_pred: The predicted values. shape = `[batch_size, d0, .. dN]`.",""," Returns:"," Mean absolute error values. shape = `[batch_size, d0, .. dN-1]`."," \"\"\""," y_pred = tf.convert_to_tensor(y_pred)"," y_true = tf.cast(y_true, y_pred.dtype)"," return backend.mean(tf.abs(y_pred - y_true), axis=-1)","","","@dispatch.dispatch_for_types(mean_absolute_error, tf.RaggedTensor)","def _ragged_tensor_mae(y_true, y_pred):"," \"\"\"RaggedTensor adapter for mean_absolute_error.\"\"\""," return _ragged_tensor_apply_loss(mean_absolute_error, y_true, y_pred)","","","@keras_export("," \"keras.metrics.mean_absolute_percentage_error\","," \"keras.metrics.mape\","," \"keras.metrics.MAPE\","," \"keras.losses.mean_absolute_percentage_error\","," \"keras.losses.mape\","," \"keras.losses.MAPE\",",")","@tf.__internal__.dispatch.add_dispatch_support","def mean_absolute_percentage_error(y_true, y_pred):"," \"\"\"Computes the mean absolute percentage error between `y_true` \u0026 `y_pred`.",""," `loss = 100 * mean(abs((y_true - y_pred) / y_true), axis=-1)`",""," Standalone usage:",""," \u003e\u003e\u003e y_true = np.random.random(size=(2, 3))"," \u003e\u003e\u003e y_true = np.maximum(y_true, 1e-7) # Prevent division by zero"," \u003e\u003e\u003e y_pred = np.random.random(size=(2, 3))"," \u003e\u003e\u003e loss = tf.keras.losses.mean_absolute_percentage_error(y_true, y_pred)"," \u003e\u003e\u003e assert loss.shape == (2,)"," \u003e\u003e\u003e assert np.array_equal("," ... loss.numpy(),"," ... 100. * np.mean(np.abs((y_true - y_pred) / y_true), axis=-1))",""," Args:"," y_true: Ground truth values. shape = `[batch_size, d0, .. dN]`."," y_pred: The predicted values. shape = `[batch_size, d0, .. dN]`.",""," Returns:"," Mean absolute percentage error values. shape = `[batch_size, d0, .."," dN-1]`."," \"\"\""," y_pred = tf.convert_to_tensor(y_pred)"," y_true = tf.cast(y_true, y_pred.dtype)"," diff = tf.abs("," (y_true - y_pred) / backend.maximum(tf.abs(y_true), backend.epsilon())"," )"," return 100.0 * backend.mean(diff, axis=-1)","","","@dispatch.dispatch_for_types(mean_absolute_percentage_error, tf.RaggedTensor)","def _ragged_tensor_mape(y_true, y_pred):"," \"\"\"Support RaggedTensors.\"\"\""," return _ragged_tensor_apply_loss("," mean_absolute_percentage_error, y_true, y_pred"," )","","","@keras_export("," \"keras.metrics.mean_squared_logarithmic_error\","," \"keras.metrics.msle\","," \"keras.metrics.MSLE\","," \"keras.losses.mean_squared_logarithmic_error\","," \"keras.losses.msle\","," \"keras.losses.MSLE\",",")","@tf.__internal__.dispatch.add_dispatch_support","def mean_squared_logarithmic_error(y_true, y_pred):"," \"\"\"Computes the mean squared logarithmic error between `y_true` \u0026 `y_pred`.",""," `loss = mean(square(log(y_true + 1) - log(y_pred + 1)), axis=-1)`",""," Standalone usage:",""," \u003e\u003e\u003e y_true = np.random.randint(0, 2, size=(2, 3))"," \u003e\u003e\u003e y_pred = np.random.random(size=(2, 3))"," \u003e\u003e\u003e loss = tf.keras.losses.mean_squared_logarithmic_error(y_true, y_pred)"," \u003e\u003e\u003e assert loss.shape == (2,)"," \u003e\u003e\u003e y_true = np.maximum(y_true, 1e-7)"," \u003e\u003e\u003e y_pred = np.maximum(y_pred, 1e-7)"," \u003e\u003e\u003e assert np.allclose("," ... loss.numpy(),"," ... np.mean("," ... np.square(np.log(y_true + 1.) - np.log(y_pred + 1.)), axis=-1))",""," Args:"," y_true: Ground truth values. shape = `[batch_size, d0, .. dN]`."," y_pred: The predicted values. shape = `[batch_size, d0, .. dN]`.",""," Returns:"," Mean squared logarithmic error values. shape = `[batch_size, d0, .."," dN-1]`."," \"\"\""," y_pred = tf.convert_to_tensor(y_pred)"," y_true = tf.cast(y_true, y_pred.dtype)"," first_log = tf.math.log(backend.maximum(y_pred, backend.epsilon()) + 1.0)"," second_log = tf.math.log(backend.maximum(y_true, backend.epsilon()) + 1.0)"," return backend.mean("," tf.math.squared_difference(first_log, second_log), axis=-1"," )","","","@dispatch.dispatch_for_types(mean_squared_logarithmic_error, tf.RaggedTensor)","def _ragged_tensor_msle(y_true, y_pred):"," \"\"\"Implements support for handling RaggedTensors.\"\"\""," return _ragged_tensor_apply_loss("," mean_squared_logarithmic_error, y_true, y_pred"," )","","","def _maybe_convert_labels(y_true):"," \"\"\"Converts binary labels into -1/1.\"\"\""," are_zeros = tf.equal(y_true, 0)"," are_ones = tf.equal(y_true, 1)"," is_binary = tf.reduce_all(tf.logical_or(are_zeros, are_ones))",""," def _convert_binary_labels():"," # Convert the binary labels to -1 or 1."," return 2.0 * y_true - 1.0",""," updated_y_true = tf.__internal__.smart_cond.smart_cond("," is_binary, _convert_binary_labels, lambda: y_true"," )"," return updated_y_true","","","@keras_export(\"keras.metrics.squared_hinge\", \"keras.losses.squared_hinge\")","@tf.__internal__.dispatch.add_dispatch_support","def squared_hinge(y_true, y_pred):"," \"\"\"Computes the squared hinge loss between `y_true` \u0026 `y_pred`.",""," `loss = mean(square(maximum(1 - y_true * y_pred, 0)), axis=-1)`",""," Standalone usage:",""," \u003e\u003e\u003e y_true = np.random.choice([-1, 1], size=(2, 3))"," \u003e\u003e\u003e y_pred = np.random.random(size=(2, 3))"," \u003e\u003e\u003e loss = tf.keras.losses.squared_hinge(y_true, y_pred)"," \u003e\u003e\u003e assert loss.shape == (2,)"," \u003e\u003e\u003e assert np.array_equal("," ... loss.numpy(),"," ... np.mean(np.square(np.maximum(1. - y_true * y_pred, 0.)), axis=-1))",""," Args:"," y_true: The ground truth values. `y_true` values are expected to be -1"," or 1. If binary (0 or 1) labels are provided we will convert them to"," -1 or 1. shape = `[batch_size, d0, .. dN]`."," y_pred: The predicted values. shape = `[batch_size, d0, .. dN]`.",""," Returns:"," Squared hinge loss values. shape = `[batch_size, d0, .. dN-1]`."," \"\"\""," y_pred = tf.convert_to_tensor(y_pred)"," y_true = tf.cast(y_true, y_pred.dtype)"," y_true = _maybe_convert_labels(y_true)"," return backend.mean("," tf.square(tf.maximum(1.0 - y_true * y_pred, 0.0)), axis=-1"," )","","","@keras_export(\"keras.metrics.hinge\", \"keras.losses.hinge\")","@tf.__internal__.dispatch.add_dispatch_support","def hinge(y_true, y_pred):"," \"\"\"Computes the hinge loss between `y_true` \u0026 `y_pred`.",""," `loss = mean(maximum(1 - y_true * y_pred, 0), axis=-1)`",""," Standalone usage:",""," \u003e\u003e\u003e y_true = np.random.choice([-1, 1], size=(2, 3))"," \u003e\u003e\u003e y_pred = np.random.random(size=(2, 3))"," \u003e\u003e\u003e loss = tf.keras.losses.hinge(y_true, y_pred)"," \u003e\u003e\u003e assert loss.shape == (2,)"," \u003e\u003e\u003e assert np.array_equal("," ... loss.numpy(),"," ... np.mean(np.maximum(1. - y_true * y_pred, 0.), axis=-1))",""," Args:"," y_true: The ground truth values. `y_true` values are expected to be -1"," or 1. If binary (0 or 1) labels are provided we will convert them to"," -1 or 1. shape = `[batch_size, d0, .. dN]`."," y_pred: The predicted values. shape = `[batch_size, d0, .. dN]`.",""," Returns:"," Hinge loss values. shape = `[batch_size, d0, .. dN-1]`."," \"\"\""," y_pred = tf.convert_to_tensor(y_pred)"," y_true = tf.cast(y_true, y_pred.dtype)"," y_true = _maybe_convert_labels(y_true)"," return backend.mean(tf.maximum(1.0 - y_true * y_pred, 0.0), axis=-1)","","","@keras_export(\"keras.losses.categorical_hinge\")","@tf.__internal__.dispatch.add_dispatch_support","def categorical_hinge(y_true, y_pred):"," \"\"\"Computes the categorical hinge loss between `y_true` \u0026 `y_pred`.",""," `loss = maximum(neg - pos + 1, 0)`"," where `neg=maximum((1-y_true)*y_pred) and pos=sum(y_true*y_pred)`",""," Standalone usage:",""," \u003e\u003e\u003e y_true = np.random.randint(0, 3, size=(2,))"," \u003e\u003e\u003e y_true = tf.keras.utils.to_categorical(y_true, num_classes=3)"," \u003e\u003e\u003e y_pred = np.random.random(size=(2, 3))"," \u003e\u003e\u003e loss = tf.keras.losses.categorical_hinge(y_true, y_pred)"," \u003e\u003e\u003e assert loss.shape == (2,)"," \u003e\u003e\u003e pos = np.sum(y_true * y_pred, axis=-1)"," \u003e\u003e\u003e neg = np.amax((1. - y_true) * y_pred, axis=-1)"," \u003e\u003e\u003e assert np.array_equal(loss.numpy(), np.maximum(0., neg - pos + 1.))",""," Args:"," y_true: The ground truth values. `y_true` values are expected to be"," either `{-1, +1}` or `{0, 1}` (i.e. a one-hot-encoded tensor)."," y_pred: The predicted values.",""," Returns:"," Categorical hinge loss values."," \"\"\""," y_pred = tf.convert_to_tensor(y_pred)"," y_true = tf.cast(y_true, y_pred.dtype)"," pos = tf.reduce_sum(y_true * y_pred, axis=-1)"," neg = tf.reduce_max((1.0 - y_true) * y_pred, axis=-1)"," zero = tf.cast(0.0, y_pred.dtype)"," return tf.maximum(neg - pos + 1.0, zero)","","","@keras_export(\"keras.losses.huber\", v1=[])","@tf.__internal__.dispatch.add_dispatch_support","def huber(y_true, y_pred, delta=1.0):"," \"\"\"Computes Huber loss value.",""," For each value x in `error = y_true - y_pred`:",""," ```"," loss = 0.5 * x^2 if |x| \u003c= d"," loss = d * |x| - 0.5 * d^2 if |x| \u003e d"," ```"," where d is `delta`. See: https://en.wikipedia.org/wiki/Huber_loss",""," Args:"," y_true: tensor of true targets."," y_pred: tensor of predicted targets."," delta: A float, the point where the Huber loss function changes from a"," quadratic to linear.",""," Returns:"," Tensor with one scalar loss entry per sample."," \"\"\""," y_pred = tf.cast(y_pred, dtype=backend.floatx())"," y_true = tf.cast(y_true, dtype=backend.floatx())"," delta = tf.cast(delta, dtype=backend.floatx())"," error = tf.subtract(y_pred, y_true)"," abs_error = tf.abs(error)"," half = tf.convert_to_tensor(0.5, dtype=abs_error.dtype)"," return backend.mean("," tf.where("," abs_error \u003c= delta,"," half * tf.square(error),"," delta * abs_error - half * tf.square(delta),"," ),"," axis=-1,"," )","","","@keras_export("," \"keras.losses.log_cosh\","," \"keras.losses.logcosh\","," \"keras.metrics.log_cosh\","," \"keras.metrics.logcosh\",",")","@tf.__internal__.dispatch.add_dispatch_support","def log_cosh(y_true, y_pred):"," \"\"\"Logarithm of the hyperbolic cosine of the prediction error.",""," `log(cosh(x))` is approximately equal to `(x ** 2) / 2` for small `x` and"," to `abs(x) - log(2)` for large `x`. This means that 'logcosh' works mostly"," like the mean squared error, but will not be so strongly affected by the"," occasional wildly incorrect prediction.",""," Standalone usage:",""," \u003e\u003e\u003e y_true = np.random.random(size=(2, 3))"," \u003e\u003e\u003e y_pred = np.random.random(size=(2, 3))"," \u003e\u003e\u003e loss = tf.keras.losses.logcosh(y_true, y_pred)"," \u003e\u003e\u003e assert loss.shape == (2,)"," \u003e\u003e\u003e x = y_pred - y_true"," \u003e\u003e\u003e assert np.allclose("," ... loss.numpy(),"," ... np.mean(x + np.log(np.exp(-2. * x) + 1.) - tf.math.log(2.),"," ... axis=-1),"," ... atol=1e-5)",""," Args:"," y_true: Ground truth values. shape = `[batch_size, d0, .. dN]`."," y_pred: The predicted values. shape = `[batch_size, d0, .. dN]`.",""," Returns:"," Logcosh error values. shape = `[batch_size, d0, .. dN-1]`."," \"\"\""," y_pred = tf.convert_to_tensor(y_pred)"," y_true = tf.cast(y_true, y_pred.dtype)",""," def _logcosh(x):"," return ("," x + tf.math.softplus(-2.0 * x) - tf.cast(tf.math.log(2.0), x.dtype)"," )",""," return backend.mean(_logcosh(y_pred - y_true), axis=-1)","","","@keras_export("," \"keras.metrics.categorical_crossentropy\","," \"keras.losses.categorical_crossentropy\",",")","@tf.__internal__.dispatch.add_dispatch_support","def categorical_crossentropy("," y_true, y_pred, from_logits=False, label_smoothing=0.0, axis=-1","):"," \"\"\"Computes the categorical crossentropy loss.",""," Standalone usage:",""," \u003e\u003e\u003e y_true = [[0, 1, 0], [0, 0, 1]]"," \u003e\u003e\u003e y_pred = [[0.05, 0.95, 0], [0.1, 0.8, 0.1]]"," \u003e\u003e\u003e loss = tf.keras.losses.categorical_crossentropy(y_true, y_pred)"," \u003e\u003e\u003e assert loss.shape == (2,)"," \u003e\u003e\u003e loss.numpy()"," array([0.0513, 2.303], dtype=float32)",""," Args:"," y_true: Tensor of one-hot true targets."," y_pred: Tensor of predicted targets."," from_logits: Whether `y_pred` is expected to be a logits tensor. By"," default, we assume that `y_pred` encodes a probability distribution."," label_smoothing: Float in [0, 1]. If \u003e `0` then smooth the labels. For"," example, if `0.1`, use `0.1 / num_classes` for non-target labels"," and `0.9 + 0.1 / num_classes` for target labels."," axis: Defaults to -1. The dimension along which the entropy is"," computed.",""," Returns:"," Categorical crossentropy loss value."," \"\"\""," if isinstance(axis, bool):"," raise ValueError("," \"`axis` must be of type `int`. \""," f\"Received: axis={axis} of type {type(axis)}\""," )"," y_pred = tf.convert_to_tensor(y_pred)"," y_true = tf.cast(y_true, y_pred.dtype)"," label_smoothing = tf.convert_to_tensor(label_smoothing, dtype=y_pred.dtype)",""," if y_pred.shape[-1] == 1:"," warnings.warn("," \"In loss categorical_crossentropy, expected \""," \"y_pred.shape to be (batch_size, num_classes) \""," f\"with num_classes \u003e 1. Received: y_pred.shape={y_pred.shape}. \""," \"Consider using 'binary_crossentropy' if you only have 2 classes.\","," SyntaxWarning,"," stacklevel=2,"," )",""," def _smooth_labels():"," num_classes = tf.cast(tf.shape(y_true)[axis], y_pred.dtype)"," return y_true * (1.0 - label_smoothing) + ("," label_smoothing / num_classes"," )",""," y_true = tf.__internal__.smart_cond.smart_cond("," label_smoothing, _smooth_labels, lambda: y_true"," )",""," return backend.categorical_crossentropy("," y_true, y_pred, from_logits=from_logits, axis=axis"," )","","","@dispatch.dispatch_for_types(categorical_crossentropy, tf.RaggedTensor)","def _ragged_tensor_categorical_crossentropy("," y_true, y_pred, from_logits=False, label_smoothing=0.0, axis=-1","):"," \"\"\"Implements support for handling RaggedTensors.",""," Args:"," y_true: Tensor of one-hot true targets."," y_pred: Tensor of predicted targets."," from_logits: Whether `y_pred` is expected to be a logits tensor. By"," default, we assume that `y_pred` encodes a probability distribution."," label_smoothing: Float in [0, 1]. If \u003e `0` then smooth the labels. For"," example, if `0.1`, use `0.1 / num_classes` for non-target labels"," and `0.9 + 0.1 / num_classes` for target labels."," axis: The axis along which to compute crossentropy (the features axis)."," Defaults to -1.",""," Returns:"," Categorical crossentropy loss value.",""," Expected shape: (batch, sequence_len, n_classes) with sequence_len"," being variable per batch."," Return shape: (batch, sequence_len).",""," When used by CategoricalCrossentropy() with the default reduction"," (SUM_OVER_BATCH_SIZE), the reduction averages the loss over the"," number of elements independent of the batch. E.g. if the RaggedTensor"," has 2 batches with [2, 1] values respectively the resulting loss is"," the sum of the individual loss values divided by 3."," \"\"\""," fn = functools.partial("," categorical_crossentropy,"," from_logits=from_logits,"," label_smoothing=label_smoothing,"," axis=axis,"," )"," return _ragged_tensor_apply_loss(fn, y_true, y_pred)","","","@keras_export("," \"keras.metrics.categorical_focal_crossentropy\","," \"keras.losses.categorical_focal_crossentropy\",",")","@tf.__internal__.dispatch.add_dispatch_support","def categorical_focal_crossentropy("," y_true,"," y_pred,"," alpha=0.25,"," gamma=2.0,"," from_logits=False,"," label_smoothing=0.0,"," axis=-1,","):"," \"\"\"Computes the categorical focal crossentropy loss.",""," Standalone usage:"," \u003e\u003e\u003e y_true = [[0, 1, 0], [0, 0, 1]]"," \u003e\u003e\u003e y_pred = [[0.05, 0.9, 0.05], [0.1, 0.85, 0.05]]"," \u003e\u003e\u003e loss = tf.keras.losses.categorical_focal_crossentropy(y_true, y_pred)"," \u003e\u003e\u003e assert loss.shape == (2,)"," \u003e\u003e\u003e loss.numpy()"," array([2.63401289e-04, 6.75912094e-01], dtype=float32)",""," Args:"," y_true: Tensor of one-hot true targets."," y_pred: Tensor of predicted targets."," alpha: A weight balancing factor for all classes, default is `0.25` as"," mentioned in the reference. It can be a list of floats or a scalar."," In the multi-class case, alpha may be set by inverse class"," frequency by using `compute_class_weight` from `sklearn.utils`."," gamma: A focusing parameter, default is `2.0` as mentioned in the"," reference. It helps to gradually reduce the importance given to"," simple examples in a smooth manner. When `gamma` = 0, there is"," no focal effect on the categorical crossentropy."," from_logits: Whether `y_pred` is expected to be a logits tensor. By"," default, we assume that `y_pred` encodes a probability"," distribution."," label_smoothing: Float in [0, 1]. If \u003e `0` then smooth the labels. For"," example, if `0.1`, use `0.1 / num_classes` for non-target labels"," and `0.9 + 0.1 / num_classes` for target labels."," axis: Defaults to -1. The dimension along which the entropy is"," computed.",""," Returns:"," Categorical focal crossentropy loss value."," \"\"\""," if isinstance(axis, bool):"," raise ValueError("," \"`axis` must be of type `int`. \""," f\"Received: axis={axis} of type {type(axis)}\""," )"," y_pred = tf.convert_to_tensor(y_pred)"," y_true = tf.cast(y_true, y_pred.dtype)"," label_smoothing = tf.convert_to_tensor(label_smoothing, dtype=y_pred.dtype)",""," if y_pred.shape[-1] == 1:"," warnings.warn("," \"In loss categorical_focal_crossentropy, expected \""," \"y_pred.shape to be (batch_size, num_classes) \""," f\"with num_classes \u003e 1. Received: y_pred.shape={y_pred.shape}. \""," \"Consider using 'binary_crossentropy' if you only have 2 classes.\","," SyntaxWarning,"," stacklevel=2,"," )",""," def _smooth_labels():"," num_classes = tf.cast(tf.shape(y_true)[-1], y_pred.dtype)"," return y_true * (1.0 - label_smoothing) + ("," label_smoothing / num_classes"," )",""," y_true = tf.__internal__.smart_cond.smart_cond("," label_smoothing, _smooth_labels, lambda: y_true"," )",""," return backend.categorical_focal_crossentropy("," target=y_true,"," output=y_pred,"," alpha=alpha,"," gamma=gamma,"," from_logits=from_logits,"," axis=axis,"," )","","","@dispatch.dispatch_for_types(categorical_focal_crossentropy, tf.RaggedTensor)","def _ragged_tensor_categorical_focal_crossentropy("," y_true,"," y_pred,"," alpha=0.25,"," gamma=2.0,"," from_logits=False,"," label_smoothing=0.0,"," axis=-1,","):"," \"\"\"Implements support for handling RaggedTensors.",""," Expected shape: (batch, sequence_len, n_classes) with sequence_len"," being variable per batch."," Return shape: (batch, sequence_len)."," When used by CategoricalFocalCrossentropy() with the default reduction"," (SUM_OVER_BATCH_SIZE), the reduction averages the loss over the"," number of elements independent of the batch. E.g. if the RaggedTensor"," has 2 batches with [2, 1] values respectively the resulting loss is"," the sum of the individual loss values divided by 3.",""," Args:"," alpha: A weight balancing factor for all classes, default is `0.25` as"," mentioned in the reference. It can be a list of floats or a scalar."," In the multi-class case, alpha may be set by inverse class"," frequency by using `compute_class_weight` from `sklearn.utils`."," gamma: A focusing parameter, default is `2.0` as mentioned in the"," reference. It helps to gradually reduce the importance given to"," simple examples in a smooth manner. When `gamma` = 0, there is"," no focal effect on the categorical crossentropy."," from_logits: Whether `y_pred` is expected to be a logits tensor. By"," default, we assume that `y_pred` encodes a probability distribution."," label_smoothing: Float in [0, 1]. If \u003e `0` then smooth the labels. For"," example, if `0.1`, use `0.1 / num_classes` for non-target labels"," and `0.9 + 0.1 / num_classes` for target labels."," axis: Defaults to -1. The dimension along which the entropy is"," computed.",""," Returns:"," Categorical focal crossentropy loss value."," \"\"\""," fn = functools.partial("," categorical_focal_crossentropy,"," alpha=alpha,"," gamma=gamma,"," from_logits=from_logits,"," label_smoothing=label_smoothing,"," axis=axis,"," )"," return _ragged_tensor_apply_loss(fn, y_true, y_pred)","","","@keras_export("," \"keras.metrics.sparse_categorical_crossentropy\","," \"keras.losses.sparse_categorical_crossentropy\",",")","@tf.__internal__.dispatch.add_dispatch_support","def sparse_categorical_crossentropy("," y_true, y_pred, from_logits=False, axis=-1, ignore_class=None","):"," \"\"\"Computes the sparse categorical crossentropy loss.",""," Standalone usage:",""," \u003e\u003e\u003e y_true = [1, 2]"," \u003e\u003e\u003e y_pred = [[0.05, 0.95, 0], [0.1, 0.8, 0.1]]"," \u003e\u003e\u003e loss = tf.keras.losses.sparse_categorical_crossentropy(y_true, y_pred)"," \u003e\u003e\u003e assert loss.shape == (2,)"," \u003e\u003e\u003e loss.numpy()"," array([0.0513, 2.303], dtype=float32)",""," \u003e\u003e\u003e y_true = [[[ 0, 2],"," ... [-1, -1]],"," ... [[ 0, 2],"," ... [-1, -1]]]"," \u003e\u003e\u003e y_pred = [[[[1.0, 0.0, 0.0], [0.0, 0.0, 1.0]],"," ... [[0.2, 0.5, 0.3], [0.0, 1.0, 0.0]]],"," ... [[[1.0, 0.0, 0.0], [0.0, 0.5, 0.5]],"," ... [[0.2, 0.5, 0.3], [0.0, 1.0, 0.0]]]]"," \u003e\u003e\u003e loss = tf.keras.losses.sparse_categorical_crossentropy("," ... y_true, y_pred, ignore_class=-1)"," \u003e\u003e\u003e loss.numpy()"," array([[[2.3841855e-07, 2.3841855e-07],"," [0.0000000e+00, 0.0000000e+00]],"," [[2.3841855e-07, 6.9314730e-01],"," [0.0000000e+00, 0.0000000e+00]]], dtype=float32)",""," Args:"," y_true: Ground truth values."," y_pred: The predicted values."," from_logits: Whether `y_pred` is expected to be a logits tensor. By"," default, we assume that `y_pred` encodes a probability distribution."," axis: Defaults to -1. The dimension along which the entropy is"," computed."," ignore_class: Optional integer. The ID of a class to be ignored during"," loss computation. This is useful, for example, in segmentation"," problems featuring a \"void\" class (commonly -1 or 255) in"," segmentation maps. By default (`ignore_class=None`), all classes are"," considered.",""," Returns:"," Sparse categorical crossentropy loss value."," \"\"\""," return backend.sparse_categorical_crossentropy("," y_true,"," y_pred,"," from_logits=from_logits,"," ignore_class=ignore_class,"," axis=axis,"," )","","","@dispatch.dispatch_for_types(sparse_categorical_crossentropy, tf.RaggedTensor)","def _ragged_tensor_sparse_categorical_crossentropy("," y_true, y_pred, from_logits=False, axis=-1, ignore_class=None","):"," \"\"\"Implements support for handling RaggedTensors.",""," Expected y_pred shape: (batch, sequence_len, n_classes) with sequence_len"," being variable per batch."," Return shape: (batch, sequence_len).",""," When used by SparseCategoricalCrossentropy() with the default reduction"," (SUM_OVER_BATCH_SIZE), the reduction averages the loss over the"," number of elements independent of the batch. E.g. if the RaggedTensor"," has 2 batches with [2, 1] values respectively, the resulting loss is"," the sum of the individual loss values divided by 3."," \"\"\""," fn = functools.partial("," sparse_categorical_crossentropy,"," from_logits=from_logits,"," ignore_class=ignore_class,"," axis=axis,"," )"," return _ragged_tensor_apply_loss(fn, y_true, y_pred, y_pred_extra_dim=True)","","","@keras_export("," \"keras.metrics.binary_crossentropy\", \"keras.losses.binary_crossentropy\"",")","@tf.__internal__.dispatch.add_dispatch_support","def binary_crossentropy("," y_true, y_pred, from_logits=False, label_smoothing=0.0, axis=-1","):"," \"\"\"Computes the binary crossentropy loss.",""," Standalone usage:",""," \u003e\u003e\u003e y_true = [[0, 1], [0, 0]]"," \u003e\u003e\u003e y_pred = [[0.6, 0.4], [0.4, 0.6]]"," \u003e\u003e\u003e loss = tf.keras.losses.binary_crossentropy(y_true, y_pred)"," \u003e\u003e\u003e assert loss.shape == (2,)"," \u003e\u003e\u003e loss.numpy()"," array([0.916 , 0.714], dtype=float32)",""," Args:"," y_true: Ground truth values. shape = `[batch_size, d0, .. dN]`."," y_pred: The predicted values. shape = `[batch_size, d0, .. dN]`."," from_logits: Whether `y_pred` is expected to be a logits tensor. By"," default, we assume that `y_pred` encodes a probability distribution."," label_smoothing: Float in [0, 1]. If \u003e `0` then smooth the labels by"," squeezing them towards 0.5 That is, using"," `1. - 0.5 * label_smoothing` for the target class and"," `0.5 * label_smoothing` for the non-target class."," axis: The axis along which the mean is computed. Defaults to -1.",""," Returns:"," Binary crossentropy loss value. shape = `[batch_size, d0, .. dN-1]`."," \"\"\""," y_pred = tf.convert_to_tensor(y_pred)"," y_true = tf.cast(y_true, y_pred.dtype)"," label_smoothing = tf.convert_to_tensor(label_smoothing, dtype=y_pred.dtype)",""," def _smooth_labels():"," return y_true * (1.0 - label_smoothing) + 0.5 * label_smoothing",""," y_true = tf.__internal__.smart_cond.smart_cond("," label_smoothing, _smooth_labels, lambda: y_true"," )",""," return backend.mean("," backend.binary_crossentropy(y_true, y_pred, from_logits=from_logits),"," axis=axis,"," )","","","@dispatch.dispatch_for_types(binary_crossentropy, tf.RaggedTensor)","def _ragged_tensor_binary_crossentropy("," y_true, y_pred, from_logits=False, label_smoothing=0.0, axis=-1","):"," \"\"\"Implements support for handling RaggedTensors.",""," Args:"," y_true: Tensor of one-hot true targets."," y_pred: Tensor of predicted targets."," from_logits: Whether `y_pred` is expected to be a logits tensor. By"," default, we assume that `y_pred` encodes a probability distribution."," label_smoothing: Float in [0, 1]. If \u003e `0` then smooth the labels. For"," example, if `0.1`, use `0.1 / num_classes` for non-target labels"," and `0.9 + 0.1 / num_classes` for target labels."," axis: Axis along which to compute crossentropy.",""," Returns:"," Binary crossentropy loss value.",""," Expected shape: (batch, sequence_len) with sequence_len being variable"," per batch."," Return shape: (batch,); returns the per batch mean of the loss values.",""," When used by BinaryCrossentropy() with the default reduction"," (SUM_OVER_BATCH_SIZE), the reduction averages the per batch losses over"," the number of batches."," \"\"\""," fn = functools.partial("," binary_crossentropy,"," from_logits=from_logits,"," label_smoothing=label_smoothing,"," axis=axis,"," )"," return _ragged_tensor_apply_loss(fn, y_true, y_pred)","","","@keras_export("," \"keras.metrics.binary_focal_crossentropy\","," \"keras.losses.binary_focal_crossentropy\",",")","@tf.__internal__.dispatch.add_dispatch_support","def binary_focal_crossentropy("," y_true,"," y_pred,"," apply_class_balancing=False,"," alpha=0.25,"," gamma=2.0,"," from_logits=False,"," label_smoothing=0.0,"," axis=-1,","):"," \"\"\"Computes the binary focal crossentropy loss.",""," According to [Lin et al., 2018](https://arxiv.org/pdf/1708.02002.pdf), it"," helps to apply a focal factor to down-weight easy examples and focus more on"," hard examples. By default, the focal tensor is computed as follows:",""," `focal_factor = (1 - output)**gamma` for class 1"," `focal_factor = output**gamma` for class 0"," where `gamma` is a focusing parameter. When `gamma` = 0, there is no focal"," effect on the binary crossentropy loss.",""," If `apply_class_balancing == True`, this function also takes into account a"," weight balancing factor for the binary classes 0 and 1 as follows:",""," `weight = alpha` for class 1 (`target == 1`)"," `weight = 1 - alpha` for class 0"," where `alpha` is a float in the range of `[0, 1]`.",""," Standalone usage:",""," \u003e\u003e\u003e y_true = [[0, 1], [0, 0]]"," \u003e\u003e\u003e y_pred = [[0.6, 0.4], [0.4, 0.6]]"," \u003e\u003e\u003e loss = tf.keras.losses.binary_focal_crossentropy(y_true, y_pred,"," ... gamma=2)"," \u003e\u003e\u003e assert loss.shape == (2,)"," \u003e\u003e\u003e loss.numpy()"," array([0.330, 0.206], dtype=float32)",""," Args:"," y_true: Ground truth values, of shape `(batch_size, d0, .. dN)`."," y_pred: The predicted values, of shape `(batch_size, d0, .. dN)`."," apply_class_balancing: A bool, whether to apply weight balancing on the"," binary classes 0 and 1."," alpha: A weight balancing factor for class 1, default is `0.25` as"," mentioned in the reference. The weight for class 0 is `1.0 - alpha`."," gamma: A focusing parameter, default is `2.0` as mentioned in the"," reference."," from_logits: Whether `y_pred` is expected to be a logits tensor. By"," default, we assume that `y_pred` encodes a probability distribution."," label_smoothing: Float in `[0, 1]`. If higher than 0 then smooth the"," labels by squeezing them towards `0.5`, i.e., using `1. - 0.5 *"," label_smoothing` for the target class and `0.5 * label_smoothing`"," for the non-target class."," axis: The axis along which the mean is computed. Defaults to `-1`.",""," Returns:"," Binary focal crossentropy loss value."," shape = `[batch_size, d0, .. dN-1]`."," \"\"\""," y_pred = tf.convert_to_tensor(y_pred)"," y_true = tf.cast(y_true, y_pred.dtype)"," label_smoothing = tf.convert_to_tensor(label_smoothing, dtype=y_pred.dtype)",""," def _smooth_labels():"," return y_true * (1.0 - label_smoothing) + 0.5 * label_smoothing",""," y_true = tf.__internal__.smart_cond.smart_cond("," label_smoothing, _smooth_labels, lambda: y_true"," )",""," return backend.mean("," backend.binary_focal_crossentropy("," target=y_true,"," output=y_pred,"," apply_class_balancing=apply_class_balancing,"," alpha=alpha,"," gamma=gamma,"," from_logits=from_logits,"," ),"," axis=axis,"," )","","","@dispatch.dispatch_for_types(binary_focal_crossentropy, tf.RaggedTensor)","def _ragged_tensor_binary_focal_crossentropy("," y_true,"," y_pred,"," apply_class_balancing=False,"," alpha=0.25,"," gamma=2.0,"," from_logits=False,"," label_smoothing=0.0,"," axis=-1,","):"," \"\"\"Implements support for handling RaggedTensors.",""," Expected shape: `(batch, sequence_len)` with sequence_len being variable per"," batch."," Return shape: `(batch,)`; returns the per batch mean of the loss values.",""," When used by BinaryFocalCrossentropy() with the default reduction"," (SUM_OVER_BATCH_SIZE), the reduction averages the per batch losses over"," the number of batches.",""," Args:"," y_true: Tensor of one-hot true targets."," y_pred: Tensor of predicted targets."," apply_class_balancing: A bool, whether to apply weight balancing on the"," binary classes 0 and 1."," alpha: A weight balancing factor for class 1, default is `0.25` as"," mentioned in the reference [Lin et al., 2018]("," https://arxiv.org/pdf/1708.02002.pdf). The weight for class 0 is"," `1.0 - alpha`."," gamma: A focusing parameter, default is `2.0` as mentioned in the"," reference."," from_logits: Whether `y_pred` is expected to be a logits tensor. By"," default, we assume that `y_pred` encodes a probability distribution."," label_smoothing: Float in `[0, 1]`. If \u003e `0` then smooth the labels. For"," example, if `0.1`, use `0.1 / num_classes` for non-target labels"," and `0.9 + 0.1 / num_classes` for target labels."," axis: Axis along which to compute crossentropy.",""," Returns:"," Binary focal crossentropy loss value."," \"\"\""," fn = functools.partial("," binary_focal_crossentropy,"," apply_class_balancing=apply_class_balancing,"," alpha=alpha,"," gamma=gamma,"," from_logits=from_logits,"," label_smoothing=label_smoothing,"," axis=axis,"," )"," return _ragged_tensor_apply_loss(fn, y_true, y_pred)","","","@keras_export("," \"keras.metrics.kl_divergence\","," \"keras.metrics.kullback_leibler_divergence\","," \"keras.metrics.kld\","," \"keras.metrics.KLD\","," \"keras.losses.kl_divergence\","," \"keras.losses.kullback_leibler_divergence\","," \"keras.losses.kld\","," \"keras.losses.KLD\",",")","@tf.__internal__.dispatch.add_dispatch_support","def kl_divergence(y_true, y_pred):"," \"\"\"Computes Kullback-Leibler divergence loss between `y_true` \u0026 `y_pred`.",""," `loss = y_true * log(y_true / y_pred)`",""," See: https://en.wikipedia.org/wiki/Kullback%E2%80%93Leibler_divergence",""," Standalone usage:",""," \u003e\u003e\u003e y_true = np.random.randint(0, 2, size=(2, 3)).astype(np.float64)"," \u003e\u003e\u003e y_pred = np.random.random(size=(2, 3))"," \u003e\u003e\u003e loss = tf.keras.losses.kullback_leibler_divergence(y_true, y_pred)"," \u003e\u003e\u003e assert loss.shape == (2,)"," \u003e\u003e\u003e y_true = tf.keras.backend.clip(y_true, 1e-7, 1)"," \u003e\u003e\u003e y_pred = tf.keras.backend.clip(y_pred, 1e-7, 1)"," \u003e\u003e\u003e assert np.array_equal("," ... loss.numpy(), np.sum(y_true * np.log(y_true / y_pred), axis=-1))",""," Args:"," y_true: Tensor of true targets."," y_pred: Tensor of predicted targets.",""," Returns:"," A `Tensor` with loss.",""," Raises:"," TypeError: If `y_true` cannot be cast to the `y_pred.dtype`."," \"\"\""," y_pred = tf.convert_to_tensor(y_pred)"," y_true = tf.cast(y_true, y_pred.dtype)"," y_true = backend.clip(y_true, backend.epsilon(), 1)"," y_pred = backend.clip(y_pred, backend.epsilon(), 1)"," return tf.reduce_sum(y_true * tf.math.log(y_true / y_pred), axis=-1)","","","@keras_export(\"keras.metrics.poisson\", \"keras.losses.poisson\")","@tf.__internal__.dispatch.add_dispatch_support","def poisson(y_true, y_pred):"," \"\"\"Computes the Poisson loss between y_true and y_pred.",""," The Poisson loss is the mean of the elements of the `Tensor`"," `y_pred - y_true * log(y_pred)`.",""," Standalone usage:",""," \u003e\u003e\u003e y_true = np.random.randint(0, 2, size=(2, 3))"," \u003e\u003e\u003e y_pred = np.random.random(size=(2, 3))"," \u003e\u003e\u003e loss = tf.keras.losses.poisson(y_true, y_pred)"," \u003e\u003e\u003e assert loss.shape == (2,)"," \u003e\u003e\u003e y_pred = y_pred + 1e-7"," \u003e\u003e\u003e assert np.allclose("," ... loss.numpy(), np.mean(y_pred - y_true * np.log(y_pred), axis=-1),"," ... atol=1e-5)",""," Args:"," y_true: Ground truth values. shape = `[batch_size, d0, .. dN]`."," y_pred: The predicted values. shape = `[batch_size, d0, .. dN]`.",""," Returns:"," Poisson loss value. shape = `[batch_size, d0, .. dN-1]`.",""," Raises:"," InvalidArgumentError: If `y_true` and `y_pred` have incompatible shapes."," \"\"\""," y_pred = tf.convert_to_tensor(y_pred)"," y_true = tf.cast(y_true, y_pred.dtype)"," return backend.mean("," y_pred - y_true * tf.math.log(y_pred + backend.epsilon()), axis=-1"," )","","","@keras_export("," \"keras.losses.cosine_similarity\","," v1=["," \"keras.metrics.cosine_proximity\","," \"keras.metrics.cosine\","," \"keras.losses.cosine_proximity\","," \"keras.losses.cosine\","," \"keras.losses.cosine_similarity\","," ],",")","@tf.__internal__.dispatch.add_dispatch_support","def cosine_similarity(y_true, y_pred, axis=-1):"," \"\"\"Computes the cosine similarity between labels and predictions.",""," Note that it is a number between -1 and 1. When it is a negative number"," between -1 and 0, 0 indicates orthogonality and values closer to -1"," indicate greater similarity. The values closer to 1 indicate greater"," dissimilarity. This makes it usable as a loss function in a setting"," where you try to maximize the proximity between predictions and"," targets. If either `y_true` or `y_pred` is a zero vector, cosine"," similarity will be 0 regardless of the proximity between predictions"," and targets.",""," `loss = -sum(l2_norm(y_true) * l2_norm(y_pred))`",""," Standalone usage:",""," \u003e\u003e\u003e y_true = [[0., 1.], [1., 1.], [1., 1.]]"," \u003e\u003e\u003e y_pred = [[1., 0.], [1., 1.], [-1., -1.]]"," \u003e\u003e\u003e loss = tf.keras.losses.cosine_similarity(y_true, y_pred, axis=1)"," \u003e\u003e\u003e loss.numpy()"," array([-0., -0.999, 0.999], dtype=float32)",""," Args:"," y_true: Tensor of true targets."," y_pred: Tensor of predicted targets."," axis: Axis along which to determine similarity.",""," Returns:"," Cosine similarity tensor."," \"\"\""," y_true = tf.linalg.l2_normalize(y_true, axis=axis)"," y_pred = tf.linalg.l2_normalize(y_pred, axis=axis)"," return -tf.reduce_sum(y_true * y_pred, axis=axis)","","","# Aliases.","","bce = BCE = binary_crossentropy","mse = MSE = mean_squared_error","mae = MAE = mean_absolute_error","mape = MAPE = mean_absolute_percentage_error","msle = MSLE = mean_squared_logarithmic_error","kld = KLD = kullback_leibler_divergence = kl_divergence","logcosh = log_cosh","huber_loss = huber","","","def is_categorical_crossentropy(loss):"," result = ("," isinstance(loss, CategoricalCrossentropy)"," or ("," isinstance(loss, LossFunctionWrapper)"," and loss.fn == categorical_crossentropy"," )"," or ("," hasattr(loss, \"__name__\")"," and loss.__name__ == \"categorical_crossentropy\""," )"," or (loss == \"categorical_crossentropy\")"," )"," return result","","","@keras_export(\"keras.losses.serialize\")","def serialize(loss, use_legacy_format=False):"," \"\"\"Serializes loss function or `Loss` instance.",""," Args:"," loss: A TF-Keras `Loss` instance or a loss function."," use_legacy_format: Boolean, whether to use the legacy serialization"," format. Defaults to `False`.",""," Returns:"," Loss configuration dictionary."," \"\"\""," if loss is None:"," return None"," if not isinstance(loss, Loss):"," warnings.warn("," \"The `keras.losses.serialize()` API should only be used for \""," \"objects of type `keras.losses.Loss`. Found an instance of type \""," f\"{type(loss)}, which may lead to improper serialization.\""," )"," if use_legacy_format:"," return legacy_serialization.serialize_keras_object(loss)"," return serialize_keras_object(loss)","","","@keras_export(\"keras.losses.deserialize\")","def deserialize(name, custom_objects=None, use_legacy_format=False):"," \"\"\"Deserializes a serialized loss class/function instance.",""," Args:"," name: Loss configuration."," custom_objects: Optional dictionary mapping names (strings) to custom"," objects (classes and functions) to be considered during"," deserialization."," use_legacy_format: Boolean, whether to use the legacy serialization"," format. Defaults to `False`.",""," Returns:"," A TF-Keras `Loss` instance or a loss function."," \"\"\""," if use_legacy_format:"," return legacy_serialization.deserialize_keras_object("," name,"," module_objects=globals(),"," custom_objects=custom_objects,"," printable_module_name=\"loss function\","," )"," return deserialize_keras_object("," name,"," module_objects=globals(),"," custom_objects=custom_objects,"," printable_module_name=\"loss function\","," )","","","@keras_export(\"keras.losses.get\")","def get(identifier):"," \"\"\"Retrieves a TF-Keras loss as a `function`/`Loss` class instance.",""," The `identifier` may be the string name of a loss function or `Loss` class.",""," \u003e\u003e\u003e loss = tf.keras.losses.get(\"categorical_crossentropy\")"," \u003e\u003e\u003e type(loss)"," \u003cclass 'function'\u003e"," \u003e\u003e\u003e loss = tf.keras.losses.get(\"CategoricalCrossentropy\")"," \u003e\u003e\u003e type(loss)"," \u003cclass '...keras.losses.CategoricalCrossentropy'\u003e",""," You can also specify `config` of the loss to this function by passing dict"," containing `class_name` and `config` as an identifier. Also note that the"," `class_name` must map to a `Loss` class",""," \u003e\u003e\u003e identifier = {\"class_name\": \"CategoricalCrossentropy\","," ... \"config\": {\"from_logits\": True}}"," \u003e\u003e\u003e loss = tf.keras.losses.get(identifier)"," \u003e\u003e\u003e type(loss)"," \u003cclass '...keras.losses.CategoricalCrossentropy'\u003e",""," Args:"," identifier: A loss identifier. One of None or string name of a loss"," function/class or loss configuration dictionary or a loss function"," or a loss class instance.",""," Returns:"," A TF-Keras loss as a `function`/ `Loss` class instance.",""," Raises:"," ValueError: If `identifier` cannot be interpreted."," \"\"\""," if identifier is None:"," return None"," if isinstance(identifier, str):"," identifier = str(identifier)"," use_legacy_format = \"module\" not in identifier"," return deserialize(identifier, use_legacy_format=use_legacy_format)"," if isinstance(identifier, dict):"," return deserialize(identifier)"," if callable(identifier):"," return identifier"," raise ValueError("," f\"Could not interpret loss function identifier: {identifier}\""," )","","","LABEL_DTYPES_FOR_LOSSES = {"," tf.compat.v1.losses.sparse_softmax_cross_entropy: \"int32\","," sparse_categorical_crossentropy: \"int32\",","}"],"stylingDirectives":[[[0,61,"pl-c"]],[[0,1,"pl-c"]],[[0,65,"pl-c"]],[[0,66,"pl-c"]],[[0,41,"pl-c"]],[[0,1,"pl-c"]],[[0,48,"pl-c"]],[[0,1,"pl-c"]],[[0,69,"pl-c"]],[[0,67,"pl-c"]],[[0,74,"pl-c"]],[[0,69,"pl-c"]],[[0,32,"pl-c"]],[[0,80,"pl-c"]],[],[[0,30,"pl-s"]],[],[],[[0,6,"pl-k"],[7,10,"pl-s1"]],[[0,6,"pl-k"],[7,16,"pl-s1"]],[[0,6,"pl-k"],[7,15,"pl-s1"]],[],[[0,6,"pl-k"],[7,17,"pl-s1"],[18,24,"pl-s1"],[25,27,"pl-s1"],[28,30,"pl-k"],[31,33,"pl-s1"]],[],[[0,4,"pl-k"],[5,13,"pl-s1"],[14,20,"pl-k"],[21,28,"pl-s1"]],[[0,4,"pl-k"],[5,13,"pl-s1"],[14,20,"pl-s1"],[21,27,"pl-k"],[28,38,"pl-s1"]],[[0,4,"pl-k"],[5,13,"pl-s1"],[14,20,"pl-s1"],[21,27,"pl-s1"],[28,34,"pl-k"],[35,48,"pl-s1"],[49,51,"pl-k"],[52,72,"pl-s1"]],[[0,4,"pl-k"],[5,13,"pl-s1"],[14,20,"pl-s1"],[21,38,"pl-s1"],[39,45,"pl-k"],[46,70,"pl-s1"]],[[0,4,"pl-k"],[5,13,"pl-s1"],[14,20,"pl-s1"],[21,38,"pl-s1"],[39,45,"pl-k"],[46,68,"pl-s1"]],[[0,4,"pl-k"],[5,13,"pl-s1"],[14,19,"pl-s1"],[20,26,"pl-k"],[27,39,"pl-s1"]],[[0,4,"pl-k"],[5,13,"pl-s1"],[14,19,"pl-s1"],[20,26,"pl-k"],[27,35,"pl-s1"]],[],[[0,12,"pl-c"]],[[0,4,"pl-k"],[5,15,"pl-s1"],[16,22,"pl-s1"],[23,26,"pl-s1"],[27,33,"pl-s1"],[34,40,"pl-k"],[41,55,"pl-s1"]],[[0,4,"pl-k"],[5,15,"pl-s1"],[16,22,"pl-s1"],[23,26,"pl-s1"],[27,33,"pl-s1"],[34,40,"pl-k"],[41,52,"pl-s1"]],[[0,4,"pl-k"],[5,15,"pl-s1"],[16,22,"pl-s1"],[23,27,"pl-s1"],[28,34,"pl-k"],[35,43,"pl-s1"]],[[0,4,"pl-k"],[5,15,"pl-s1"],[16,22,"pl-s1"],[23,27,"pl-s1"],[28,37,"pl-s1"],[38,44,"pl-k"],[45,57,"pl-s1"]],[[0,4,"pl-k"],[5,15,"pl-s1"],[16,21,"pl-s1"],[22,26,"pl-s1"],[27,33,"pl-k"],[34,46,"pl-s1"]],[],[],[[0,34,"pl-en"],[1,13,"pl-en"],[14,33,"pl-s"]],[[0,5,"pl-k"],[6,10,"pl-v"]],[[4,23,"pl-s"]],[[0,0,"pl-s"]],[[0,36,"pl-s"]],[[0,71,"pl-s"]],[[0,17,"pl-s"]],[[0,0,"pl-s"]],[[0,36,"pl-s"]],[[0,0,"pl-s"]],[[0,13,"pl-s"]],[[0,33,"pl-s"]],[[0,0,"pl-s"]],[[0,37,"pl-s"]],[[0,73,"pl-s"]],[[0,7,"pl-s"]],[[0,0,"pl-s"]],[[0,73,"pl-s"]],[[0,71,"pl-s"]],[[0,72,"pl-s"]],[[0,74,"pl-s"]],[[0,76,"pl-s"]],[[0,35,"pl-s"]],[[0,79,"pl-s"]],[[0,29,"pl-s"]],[[0,7,"pl-s"]],[],[[4,7,"pl-k"],[8,16,"pl-en"],[17,21,"pl-s1"],[23,32,"pl-s1"],[32,33,"pl-c1"],[33,45,"pl-s1"],[46,57,"pl-c1"],[58,62,"pl-c1"],[64,68,"pl-s1"],[68,69,"pl-c1"],[69,73,"pl-c1"]],[[8,36,"pl-s"]],[[0,0,"pl-s"]],[[0,13,"pl-s"]],[[0,70,"pl-s"]],[[0,72,"pl-s"]],[[0,77,"pl-s"]],[[0,77,"pl-s"]],[[0,65,"pl-s"]],[[0,68,"pl-s"]],[[0,74,"pl-s"]],[[0,43,"pl-s"]],[[0,80,"pl-s"]],[[0,33,"pl-s"]],[[0,49,"pl-s"]],[[0,11,"pl-s"]],[[8,20,"pl-s1"],[21,32,"pl-c1"],[33,41,"pl-c1"],[42,51,"pl-s1"]],[[8,12,"pl-s1"],[13,22,"pl-c1"],[23,24,"pl-c1"],[25,34,"pl-s1"]],[[8,12,"pl-s1"],[13,17,"pl-c1"],[18,19,"pl-c1"],[20,24,"pl-s1"]],[[8,70,"pl-c"]],[[8,27,"pl-c"]],[[8,12,"pl-s1"],[13,39,"pl-c1"],[40,41,"pl-c1"],[42,47,"pl-c1"]],[[8,12,"pl-s1"],[13,28,"pl-c1"]],[],[[4,7,"pl-k"],[8,23,"pl-en"],[24,28,"pl-s1"]],[[8,48,"pl-s"]],[[8,10,"pl-k"],[11,15,"pl-s1"],[16,20,"pl-c1"],[21,23,"pl-c1"],[24,28,"pl-c1"]],[[12,16,"pl-s1"],[17,28,"pl-c1"],[29,30,"pl-c1"],[31,35,"pl-s1"],[36,45,"pl-c1"],[46,54,"pl-c1"],[55,60,"pl-c1"],[61,64,"pl-s"]],[[8,12,"pl-k"],[13,17,"pl-s1"],[18,22,"pl-c1"],[23,25,"pl-c1"],[26,36,"pl-s"]],[[12,16,"pl-s1"],[17,28,"pl-c1"],[29,30,"pl-c1"],[31,39,"pl-s"]],[[8,12,"pl-k"]],[[12,42,"pl-c"]],[[12,16,"pl-s1"],[17,28,"pl-c1"],[29,30,"pl-c1"],[31,35,"pl-s1"],[36,40,"pl-c1"],[41,46,"pl-c1"],[47,50,"pl-s"]],[],[[4,7,"pl-k"],[8,16,"pl-en"],[17,21,"pl-s1"],[23,29,"pl-s1"],[31,37,"pl-s1"],[39,52,"pl-s1"],[52,53,"pl-c1"],[53,57,"pl-c1"]],[[8,39,"pl-s"]],[[0,0,"pl-s"]],[[0,13,"pl-s"]],[[0,75,"pl-s"]],[[0,71,"pl-s"]],[[0,70,"pl-s"]],[[0,75,"pl-s"]],[[0,77,"pl-s"]],[[0,74,"pl-s"]],[[0,76,"pl-s"]],[[0,79,"pl-s"]],[[0,69,"pl-s"]],[[0,74,"pl-s"]],[[0,74,"pl-s"]],[[0,75,"pl-s"]],[[0,80,"pl-s"]],[[0,66,"pl-s"]],[[0,0,"pl-s"]],[[0,16,"pl-s"]],[[0,76,"pl-s"]],[[0,75,"pl-s"]],[[0,78,"pl-s"]],[[0,33,"pl-s"]],[[0,0,"pl-s"]],[[0,15,"pl-s"]],[[0,65,"pl-s"]],[[0,11,"pl-s"]],[[8,80,"pl-c"]],[[8,37,"pl-c"]],[[8,17,"pl-s1"],[18,19,"pl-c1"],[20,28,"pl-s1"],[29,63,"pl-c1"]],[[12,18,"pl-s1"],[20,26,"pl-s1"],[28,41,"pl-s1"]],[],[[8,12,"pl-k"],[13,20,"pl-s1"],[21,31,"pl-c1"],[32,36,"pl-s1"],[37,48,"pl-c1"],[51,60,"pl-s1"]],[[12,14,"pl-k"],[15,17,"pl-s1"],[18,35,"pl-c1"]],[[16,23,"pl-s1"],[24,25,"pl-c1"],[26,30,"pl-s1"],[31,35,"pl-c1"]],[[12,16,"pl-k"]],[[16,23,"pl-s1"],[24,25,"pl-c1"],[26,28,"pl-s1"],[29,41,"pl-c1"],[42,51,"pl-c1"],[52,62,"pl-c1"]],[[20,24,"pl-s1"],[25,29,"pl-c1"],[31,33,"pl-s1"],[34,46,"pl-c1"],[47,56,"pl-c1"],[57,75,"pl-c1"]],[],[],[[12,18,"pl-s1"],[19,20,"pl-c1"],[21,28,"pl-en"],[29,35,"pl-s1"],[37,43,"pl-s1"]],[],[[12,19,"pl-s1"],[20,21,"pl-c1"],[22,34,"pl-s1"],[35,43,"pl-c1"],[44,50,"pl-s1"]],[[12,20,"pl-s1"],[21,22,"pl-c1"],[23,35,"pl-s1"],[36,44,"pl-c1"],[45,51,"pl-s1"]],[],[[12,14,"pl-k"],[15,22,"pl-s1"],[23,29,"pl-c1"],[23,25,"pl-c1"],[26,29,"pl-c1"],[30,34,"pl-c1"],[35,38,"pl-c1"],[39,47,"pl-s1"],[48,54,"pl-c1"],[48,50,"pl-c1"],[51,54,"pl-c1"],[55,59,"pl-c1"]],[[16,20,"pl-s1"],[21,22,"pl-c1"],[23,30,"pl-s1"],[31,32,"pl-c1"],[33,41,"pl-s1"]],[[12,16,"pl-k"],[17,24,"pl-s1"],[25,31,"pl-c1"],[25,27,"pl-c1"],[28,31,"pl-c1"],[32,36,"pl-c1"]],[[16,20,"pl-s1"],[21,22,"pl-c1"],[23,30,"pl-s1"]],[[12,16,"pl-k"],[17,25,"pl-s1"],[26,32,"pl-c1"],[26,28,"pl-c1"],[29,32,"pl-c1"],[33,37,"pl-c1"]],[[16,20,"pl-s1"],[21,22,"pl-c1"],[23,31,"pl-s1"]],[[12,16,"pl-k"]],[[16,20,"pl-s1"],[21,22,"pl-c1"],[23,27,"pl-c1"]],[],[[12,21,"pl-s1"],[22,23,"pl-c1"],[24,28,"pl-s1"],[29,43,"pl-c1"]],[[12,25,"pl-s1"],[26,27,"pl-c1"],[28,40,"pl-s1"],[41,57,"pl-c1"]],[[16,22,"pl-s1"],[24,37,"pl-s1"],[39,43,"pl-s1"],[45,54,"pl-s1"]],[],[[12,18,"pl-k"],[19,31,"pl-s1"],[32,53,"pl-c1"]],[[16,22,"pl-s1"],[24,37,"pl-s1"],[39,48,"pl-s1"],[48,49,"pl-c1"],[49,58,"pl-s1"]],[],[],[[4,16,"pl-en"],[5,16,"pl-s1"]],[[4,7,"pl-k"],[8,19,"pl-en"],[20,23,"pl-s1"],[25,31,"pl-s1"]],[[8,76,"pl-s"]],[[0,0,"pl-s"]],[[0,13,"pl-s"]],[[0,45,"pl-s"]],[[0,0,"pl-s"]],[[0,16,"pl-s"]],[[0,30,"pl-s"]],[[0,11,"pl-s"]],[[8,14,"pl-k"],[15,18,"pl-en"],[19,21,"pl-c1"],[21,27,"pl-s1"]],[],[[4,7,"pl-k"],[8,18,"pl-en"],[19,23,"pl-s1"]],[[8,66,"pl-s"]],[[8,14,"pl-k"],[16,27,"pl-s"],[29,33,"pl-s1"],[34,43,"pl-c1"],[45,51,"pl-s"],[53,57,"pl-s1"],[58,62,"pl-c1"]],[],[[4,23,"pl-en"],[5,8,"pl-s1"],[9,23,"pl-c1"]],[[4,43,"pl-en"],[5,17,"pl-s1"],[18,43,"pl-c1"]],[[4,7,"pl-k"],[8,12,"pl-en"],[13,17,"pl-s1"],[19,25,"pl-s1"],[27,33,"pl-s1"]],[[8,39,"pl-s"]],[[0,0,"pl-s"]],[[0,13,"pl-s"]],[[0,75,"pl-s"]],[[0,71,"pl-s"]],[[0,70,"pl-s"]],[[0,75,"pl-s"]],[[0,0,"pl-s"]],[[0,16,"pl-s"]],[[0,67,"pl-s"]],[[0,11,"pl-s"]],[[8,13,"pl-k"],[14,33,"pl-en"],[34,70,"pl-s"]],[],[[4,7,"pl-k"],[8,22,"pl-en"],[23,27,"pl-s1"]],[[8,77,"pl-s"]],[[8,10,"pl-k"]],[[12,15,"pl-c1"],[16,20,"pl-s1"],[21,47,"pl-c1"]],[[12,15,"pl-c1"],[16,18,"pl-s1"],[19,29,"pl-c1"],[30,42,"pl-c1"]],[[12,15,"pl-c1"]],[[16,20,"pl-s1"],[21,30,"pl-c1"],[31,33,"pl-c1"],[34,46,"pl-s1"],[47,58,"pl-c1"],[59,63,"pl-c1"]],[[16,18,"pl-c1"],[19,23,"pl-s1"],[24,33,"pl-c1"]],[[16,18,"pl-c1"],[19,31,"pl-s1"],[32,43,"pl-c1"],[44,63,"pl-c1"]],[],[],[[12,17,"pl-k"],[18,28,"pl-en"]],[[16,64,"pl-s"]],[[16,75,"pl-s"]],[[16,65,"pl-s"]],[[16,68,"pl-s"]],[[16,73,"pl-s"],[70,72,"pl-cce"]],[[16,65,"pl-s"]],[[16,63,"pl-s"]],[],[],[[8,10,"pl-k"],[11,15,"pl-s1"],[16,25,"pl-c1"],[26,28,"pl-c1"],[29,41,"pl-s1"],[42,53,"pl-c1"],[54,58,"pl-c1"]],[[12,18,"pl-k"],[19,31,"pl-s1"],[32,43,"pl-c1"],[44,63,"pl-c1"]],[[8,14,"pl-k"],[15,19,"pl-s1"],[20,29,"pl-c1"]],[],[],[[0,69,"pl-en"],[1,13,"pl-en"],[14,61,"pl-s"],[63,65,"pl-s1"],[65,66,"pl-c1"]],[[0,5,"pl-k"],[6,25,"pl-v"],[26,30,"pl-v"]],[[4,52,"pl-s"]],[],[[4,7,"pl-k"],[8,16,"pl-en"]],[[8,12,"pl-s1"],[14,16,"pl-s1"],[18,27,"pl-s1"],[27,28,"pl-c1"],[28,40,"pl-s1"],[41,52,"pl-c1"],[53,57,"pl-c1"],[59,63,"pl-s1"],[63,64,"pl-c1"],[64,68,"pl-c1"],[70,72,"pl-c1"],[72,78,"pl-s1"]],[],[[8,51,"pl-s"]],[[0,0,"pl-s"]],[[0,13,"pl-s"]],[[0,77,"pl-s"]],[[0,27,"pl-s"]],[[0,70,"pl-s"]],[[0,72,"pl-s"]],[[0,77,"pl-s"]],[[0,77,"pl-s"]],[[0,65,"pl-s"]],[[0,68,"pl-s"]],[[0,74,"pl-s"]],[[0,43,"pl-s"]],[[0,80,"pl-s"]],[[0,33,"pl-s"]],[[0,49,"pl-s"]],[[0,71,"pl-s"]],[[0,11,"pl-s"]],[[8,13,"pl-en"],[16,24,"pl-c1"],[25,34,"pl-s1"],[34,35,"pl-c1"],[35,44,"pl-s1"],[46,50,"pl-s1"],[50,51,"pl-c1"],[51,55,"pl-s1"]],[[8,12,"pl-s1"],[13,15,"pl-c1"],[16,17,"pl-c1"],[18,20,"pl-s1"]],[[8,12,"pl-s1"],[13,23,"pl-c1"],[24,25,"pl-c1"],[26,32,"pl-s1"]],[],[[4,7,"pl-k"],[8,12,"pl-en"],[13,17,"pl-s1"],[19,25,"pl-s1"],[27,33,"pl-s1"]],[[8,54,"pl-s"]],[[0,0,"pl-s"]],[[0,13,"pl-s"]],[[0,40,"pl-s"]],[[0,41,"pl-s"]],[[0,0,"pl-s"]],[[0,16,"pl-s"]],[[0,35,"pl-s"]],[[0,11,"pl-s"]],[[8,10,"pl-k"],[11,13,"pl-s1"],[14,23,"pl-c1"],[24,30,"pl-s1"],[32,35,"pl-c1"],[36,38,"pl-s1"],[39,48,"pl-c1"],[49,55,"pl-s1"]],[[12,18,"pl-s1"],[20,26,"pl-s1"],[27,28,"pl-c1"],[29,41,"pl-s1"],[42,70,"pl-c1"]],[[16,22,"pl-s1"],[24,30,"pl-s1"]],[],[],[[8,13,"pl-s1"],[14,15,"pl-c1"],[16,18,"pl-s1"],[19,31,"pl-c1"],[32,41,"pl-c1"],[42,52,"pl-c1"]],[[12,16,"pl-s1"],[17,19,"pl-c1"],[21,23,"pl-s1"],[24,36,"pl-c1"],[37,46,"pl-c1"],[47,65,"pl-c1"]],[],[[8,14,"pl-k"],[15,20,"pl-en"],[21,27,"pl-s1"],[29,35,"pl-s1"],[37,39,"pl-c1"],[39,43,"pl-s1"],[44,54,"pl-c1"]],[],[[4,7,"pl-k"],[8,18,"pl-en"],[19,23,"pl-s1"]],[[8,14,"pl-s1"],[15,16,"pl-c1"]],[[8,11,"pl-k"],[12,13,"pl-s1"],[15,16,"pl-s1"],[17,19,"pl-c1"],[20,24,"pl-s1"],[25,35,"pl-c1"],[36,41,"pl-c1"]],[[12,18,"pl-s1"],[19,20,"pl-s1"],[22,23,"pl-c1"]],[[16,23,"pl-s1"],[24,28,"pl-c1"],[29,30,"pl-s1"],[32,34,"pl-k"],[35,43,"pl-s1"],[44,65,"pl-c1"],[66,67,"pl-s1"],[69,73,"pl-k"],[74,75,"pl-s1"]],[],[],[[8,10,"pl-k"],[11,21,"pl-s1"],[22,39,"pl-c1"]],[[12,16,"pl-k"],[17,25,"pl-s1"],[26,31,"pl-s1"],[32,38,"pl-k"],[39,58,"pl-s1"]],[],[[12,18,"pl-s1"],[19,23,"pl-s"],[25,26,"pl-c1"],[27,46,"pl-en"],[47,51,"pl-s1"],[52,54,"pl-c1"]],[],[[8,19,"pl-s1"],[20,21,"pl-c1"],[22,27,"pl-en"],[30,40,"pl-c1"]],[[8,14,"pl-k"],[15,19,"pl-en"],[20,24,"pl-en"],[25,36,"pl-s1"],[37,42,"pl-c1"],[46,47,"pl-c1"],[48,52,"pl-en"],[53,59,"pl-s1"],[60,65,"pl-c1"]],[],[[4,16,"pl-en"],[5,16,"pl-s1"]],[[4,7,"pl-k"],[8,19,"pl-en"],[20,23,"pl-s1"],[25,31,"pl-s1"]],[[8,76,"pl-s"]],[[0,0,"pl-s"]],[[0,13,"pl-s"]],[[0,45,"pl-s"]],[[0,0,"pl-s"]],[[0,16,"pl-s"]],[[0,43,"pl-s"]],[[0,11,"pl-s"]],[[8,10,"pl-k"],[11,21,"pl-s1"],[22,39,"pl-c1"]],[[12,19,"pl-s1"],[20,21,"pl-c1"],[22,28,"pl-s1"],[29,32,"pl-c1"],[33,37,"pl-s"],[39,43,"pl-c1"]],[[12,14,"pl-k"],[15,22,"pl-s1"],[23,26,"pl-c1"],[27,30,"pl-s1"],[31,33,"pl-c1"],[34,53,"pl-v"]],[[16,22,"pl-s1"],[23,27,"pl-s"],[29,30,"pl-c1"],[31,34,"pl-en"],[35,42,"pl-s1"]],[[8,14,"pl-k"],[15,18,"pl-en"],[19,21,"pl-c1"],[21,27,"pl-s1"]],[],[],[[0,46,"pl-en"],[1,13,"pl-en"],[14,45,"pl-s"]],[[0,5,"pl-k"],[6,22,"pl-v"],[23,42,"pl-v"]],[[4,77,"pl-s"]],[[0,0,"pl-s"]],[[0,42,"pl-s"]],[[0,0,"pl-s"]],[[0,21,"pl-s"]],[[0,0,"pl-s"]],[[0,37,"pl-s"]],[[0,37,"pl-s"]],[[0,60,"pl-s"]],[[0,48,"pl-s"]],[[0,35,"pl-s"]],[[0,7,"pl-s"]],[[0,0,"pl-s"]],[[0,39,"pl-s"]],[[0,61,"pl-s"]],[[0,8,"pl-s"]],[[0,0,"pl-s"]],[[0,37,"pl-s"]],[[0,47,"pl-s"]],[[0,52,"pl-s"]],[[0,35,"pl-s"]],[[0,7,"pl-s"]],[[0,0,"pl-s"]],[[0,38,"pl-s"]],[[0,47,"pl-s"]],[[0,53,"pl-s"]],[[0,35,"pl-s"]],[[0,36,"pl-s"]],[[0,0,"pl-s"]],[[0,35,"pl-s"]],[[0,0,"pl-s"]],[[0,13,"pl-s"]],[[0,75,"pl-s"]],[[0,7,"pl-s"]],[[0,7,"pl-s"]],[],[[4,7,"pl-k"],[8,16,"pl-en"]],[[8,12,"pl-s1"],[14,23,"pl-s1"],[23,24,"pl-c1"],[24,36,"pl-s1"],[37,48,"pl-c1"],[49,53,"pl-c1"],[55,59,"pl-s1"],[59,60,"pl-c1"],[60,80,"pl-s"]],[],[[8,51,"pl-s"]],[[0,0,"pl-s"]],[[0,13,"pl-s"]],[[0,70,"pl-s"]],[[0,72,"pl-s"]],[[0,77,"pl-s"]],[[0,77,"pl-s"]],[[0,65,"pl-s"]],[[0,68,"pl-s"]],[[0,74,"pl-s"]],[[0,43,"pl-s"]],[[0,80,"pl-s"]],[[0,33,"pl-s"]],[[0,61,"pl-s"]],[[0,37,"pl-s"]],[[0,11,"pl-s"]],[[8,13,"pl-en"],[16,24,"pl-c1"],[25,43,"pl-s1"],[45,49,"pl-s1"],[49,50,"pl-c1"],[50,54,"pl-s1"],[56,65,"pl-s1"],[65,66,"pl-c1"],[66,75,"pl-s1"]],[],[],[[0,47,"pl-en"],[1,13,"pl-en"],[14,46,"pl-s"]],[[0,5,"pl-k"],[6,23,"pl-v"],[24,43,"pl-v"]],[[4,79,"pl-s"]],[[0,0,"pl-s"]],[[0,39,"pl-s"]],[[0,0,"pl-s"]],[[0,21,"pl-s"]],[[0,0,"pl-s"]],[[0,37,"pl-s"]],[[0,37,"pl-s"]],[[0,60,"pl-s"]],[[0,49,"pl-s"]],[[0,35,"pl-s"]],[[0,7,"pl-s"]],[[0,0,"pl-s"]],[[0,39,"pl-s"]],[[0,61,"pl-s"]],[[0,8,"pl-s"]],[[0,0,"pl-s"]],[[0,37,"pl-s"]],[[0,48,"pl-s"]],[[0,52,"pl-s"]],[[0,35,"pl-s"]],[[0,7,"pl-s"]],[[0,0,"pl-s"]],[[0,38,"pl-s"]],[[0,48,"pl-s"]],[[0,53,"pl-s"]],[[0,35,"pl-s"]],[[0,36,"pl-s"]],[[0,0,"pl-s"]],[[0,35,"pl-s"]],[[0,0,"pl-s"]],[[0,13,"pl-s"]],[[0,76,"pl-s"]],[[0,7,"pl-s"]],[[0,7,"pl-s"]],[],[[4,7,"pl-k"],[8,16,"pl-en"]],[[8,12,"pl-s1"]],[[8,17,"pl-s1"],[17,18,"pl-c1"],[18,30,"pl-s1"],[31,42,"pl-c1"],[43,47,"pl-c1"]],[[8,12,"pl-s1"],[12,13,"pl-c1"],[13,34,"pl-s"]],[],[[8,52,"pl-s"]],[[0,0,"pl-s"]],[[0,13,"pl-s"]],[[0,70,"pl-s"]],[[0,72,"pl-s"]],[[0,77,"pl-s"]],[[0,77,"pl-s"]],[[0,65,"pl-s"]],[[0,68,"pl-s"]],[[0,74,"pl-s"]],[[0,43,"pl-s"]],[[0,80,"pl-s"]],[[0,33,"pl-s"]],[[0,61,"pl-s"]],[[0,38,"pl-s"]],[[0,11,"pl-s"]],[[8,13,"pl-en"],[16,24,"pl-c1"],[25,44,"pl-s1"],[46,50,"pl-s1"],[50,51,"pl-c1"],[51,55,"pl-s1"],[57,66,"pl-s1"],[66,67,"pl-c1"],[67,76,"pl-s1"]],[],[],[[0,57,"pl-en"],[1,13,"pl-en"],[14,56,"pl-s"]],[[0,5,"pl-k"],[6,33,"pl-v"],[34,53,"pl-v"]],[[4,79,"pl-s"]],[[0,0,"pl-s"]],[[0,12,"pl-s"]],[[0,0,"pl-s"]],[[0,50,"pl-s"]],[[0,0,"pl-s"]],[[0,62,"pl-s"]],[[0,32,"pl-s"]],[[0,0,"pl-s"]],[[0,21,"pl-s"]],[[0,0,"pl-s"]],[[0,37,"pl-s"]],[[0,37,"pl-s"]],[[0,60,"pl-s"]],[[0,60,"pl-s"]],[[0,36,"pl-s"]],[[0,7,"pl-s"]],[[0,0,"pl-s"]],[[0,39,"pl-s"]],[[0,62,"pl-s"]],[[0,7,"pl-s"]],[[0,0,"pl-s"]],[[0,37,"pl-s"]],[[0,59,"pl-s"]],[[0,52,"pl-s"]],[[0,36,"pl-s"]],[[0,8,"pl-s"]],[[0,0,"pl-s"]],[[0,38,"pl-s"]],[[0,59,"pl-s"]],[[0,53,"pl-s"]],[[0,36,"pl-s"]],[[0,36,"pl-s"]],[[0,0,"pl-s"]],[[0,35,"pl-s"]],[[0,0,"pl-s"]],[[0,13,"pl-s"]],[[0,34,"pl-s"]],[[0,69,"pl-s"]],[[0,7,"pl-s"]],[[0,7,"pl-s"]],[],[[4,7,"pl-k"],[8,16,"pl-en"]],[[8,12,"pl-s1"]],[[8,17,"pl-s1"],[17,18,"pl-c1"],[18,30,"pl-s1"],[31,42,"pl-c1"],[43,47,"pl-c1"]],[[8,12,"pl-s1"],[12,13,"pl-c1"],[13,45,"pl-s"]],[],[[8,62,"pl-s"]],[[0,0,"pl-s"]],[[0,13,"pl-s"]],[[0,70,"pl-s"]],[[0,72,"pl-s"]],[[0,77,"pl-s"]],[[0,77,"pl-s"]],[[0,65,"pl-s"]],[[0,68,"pl-s"]],[[0,74,"pl-s"]],[[0,43,"pl-s"]],[[0,80,"pl-s"]],[[0,33,"pl-s"]],[[0,61,"pl-s"]],[[0,49,"pl-s"]],[[0,11,"pl-s"]],[[8,13,"pl-en"],[16,24,"pl-c1"]],[[12,42,"pl-s1"],[44,48,"pl-s1"],[48,49,"pl-c1"],[49,53,"pl-s1"],[55,64,"pl-s1"],[64,65,"pl-c1"],[65,74,"pl-s1"]],[],[],[],[[0,57,"pl-en"],[1,13,"pl-en"],[14,56,"pl-s"]],[[0,5,"pl-k"],[6,33,"pl-v"],[34,53,"pl-v"]],[[4,79,"pl-s"]],[[0,0,"pl-s"]],[[0,56,"pl-s"]],[[0,0,"pl-s"]],[[0,21,"pl-s"]],[[0,0,"pl-s"]],[[0,37,"pl-s"]],[[0,37,"pl-s"]],[[0,60,"pl-s"]],[[0,60,"pl-s"]],[[0,36,"pl-s"]],[[0,9,"pl-s"]],[[0,0,"pl-s"]],[[0,39,"pl-s"]],[[0,62,"pl-s"]],[[0,9,"pl-s"]],[[0,0,"pl-s"]],[[0,37,"pl-s"]],[[0,59,"pl-s"]],[[0,52,"pl-s"]],[[0,36,"pl-s"]],[[0,9,"pl-s"]],[[0,0,"pl-s"]],[[0,38,"pl-s"]],[[0,59,"pl-s"]],[[0,53,"pl-s"]],[[0,36,"pl-s"]],[[0,40,"pl-s"]],[[0,0,"pl-s"]],[[0,35,"pl-s"]],[[0,0,"pl-s"]],[[0,13,"pl-s"]],[[0,34,"pl-s"]],[[0,69,"pl-s"]],[[0,7,"pl-s"]],[[0,7,"pl-s"]],[],[[4,7,"pl-k"],[8,16,"pl-en"]],[[8,12,"pl-s1"]],[[8,17,"pl-s1"],[17,18,"pl-c1"],[18,30,"pl-s1"],[31,42,"pl-c1"],[43,47,"pl-c1"]],[[8,12,"pl-s1"],[12,13,"pl-c1"],[13,45,"pl-s"]],[],[[8,62,"pl-s"]],[[0,0,"pl-s"]],[[0,13,"pl-s"]],[[0,70,"pl-s"]],[[0,72,"pl-s"]],[[0,77,"pl-s"]],[[0,77,"pl-s"]],[[0,65,"pl-s"]],[[0,68,"pl-s"]],[[0,74,"pl-s"]],[[0,43,"pl-s"]],[[0,80,"pl-s"]],[[0,33,"pl-s"]],[[0,61,"pl-s"]],[[0,49,"pl-s"]],[[0,11,"pl-s"]],[[8,13,"pl-en"],[16,24,"pl-c1"]],[[12,42,"pl-s1"],[44,48,"pl-s1"],[48,49,"pl-c1"],[49,53,"pl-s1"],[55,64,"pl-s1"],[64,65,"pl-c1"],[65,74,"pl-s1"]],[],[],[],[[0,48,"pl-en"],[1,13,"pl-en"],[14,47,"pl-s"]],[[0,5,"pl-k"],[6,24,"pl-v"],[25,44,"pl-v"]],[[4,80,"pl-s"]],[[0,0,"pl-s"]],[[0,80,"pl-s"]],[[0,52,"pl-s"]],[[0,0,"pl-s"]],[[0,51,"pl-s"]],[[0,79,"pl-s"]],[[0,54,"pl-s"]],[[0,80,"pl-s"]],[[0,78,"pl-s"]],[[0,29,"pl-s"]],[[0,0,"pl-s"]],[[0,51,"pl-s"]],[[0,0,"pl-s"]],[[0,24,"pl-s"]],[[0,0,"pl-s"]],[[0,13,"pl-s"]],[[0,18,"pl-s"]],[[0,66,"pl-s"]],[[0,12,"pl-s"]],[[0,5,"pl-s"]],[[0,7,"pl-s"]],[[0,0,"pl-s"]],[[0,29,"pl-s"]],[[0,0,"pl-s"]],[[0,60,"pl-s"]],[[0,29,"pl-s"]],[[0,43,"pl-s"]],[[0,66,"pl-s"]],[[0,35,"pl-s"]],[[0,9,"pl-s"]],[[0,0,"pl-s"]],[[0,60,"pl-s"]],[[0,33,"pl-s"]],[[0,47,"pl-s"]],[[0,68,"pl-s"]],[[0,66,"pl-s"]],[[0,35,"pl-s"]],[[0,9,"pl-s"]],[[0,41,"pl-s"]],[[0,61,"pl-s"]],[[0,9,"pl-s"]],[[0,38,"pl-s"]],[[0,66,"pl-s"]],[[0,52,"pl-s"]],[[0,35,"pl-s"]],[[0,9,"pl-s"]],[[0,38,"pl-s"]],[[0,66,"pl-s"]],[[0,53,"pl-s"]],[[0,35,"pl-s"]],[[0,40,"pl-s"]],[[0,0,"pl-s"]],[[0,48,"pl-s"]],[[0,0,"pl-s"]],[[0,77,"pl-s"]],[[0,36,"pl-s"]],[[0,74,"pl-s"]],[[0,67,"pl-s"]],[[0,67,"pl-s"]],[[0,7,"pl-s"]],[],[[4,7,"pl-k"],[8,16,"pl-en"]],[[8,12,"pl-s1"]],[[8,19,"pl-s1"],[19,20,"pl-c1"],[20,25,"pl-c1"]],[[8,23,"pl-s1"],[23,24,"pl-c1"],[24,27,"pl-c1"]],[[8,12,"pl-s1"],[12,13,"pl-c1"],[13,14,"pl-c1"],[14,15,"pl-c1"]],[[8,17,"pl-s1"],[17,18,"pl-c1"],[18,30,"pl-s1"],[31,42,"pl-c1"],[43,47,"pl-c1"]],[[8,12,"pl-s1"],[12,13,"pl-c1"],[13,34,"pl-s"]],[],[[8,53,"pl-s"]],[[0,0,"pl-s"]],[[0,13,"pl-s"]],[[0,69,"pl-s"]],[[0,80,"pl-s"]],[[0,79,"pl-s"]],[[0,24,"pl-s"]],[[0,74,"pl-s"]],[[0,80,"pl-s"]],[[0,72,"pl-s"]],[[0,66,"pl-s"]],[[0,66,"pl-s"]],[[0,76,"pl-s"]],[[0,39,"pl-s"]],[[0,70,"pl-s"]],[[0,72,"pl-s"]],[[0,77,"pl-s"]],[[0,77,"pl-s"]],[[0,65,"pl-s"]],[[0,68,"pl-s"]],[[0,74,"pl-s"]],[[0,43,"pl-s"]],[[0,80,"pl-s"]],[[0,33,"pl-s"]],[[0,69,"pl-s"]],[[0,11,"pl-s"]],[[8,13,"pl-en"],[16,24,"pl-c1"]],[[12,31,"pl-s1"]],[[12,16,"pl-s1"],[16,17,"pl-c1"],[17,21,"pl-s1"]],[[12,21,"pl-s1"],[21,22,"pl-c1"],[22,31,"pl-s1"]],[[12,23,"pl-s1"],[23,24,"pl-c1"],[24,35,"pl-s1"]],[[12,27,"pl-s1"],[27,28,"pl-c1"],[28,43,"pl-s1"]],[[12,16,"pl-s1"],[16,17,"pl-c1"],[17,21,"pl-s1"]],[],[[8,12,"pl-s1"],[13,24,"pl-c1"],[25,26,"pl-c1"],[27,38,"pl-s1"]],[],[],[[0,53,"pl-en"],[1,13,"pl-en"],[14,52,"pl-s"]],[[0,5,"pl-k"],[6,29,"pl-v"],[30,49,"pl-v"]],[[4,77,"pl-s"]],[[0,0,"pl-s"]],[[0,78,"pl-s"]],[[0,59,"pl-s"]],[[0,0,"pl-s"]],[[0,51,"pl-s"]],[[0,79,"pl-s"]],[[0,54,"pl-s"]],[[0,80,"pl-s"]],[[0,78,"pl-s"]],[[0,29,"pl-s"]],[[0,0,"pl-s"]],[[0,77,"pl-s"]],[[0,79,"pl-s"]],[[0,74,"pl-s"]],[[0,0,"pl-s"]],[[0,54,"pl-s"]],[[0,48,"pl-s"]],[[0,75,"pl-s"]],[[0,47,"pl-s"]],[[0,0,"pl-s"]],[[0,29,"pl-s"]],[[0,0,"pl-s"]],[[0,13,"pl-s"]],[[0,18,"pl-s"]],[[0,80,"pl-s"]],[[0,10,"pl-s"]],[[0,5,"pl-s"]],[[0,7,"pl-s"]],[[0,0,"pl-s"]],[[0,29,"pl-s"]],[[0,0,"pl-s"]],[[0,60,"pl-s"]],[[0,29,"pl-s"]],[[0,43,"pl-s"]],[[0,63,"pl-s"]],[[0,72,"pl-s"]],[[0,36,"pl-s"]],[[0,9,"pl-s"]],[[0,0,"pl-s"]],[[0,28,"pl-s"]],[[0,55,"pl-s"]],[[0,66,"pl-s"]],[[0,36,"pl-s"]],[[0,8,"pl-s"]],[[0,0,"pl-s"]],[[0,60,"pl-s"]],[[0,33,"pl-s"]],[[0,47,"pl-s"]],[[0,68,"pl-s"]],[[0,63,"pl-s"]],[[0,72,"pl-s"]],[[0,36,"pl-s"]],[[0,9,"pl-s"]],[[0,0,"pl-s"]],[[0,28,"pl-s"]],[[0,55,"pl-s"]],[[0,66,"pl-s"]],[[0,36,"pl-s"]],[[0,9,"pl-s"]],[[0,0,"pl-s"]],[[0,59,"pl-s"]],[[0,63,"pl-s"]],[[0,72,"pl-s"]],[[0,62,"pl-s"]],[[0,9,"pl-s"]],[[0,0,"pl-s"]],[[0,28,"pl-s"]],[[0,55,"pl-s"]],[[0,66,"pl-s"]],[[0,62,"pl-s"]],[[0,9,"pl-s"]],[[0,0,"pl-s"]],[[0,38,"pl-s"]],[[0,63,"pl-s"]],[[0,72,"pl-s"]],[[0,52,"pl-s"]],[[0,36,"pl-s"]],[[0,9,"pl-s"]],[[0,0,"pl-s"]],[[0,28,"pl-s"]],[[0,55,"pl-s"]],[[0,66,"pl-s"]],[[0,52,"pl-s"]],[[0,36,"pl-s"]],[[0,9,"pl-s"]],[[0,0,"pl-s"]],[[0,38,"pl-s"]],[[0,55,"pl-s"]],[[0,38,"pl-s"]],[[0,53,"pl-s"]],[[0,36,"pl-s"]],[[0,41,"pl-s"]],[[0,0,"pl-s"]],[[0,28,"pl-s"]],[[0,55,"pl-s"]],[[0,66,"pl-s"]],[[0,53,"pl-s"]],[[0,36,"pl-s"]],[[0,41,"pl-s"]],[[0,0,"pl-s"]],[[0,0,"pl-s"]],[[0,9,"pl-s"]],[[0,79,"pl-s"]],[[0,35,"pl-s"]],[[0,74,"pl-s"]],[[0,54,"pl-s"]],[[0,77,"pl-s"]],[[0,26,"pl-s"]],[[0,80,"pl-s"]],[[0,47,"pl-s"]],[[0,69,"pl-s"]],[[0,65,"pl-s"]],[[0,79,"pl-s"]],[[0,78,"pl-s"]],[[0,74,"pl-s"]],[[0,78,"pl-s"]],[[0,77,"pl-s"]],[[0,72,"pl-s"]],[[0,44,"pl-s"]],[[0,79,"pl-s"]],[[0,29,"pl-s"]],[[0,66,"pl-s"]],[[0,78,"pl-s"]],[[0,80,"pl-s"]],[[0,69,"pl-s"]],[[0,70,"pl-s"]],[[0,64,"pl-s"]],[[0,76,"pl-s"]],[[0,76,"pl-s"]],[[0,29,"pl-s"]],[[0,71,"pl-s"]],[[0,7,"pl-s"]],[],[[4,7,"pl-k"],[8,16,"pl-en"]],[[8,12,"pl-s1"]],[[8,29,"pl-s1"],[29,30,"pl-c1"],[30,35,"pl-c1"]],[[8,13,"pl-s1"],[13,14,"pl-c1"],[14,18,"pl-c1"]],[[8,13,"pl-s1"],[13,14,"pl-c1"],[14,17,"pl-c1"]],[[8,19,"pl-s1"],[19,20,"pl-c1"],[20,25,"pl-c1"]],[[8,23,"pl-s1"],[23,24,"pl-c1"],[24,27,"pl-c1"]],[[8,12,"pl-s1"],[12,13,"pl-c1"],[13,14,"pl-c1"],[14,15,"pl-c1"]],[[8,17,"pl-s1"],[17,18,"pl-c1"],[18,30,"pl-s1"],[31,42,"pl-c1"],[43,47,"pl-c1"]],[[8,12,"pl-s1"],[12,13,"pl-c1"],[13,40,"pl-s"]],[],[[8,61,"pl-s"]],[[8,13,"pl-en"],[16,24,"pl-c1"]],[[12,37,"pl-s1"]],[[12,33,"pl-s1"],[33,34,"pl-c1"],[34,55,"pl-s1"]],[[12,17,"pl-s1"],[17,18,"pl-c1"],[18,23,"pl-s1"]],[[12,17,"pl-s1"],[17,18,"pl-c1"],[18,23,"pl-s1"]],[[12,16,"pl-s1"],[16,17,"pl-c1"],[17,21,"pl-s1"]],[[12,21,"pl-s1"],[21,22,"pl-c1"],[22,31,"pl-s1"]],[[12,23,"pl-s1"],[23,24,"pl-c1"],[24,35,"pl-s1"]],[[12,27,"pl-s1"],[27,28,"pl-c1"],[28,43,"pl-s1"]],[[12,16,"pl-s1"],[16,17,"pl-c1"],[17,21,"pl-s1"]],[],[[8,12,"pl-s1"],[13,24,"pl-c1"],[25,26,"pl-c1"],[27,38,"pl-s1"]],[[8,12,"pl-s1"],[13,34,"pl-c1"],[35,36,"pl-c1"],[37,58,"pl-s1"]],[[8,12,"pl-s1"],[13,18,"pl-c1"],[19,20,"pl-c1"],[21,26,"pl-s1"]],[[8,12,"pl-s1"],[13,18,"pl-c1"],[19,20,"pl-c1"],[21,26,"pl-s1"]],[],[[4,7,"pl-k"],[8,18,"pl-en"],[19,23,"pl-s1"]],[[8,14,"pl-s1"],[15,16,"pl-c1"]],[[12,35,"pl-s"],[37,41,"pl-s1"],[42,63,"pl-c1"]],[[12,19,"pl-s"],[21,25,"pl-s1"],[26,31,"pl-c1"]],[[12,19,"pl-s"],[21,25,"pl-s1"],[26,31,"pl-c1"]],[],[[8,19,"pl-s1"],[20,21,"pl-c1"],[22,27,"pl-en"],[30,40,"pl-c1"]],[[8,14,"pl-k"],[15,19,"pl-en"],[20,24,"pl-en"],[25,36,"pl-s1"],[37,42,"pl-c1"],[46,47,"pl-c1"],[48,52,"pl-en"],[53,59,"pl-s1"],[60,65,"pl-c1"]],[],[],[[0,53,"pl-en"],[1,13,"pl-en"],[14,52,"pl-s"]],[[0,5,"pl-k"],[6,29,"pl-v"],[30,49,"pl-v"]],[[4,73,"pl-s"]],[[0,0,"pl-s"]],[[0,72,"pl-s"]],[[0,78,"pl-s"]],[[0,54,"pl-s"]],[[0,79,"pl-s"]],[[0,29,"pl-s"]],[[0,0,"pl-s"]],[[0,75,"pl-s"]],[[0,56,"pl-s"]],[[0,32,"pl-s"]],[[0,0,"pl-s"]],[[0,21,"pl-s"]],[[0,0,"pl-s"]],[[0,39,"pl-s"]],[[0,51,"pl-s"]],[[0,60,"pl-s"]],[[0,55,"pl-s"]],[[0,35,"pl-s"]],[[0,9,"pl-s"]],[[0,0,"pl-s"]],[[0,39,"pl-s"]],[[0,74,"pl-s"]],[[0,9,"pl-s"]],[[0,0,"pl-s"]],[[0,37,"pl-s"]],[[0,54,"pl-s"]],[[0,52,"pl-s"]],[[0,35,"pl-s"]],[[0,9,"pl-s"]],[[0,0,"pl-s"]],[[0,38,"pl-s"]],[[0,54,"pl-s"]],[[0,53,"pl-s"]],[[0,35,"pl-s"]],[[0,41,"pl-s"]],[[0,0,"pl-s"]],[[0,35,"pl-s"]],[[0,0,"pl-s"]],[[0,13,"pl-s"]],[[0,34,"pl-s"]],[[0,65,"pl-s"]],[[0,7,"pl-s"]],[[0,7,"pl-s"]],[],[[4,7,"pl-k"],[8,16,"pl-en"]],[[8,12,"pl-s1"]],[[8,19,"pl-s1"],[19,20,"pl-c1"],[20,25,"pl-c1"]],[[8,23,"pl-s1"],[23,24,"pl-c1"],[24,27,"pl-c1"]],[[8,12,"pl-s1"],[12,13,"pl-c1"],[13,14,"pl-c1"],[14,15,"pl-c1"]],[[8,17,"pl-s1"],[17,18,"pl-c1"],[18,30,"pl-s1"],[31,42,"pl-c1"],[43,47,"pl-c1"]],[[8,12,"pl-s1"],[12,13,"pl-c1"],[13,39,"pl-s"]],[],[[8,58,"pl-s"]],[[0,0,"pl-s"]],[[0,13,"pl-s"]],[[0,79,"pl-s"]],[[0,70,"pl-s"]],[[0,29,"pl-s"]],[[0,72,"pl-s"]],[[0,77,"pl-s"]],[[0,77,"pl-s"]],[[0,71,"pl-s"]],[[0,76,"pl-s"]],[[0,38,"pl-s"]],[[0,76,"pl-s"]],[[0,76,"pl-s"]],[[0,78,"pl-s"]],[[0,79,"pl-s"]],[[0,74,"pl-s"]],[[0,68,"pl-s"]],[[0,80,"pl-s"]],[[0,80,"pl-s"]],[[0,33,"pl-s"]],[[0,49,"pl-s"]],[[0,55,"pl-s"]],[[0,11,"pl-s"]],[[8,13,"pl-en"],[16,24,"pl-c1"]],[[12,36,"pl-s1"]],[[12,16,"pl-s1"],[16,17,"pl-c1"],[17,21,"pl-s1"]],[[12,21,"pl-s1"],[21,22,"pl-c1"],[22,31,"pl-s1"]],[[12,23,"pl-s1"],[23,24,"pl-c1"],[24,35,"pl-s1"]],[[12,27,"pl-s1"],[27,28,"pl-c1"],[28,43,"pl-s1"]],[[12,16,"pl-s1"],[16,17,"pl-c1"],[17,21,"pl-s1"]],[],[],[],[[0,58,"pl-en"],[1,13,"pl-en"],[14,57,"pl-s"]],[[0,5,"pl-k"],[6,34,"pl-v"],[35,54,"pl-v"]],[[4,59,"pl-s"]],[[0,0,"pl-s"]],[[0,72,"pl-s"]],[[0,67,"pl-s"]],[[0,67,"pl-s"]],[[0,19,"pl-s"]],[[0,0,"pl-s"]],[[0,77,"pl-s"]],[[0,80,"pl-s"]],[[0,62,"pl-s"]],[[0,18,"pl-s"]],[[0,0,"pl-s"]],[[0,42,"pl-s"]],[[0,0,"pl-s"]],[[0,38,"pl-s"]],[[0,50,"pl-s"]],[[0,0,"pl-s"]],[[0,77,"pl-s"]],[[0,79,"pl-s"]],[[0,79,"pl-s"]],[[0,0,"pl-s"]],[[0,75,"pl-s"]],[[0,51,"pl-s"]],[[0,0,"pl-s"]],[[0,75,"pl-s"]],[[0,64,"pl-s"]],[[0,74,"pl-s"]],[[0,77,"pl-s"]],[[0,15,"pl-s"]],[[0,0,"pl-s"]],[[0,44,"pl-s"]],[[0,70,"pl-s"]],[[0,0,"pl-s"]],[[0,63,"pl-s"]],[[0,0,"pl-s"]],[[0,58,"pl-s"]],[[0,71,"pl-s"]],[[0,0,"pl-s"]],[[0,75,"pl-s"]],[[0,56,"pl-s"]],[[0,32,"pl-s"]],[[0,0,"pl-s"]],[[0,21,"pl-s"]],[[0,0,"pl-s"]],[[0,45,"pl-s"]],[[0,51,"pl-s"]],[[0,60,"pl-s"]],[[0,60,"pl-s"]],[[0,35,"pl-s"]],[[0,14,"pl-s"]],[[0,0,"pl-s"]],[[0,39,"pl-s"]],[[0,74,"pl-s"]],[[0,10,"pl-s"]],[[0,0,"pl-s"]],[[0,37,"pl-s"]],[[0,59,"pl-s"]],[[0,52,"pl-s"]],[[0,35,"pl-s"]],[[0,11,"pl-s"]],[[0,0,"pl-s"]],[[0,38,"pl-s"]],[[0,59,"pl-s"]],[[0,53,"pl-s"]],[[0,35,"pl-s"]],[[0,56,"pl-s"]],[[0,0,"pl-s"]],[[0,35,"pl-s"]],[[0,13,"pl-s"]],[[0,35,"pl-s"]],[[0,70,"pl-s"]],[[0,7,"pl-s"]],[[0,0,"pl-s"]],[[0,9,"pl-s"]],[[0,78,"pl-s"]],[[0,79,"pl-s"]],[[0,70,"pl-s"]],[[0,75,"pl-s"]],[[0,73,"pl-s"]],[[0,75,"pl-s"]],[[0,54,"pl-s"]],[[0,75,"pl-s"]],[[0,68,"pl-s"]],[[0,25,"pl-s"]],[[0,78,"pl-s"]],[[0,79,"pl-s"]],[[0,68,"pl-s"]],[[0,56,"pl-s"]],[[0,72,"pl-s"]],[[0,34,"pl-s"]],[[0,66,"pl-s"]],[[0,78,"pl-s"]],[[0,80,"pl-s"]],[[0,69,"pl-s"]],[[0,70,"pl-s"]],[[0,64,"pl-s"]],[[0,76,"pl-s"]],[[0,76,"pl-s"]],[[0,29,"pl-s"]],[[0,45,"pl-s"]],[[0,57,"pl-s"]],[[0,0,"pl-s"]],[[0,7,"pl-s"]],[],[[4,7,"pl-k"],[8,16,"pl-en"]],[[8,12,"pl-s1"]],[[8,13,"pl-s1"],[13,14,"pl-c1"],[14,18,"pl-c1"]],[[8,13,"pl-s1"],[13,14,"pl-c1"],[14,17,"pl-c1"]],[[8,19,"pl-s1"],[19,20,"pl-c1"],[20,25,"pl-c1"]],[[8,23,"pl-s1"],[23,24,"pl-c1"],[24,27,"pl-c1"]],[[8,12,"pl-s1"],[12,13,"pl-c1"],[13,14,"pl-c1"],[14,15,"pl-c1"]],[[8,17,"pl-s1"],[17,18,"pl-c1"],[18,30,"pl-s1"],[31,42,"pl-c1"],[43,47,"pl-c1"]],[[8,12,"pl-s1"],[12,13,"pl-c1"],[13,45,"pl-s"]],[],[[8,66,"pl-s"]],[[8,13,"pl-en"],[16,24,"pl-c1"]],[[12,42,"pl-s1"]],[[12,17,"pl-s1"],[17,18,"pl-c1"],[18,23,"pl-s1"]],[[12,17,"pl-s1"],[17,18,"pl-c1"],[18,23,"pl-s1"]],[[12,16,"pl-s1"],[16,17,"pl-c1"],[17,21,"pl-s1"]],[[12,21,"pl-s1"],[21,22,"pl-c1"],[22,31,"pl-s1"]],[[12,23,"pl-s1"],[23,24,"pl-c1"],[24,35,"pl-s1"]],[[12,27,"pl-s1"],[27,28,"pl-c1"],[28,43,"pl-s1"]],[[12,16,"pl-s1"],[16,17,"pl-c1"],[17,21,"pl-s1"]],[],[[8,12,"pl-s1"],[13,24,"pl-c1"],[25,26,"pl-c1"],[27,38,"pl-s1"]],[[8,12,"pl-s1"],[13,18,"pl-c1"],[19,20,"pl-c1"],[21,26,"pl-s1"]],[[8,12,"pl-s1"],[13,18,"pl-c1"],[19,20,"pl-c1"],[21,26,"pl-s1"]],[],[[4,7,"pl-k"],[8,18,"pl-en"],[19,23,"pl-s1"]],[[8,14,"pl-s1"],[15,16,"pl-c1"]],[[12,19,"pl-s"],[21,25,"pl-s1"],[26,31,"pl-c1"]],[[12,19,"pl-s"],[21,25,"pl-s1"],[26,31,"pl-c1"]],[],[[8,19,"pl-s1"],[20,21,"pl-c1"],[22,27,"pl-en"],[30,40,"pl-c1"]],[[8,14,"pl-k"],[15,19,"pl-en"],[20,24,"pl-en"],[25,36,"pl-s1"],[37,42,"pl-c1"],[46,47,"pl-c1"],[48,52,"pl-en"],[53,59,"pl-s1"],[60,65,"pl-c1"]],[],[],[[0,59,"pl-en"],[1,13,"pl-en"],[14,58,"pl-s"]],[[0,5,"pl-k"],[6,35,"pl-v"],[36,55,"pl-v"]],[[4,73,"pl-s"]],[[0,0,"pl-s"]],[[0,72,"pl-s"]],[[0,73,"pl-s"]],[[0,61,"pl-s"]],[[0,79,"pl-s"]],[[0,73,"pl-s"]],[[0,25,"pl-s"]],[[0,0,"pl-s"]],[[0,80,"pl-s"]],[[0,79,"pl-s"]],[[0,72,"pl-s"]],[[0,32,"pl-s"]],[[0,0,"pl-s"]],[[0,21,"pl-s"]],[[0,0,"pl-s"]],[[0,23,"pl-s"]],[[0,51,"pl-s"]],[[0,60,"pl-s"]],[[0,62,"pl-s"]],[[0,36,"pl-s"]],[[0,9,"pl-s"]],[[0,0,"pl-s"]],[[0,39,"pl-s"]],[[0,75,"pl-s"]],[[0,9,"pl-s"]],[[0,0,"pl-s"]],[[0,37,"pl-s"]],[[0,61,"pl-s"]],[[0,52,"pl-s"]],[[0,36,"pl-s"]],[[0,9,"pl-s"]],[[0,0,"pl-s"]],[[0,38,"pl-s"]],[[0,61,"pl-s"]],[[0,53,"pl-s"]],[[0,36,"pl-s"]],[[0,41,"pl-s"]],[[0,0,"pl-s"]],[[0,35,"pl-s"]],[[0,0,"pl-s"]],[[0,13,"pl-s"]],[[0,34,"pl-s"]],[[0,71,"pl-s"]],[[0,7,"pl-s"]],[[0,7,"pl-s"]],[],[[4,7,"pl-k"],[8,16,"pl-en"]],[[8,12,"pl-s1"]],[[8,19,"pl-s1"],[19,20,"pl-c1"],[20,25,"pl-c1"]],[[8,20,"pl-s1"],[20,21,"pl-c1"],[21,25,"pl-c1"]],[[8,17,"pl-s1"],[17,18,"pl-c1"],[18,30,"pl-s1"],[31,42,"pl-c1"],[43,47,"pl-c1"]],[[8,12,"pl-s1"],[12,13,"pl-c1"],[13,46,"pl-s"]],[],[[8,64,"pl-s"]],[[0,0,"pl-s"]],[[0,13,"pl-s"]],[[0,79,"pl-s"]],[[0,70,"pl-s"]],[[0,29,"pl-s"]],[[0,75,"pl-s"]],[[0,72,"pl-s"]],[[0,78,"pl-s"]],[[0,42,"pl-s"]],[[0,77,"pl-s"]],[[0,70,"pl-s"]],[[0,72,"pl-s"]],[[0,76,"pl-s"]],[[0,77,"pl-s"]],[[0,65,"pl-s"]],[[0,68,"pl-s"]],[[0,74,"pl-s"]],[[0,43,"pl-s"]],[[0,80,"pl-s"]],[[0,33,"pl-s"]],[[0,49,"pl-s"]],[[0,62,"pl-s"]],[[0,11,"pl-s"]],[[8,13,"pl-en"],[16,24,"pl-c1"]],[[12,43,"pl-s1"]],[[12,16,"pl-s1"],[16,17,"pl-c1"],[17,21,"pl-s1"]],[[12,21,"pl-s1"],[21,22,"pl-c1"],[22,31,"pl-s1"]],[[12,23,"pl-s1"],[23,24,"pl-c1"],[24,35,"pl-s1"]],[[12,24,"pl-s1"],[24,25,"pl-c1"],[25,37,"pl-s1"]],[],[],[],[[0,46,"pl-en"],[1,13,"pl-en"],[14,45,"pl-s"]],[[0,5,"pl-k"],[6,22,"pl-v"],[23,42,"pl-v"]],[[4,69,"pl-s"]],[[0,0,"pl-s"]],[[0,75,"pl-s"]],[[0,71,"pl-s"]],[[0,72,"pl-s"]],[[0,71,"pl-s"]],[[0,76,"pl-s"]],[[0,80,"pl-s"]],[[0,64,"pl-s"]],[[0,0,"pl-s"]],[[0,52,"pl-s"]],[[0,0,"pl-s"]],[[0,21,"pl-s"]],[[0,0,"pl-s"]],[[0,37,"pl-s"]],[[0,37,"pl-s"]],[[0,60,"pl-s"]],[[0,62,"pl-s"]],[[0,60,"pl-s"]],[[0,60,"pl-s"]],[[0,68,"pl-s"]],[[0,69,"pl-s"]],[[0,49,"pl-s"]],[[0,43,"pl-s"]],[[0,8,"pl-s"]],[[0,0,"pl-s"]],[[0,39,"pl-s"]],[[0,69,"pl-s"]],[[0,11,"pl-s"]],[[0,0,"pl-s"]],[[0,37,"pl-s"]],[[0,62,"pl-s"]],[[0,52,"pl-s"]],[[0,43,"pl-s"]],[[0,10,"pl-s"]],[[0,0,"pl-s"]],[[0,38,"pl-s"]],[[0,62,"pl-s"]],[[0,53,"pl-s"]],[[0,43,"pl-s"]],[[0,39,"pl-s"]],[[0,0,"pl-s"]],[[0,35,"pl-s"]],[[0,0,"pl-s"]],[[0,13,"pl-s"]],[[0,34,"pl-s"]],[[0,64,"pl-s"]],[[0,7,"pl-s"]],[[0,0,"pl-s"]],[[0,9,"pl-s"]],[[0,68,"pl-s"]],[[0,48,"pl-s"]],[[0,72,"pl-s"]],[[0,79,"pl-s"]],[[0,78,"pl-s"]],[[0,64,"pl-s"]],[[0,70,"pl-s"]],[[0,78,"pl-s"]],[[0,62,"pl-s"]],[[0,76,"pl-s"]],[[0,29,"pl-s"]],[[0,78,"pl-s"]],[[0,7,"pl-s"]],[],[[4,7,"pl-k"],[8,16,"pl-en"]],[[8,12,"pl-s1"]],[[8,12,"pl-s1"],[12,13,"pl-c1"],[13,14,"pl-c1"],[14,15,"pl-c1"]],[[8,17,"pl-s1"],[17,18,"pl-c1"],[18,30,"pl-s1"],[31,42,"pl-c1"],[43,47,"pl-c1"]],[[8,12,"pl-s1"],[12,13,"pl-c1"],[13,32,"pl-s"]],[],[[8,13,"pl-en"],[16,24,"pl-c1"]],[[12,29,"pl-s1"],[31,40,"pl-s1"],[40,41,"pl-c1"],[41,50,"pl-s1"],[52,56,"pl-s1"],[56,57,"pl-c1"],[57,61,"pl-s1"],[63,67,"pl-s1"],[67,68,"pl-c1"],[68,72,"pl-s1"]],[],[],[],[[0,35,"pl-en"],[1,13,"pl-en"],[14,34,"pl-s"]],[[0,5,"pl-k"],[6,11,"pl-v"],[12,31,"pl-v"]],[[4,59,"pl-s"]],[[0,0,"pl-s"]],[[0,44,"pl-s"]],[[0,0,"pl-s"]],[[0,77,"pl-s"]],[[0,45,"pl-s"]],[[0,0,"pl-s"]],[[0,21,"pl-s"]],[[0,0,"pl-s"]],[[0,37,"pl-s"]],[[0,41,"pl-s"]],[[0,60,"pl-s"]],[[0,35,"pl-s"]],[[0,33,"pl-s"]],[[0,7,"pl-s"]],[[0,0,"pl-s"]],[[0,39,"pl-s"]],[[0,55,"pl-s"]],[[0,8,"pl-s"]],[[0,0,"pl-s"]],[[0,37,"pl-s"]],[[0,34,"pl-s"]],[[0,52,"pl-s"]],[[0,33,"pl-s"]],[[0,7,"pl-s"]],[[0,0,"pl-s"]],[[0,38,"pl-s"]],[[0,34,"pl-s"]],[[0,53,"pl-s"]],[[0,33,"pl-s"]],[[0,36,"pl-s"]],[[0,0,"pl-s"]],[[0,35,"pl-s"]],[[0,0,"pl-s"]],[[0,13,"pl-s"]],[[0,64,"pl-s"]],[[0,7,"pl-s"]],[[0,7,"pl-s"]],[],[[4,7,"pl-k"],[8,16,"pl-en"],[17,21,"pl-s1"],[23,32,"pl-s1"],[32,33,"pl-c1"],[33,45,"pl-s1"],[46,57,"pl-c1"],[58,62,"pl-c1"],[64,68,"pl-s1"],[68,69,"pl-c1"],[69,76,"pl-s"]],[[8,40,"pl-s"]],[[0,0,"pl-s"]],[[0,13,"pl-s"]],[[0,70,"pl-s"]],[[0,72,"pl-s"]],[[0,76,"pl-s"]],[[0,77,"pl-s"]],[[0,65,"pl-s"]],[[0,68,"pl-s"]],[[0,74,"pl-s"]],[[0,43,"pl-s"]],[[0,80,"pl-s"]],[[0,33,"pl-s"]],[[0,70,"pl-s"]],[[0,11,"pl-s"]],[[8,13,"pl-en"],[16,24,"pl-c1"],[25,30,"pl-s1"],[32,36,"pl-s1"],[36,37,"pl-c1"],[37,41,"pl-s1"],[43,52,"pl-s1"],[52,53,"pl-c1"],[53,62,"pl-s1"]],[],[],[[0,42,"pl-en"],[1,13,"pl-en"],[14,41,"pl-s"]],[[0,5,"pl-k"],[6,18,"pl-v"],[19,38,"pl-v"]],[[4,67,"pl-s"]],[[0,0,"pl-s"]],[[0,52,"pl-s"]],[[0,0,"pl-s"]],[[0,77,"pl-s"]],[[0,45,"pl-s"]],[[0,0,"pl-s"]],[[0,21,"pl-s"]],[[0,0,"pl-s"]],[[0,37,"pl-s"]],[[0,41,"pl-s"]],[[0,60,"pl-s"]],[[0,42,"pl-s"]],[[0,33,"pl-s"]],[[0,8,"pl-s"]],[[0,0,"pl-s"]],[[0,39,"pl-s"]],[[0,55,"pl-s"]],[[0,8,"pl-s"]],[[0,0,"pl-s"]],[[0,37,"pl-s"]],[[0,41,"pl-s"]],[[0,52,"pl-s"]],[[0,33,"pl-s"]],[[0,8,"pl-s"]],[[0,0,"pl-s"]],[[0,38,"pl-s"]],[[0,41,"pl-s"]],[[0,53,"pl-s"]],[[0,33,"pl-s"]],[[0,38,"pl-s"]],[[0,0,"pl-s"]],[[0,35,"pl-s"]],[[0,0,"pl-s"]],[[0,13,"pl-s"]],[[0,71,"pl-s"]],[[0,7,"pl-s"]],[[0,7,"pl-s"]],[],[[4,7,"pl-k"],[8,16,"pl-en"]],[[8,12,"pl-s1"],[14,23,"pl-s1"],[23,24,"pl-c1"],[24,36,"pl-s1"],[37,48,"pl-c1"],[49,53,"pl-c1"],[55,59,"pl-s1"],[59,60,"pl-c1"],[60,75,"pl-s"]],[],[[8,47,"pl-s"]],[[0,0,"pl-s"]],[[0,13,"pl-s"]],[[0,70,"pl-s"]],[[0,72,"pl-s"]],[[0,76,"pl-s"]],[[0,77,"pl-s"]],[[0,65,"pl-s"]],[[0,68,"pl-s"]],[[0,74,"pl-s"]],[[0,43,"pl-s"]],[[0,80,"pl-s"]],[[0,33,"pl-s"]],[[0,78,"pl-s"]],[[0,11,"pl-s"]],[[8,13,"pl-en"],[16,24,"pl-c1"],[25,38,"pl-s1"],[40,44,"pl-s1"],[44,45,"pl-c1"],[45,49,"pl-s1"],[51,60,"pl-s1"],[60,61,"pl-c1"],[61,70,"pl-s1"]],[],[],[[0,46,"pl-en"],[1,13,"pl-en"],[14,45,"pl-s"]],[[0,5,"pl-k"],[6,22,"pl-v"],[23,42,"pl-v"]],[[4,71,"pl-s"]],[[0,0,"pl-s"]],[[0,38,"pl-s"]],[[0,69,"pl-s"]],[[0,0,"pl-s"]],[[0,21,"pl-s"]],[[0,0,"pl-s"]],[[0,33,"pl-s"]],[[0,41,"pl-s"]],[[0,60,"pl-s"]],[[0,46,"pl-s"]],[[0,33,"pl-s"]],[[0,7,"pl-s"]],[[0,0,"pl-s"]],[[0,39,"pl-s"]],[[0,55,"pl-s"]],[[0,7,"pl-s"]],[[0,0,"pl-s"]],[[0,37,"pl-s"]],[[0,45,"pl-s"]],[[0,52,"pl-s"]],[[0,33,"pl-s"]],[[0,7,"pl-s"]],[[0,0,"pl-s"]],[[0,38,"pl-s"]],[[0,45,"pl-s"]],[[0,53,"pl-s"]],[[0,33,"pl-s"]],[[0,36,"pl-s"]],[[0,0,"pl-s"]],[[0,35,"pl-s"]],[[0,0,"pl-s"]],[[0,13,"pl-s"]],[[0,75,"pl-s"]],[[0,7,"pl-s"]],[[0,7,"pl-s"]],[],[[4,7,"pl-k"],[8,16,"pl-en"]],[[8,12,"pl-s1"],[14,23,"pl-s1"],[23,24,"pl-c1"],[24,36,"pl-s1"],[37,48,"pl-c1"],[49,53,"pl-c1"],[55,59,"pl-s1"],[59,60,"pl-c1"],[60,79,"pl-s"]],[],[[8,51,"pl-s"]],[[0,0,"pl-s"]],[[0,13,"pl-s"]],[[0,70,"pl-s"]],[[0,72,"pl-s"]],[[0,76,"pl-s"]],[[0,77,"pl-s"]],[[0,65,"pl-s"]],[[0,68,"pl-s"]],[[0,74,"pl-s"]],[[0,43,"pl-s"]],[[0,80,"pl-s"]],[[0,33,"pl-s"]],[[0,49,"pl-s"]],[[0,48,"pl-s"]],[[0,11,"pl-s"]],[[8,13,"pl-en"],[16,24,"pl-c1"],[25,42,"pl-s1"],[44,48,"pl-s1"],[48,49,"pl-c1"],[49,53,"pl-s1"],[55,64,"pl-s1"],[64,65,"pl-c1"],[65,74,"pl-s1"]],[],[],[[0,37,"pl-en"],[1,13,"pl-en"],[14,36,"pl-s"]],[[0,5,"pl-k"],[6,13,"pl-v"],[14,33,"pl-v"]],[[4,61,"pl-s"]],[[0,0,"pl-s"]],[[0,42,"pl-s"]],[[0,0,"pl-s"]],[[0,21,"pl-s"]],[[0,0,"pl-s"]],[[0,37,"pl-s"]],[[0,37,"pl-s"]],[[0,60,"pl-s"]],[[0,37,"pl-s"]],[[0,33,"pl-s"]],[[0,7,"pl-s"]],[[0,0,"pl-s"]],[[0,39,"pl-s"]],[[0,59,"pl-s"]],[[0,7,"pl-s"]],[[0,0,"pl-s"]],[[0,37,"pl-s"]],[[0,36,"pl-s"]],[[0,52,"pl-s"]],[[0,33,"pl-s"]],[[0,9,"pl-s"]],[[0,0,"pl-s"]],[[0,38,"pl-s"]],[[0,36,"pl-s"]],[[0,53,"pl-s"]],[[0,33,"pl-s"]],[[0,37,"pl-s"]],[[0,0,"pl-s"]],[[0,35,"pl-s"]],[[0,0,"pl-s"]],[[0,13,"pl-s"]],[[0,66,"pl-s"]],[[0,7,"pl-s"]],[[0,7,"pl-s"]],[],[[4,7,"pl-k"],[8,16,"pl-en"],[17,21,"pl-s1"],[23,32,"pl-s1"],[32,33,"pl-c1"],[33,45,"pl-s1"],[46,57,"pl-c1"],[58,62,"pl-c1"],[64,68,"pl-s1"],[68,69,"pl-c1"],[69,78,"pl-s"]],[[8,42,"pl-s"]],[[0,0,"pl-s"]],[[0,13,"pl-s"]],[[0,70,"pl-s"]],[[0,72,"pl-s"]],[[0,76,"pl-s"]],[[0,77,"pl-s"]],[[0,65,"pl-s"]],[[0,68,"pl-s"]],[[0,74,"pl-s"]],[[0,43,"pl-s"]],[[0,80,"pl-s"]],[[0,33,"pl-s"]],[[0,72,"pl-s"]],[[0,11,"pl-s"]],[[8,13,"pl-en"],[16,24,"pl-c1"],[25,32,"pl-s1"],[34,38,"pl-s1"],[38,39,"pl-c1"],[39,43,"pl-s1"],[45,54,"pl-s1"],[54,55,"pl-c1"],[55,64,"pl-s1"]],[],[],[[0,37,"pl-en"],[1,13,"pl-en"],[14,36,"pl-s"]],[[0,5,"pl-k"],[6,13,"pl-v"],[14,33,"pl-v"]],[[4,79,"pl-s"]],[[0,0,"pl-s"]],[[0,42,"pl-s"]],[[0,43,"pl-s"]],[[0,0,"pl-s"]],[[0,21,"pl-s"]],[[0,0,"pl-s"]],[[0,37,"pl-s"]],[[0,37,"pl-s"]],[[0,60,"pl-s"]],[[0,37,"pl-s"]],[[0,33,"pl-s"]],[[0,9,"pl-s"]],[[0,0,"pl-s"]],[[0,39,"pl-s"]],[[0,59,"pl-s"]],[[0,9,"pl-s"]],[[0,0,"pl-s"]],[[0,37,"pl-s"]],[[0,36,"pl-s"]],[[0,52,"pl-s"]],[[0,33,"pl-s"]],[[0,9,"pl-s"]],[[0,0,"pl-s"]],[[0,38,"pl-s"]],[[0,36,"pl-s"]],[[0,53,"pl-s"]],[[0,33,"pl-s"]],[[0,37,"pl-s"]],[[0,0,"pl-s"]],[[0,35,"pl-s"]],[[0,0,"pl-s"]],[[0,13,"pl-s"]],[[0,66,"pl-s"]],[[0,7,"pl-s"]],[[0,7,"pl-s"]],[],[[4,7,"pl-k"],[8,16,"pl-en"]],[[8,12,"pl-s1"],[14,23,"pl-s1"],[23,24,"pl-c1"],[24,36,"pl-s1"],[37,48,"pl-c1"],[49,53,"pl-c1"],[55,59,"pl-s1"],[59,60,"pl-c1"],[60,70,"pl-s"]],[],[[8,42,"pl-s"]],[[0,0,"pl-s"]],[[0,13,"pl-s"]],[[0,70,"pl-s"]],[[0,72,"pl-s"]],[[0,76,"pl-s"]],[[0,77,"pl-s"]],[[0,65,"pl-s"]],[[0,68,"pl-s"]],[[0,74,"pl-s"]],[[0,43,"pl-s"]],[[0,80,"pl-s"]],[[0,33,"pl-s"]],[[0,73,"pl-s"]],[[0,11,"pl-s"]],[[8,13,"pl-en"],[16,24,"pl-c1"],[25,33,"pl-s1"],[35,39,"pl-s1"],[39,40,"pl-c1"],[40,44,"pl-s1"],[46,55,"pl-s1"],[55,56,"pl-c1"],[56,65,"pl-s1"]],[],[],[[0,42,"pl-en"],[1,13,"pl-en"],[14,41,"pl-s"]],[[0,5,"pl-k"],[6,18,"pl-v"],[19,38,"pl-v"]],[[4,77,"pl-s"]],[[0,0,"pl-s"]],[[0,42,"pl-s"]],[[0,0,"pl-s"]],[[0,74,"pl-s"]],[[0,0,"pl-s"]],[[0,21,"pl-s"]],[[0,0,"pl-s"]],[[0,33,"pl-s"]],[[0,41,"pl-s"]],[[0,60,"pl-s"]],[[0,43,"pl-s"]],[[0,34,"pl-s"]],[[0,9,"pl-s"]],[[0,0,"pl-s"]],[[0,39,"pl-s"]],[[0,60,"pl-s"]],[[0,9,"pl-s"]],[[0,0,"pl-s"]],[[0,37,"pl-s"]],[[0,42,"pl-s"]],[[0,52,"pl-s"]],[[0,34,"pl-s"]],[[0,9,"pl-s"]],[[0,0,"pl-s"]],[[0,38,"pl-s"]],[[0,42,"pl-s"]],[[0,53,"pl-s"]],[[0,34,"pl-s"]],[[0,44,"pl-s"]],[[0,0,"pl-s"]],[[0,35,"pl-s"]],[[0,0,"pl-s"]],[[0,13,"pl-s"]],[[0,71,"pl-s"]],[[0,7,"pl-s"]],[[0,7,"pl-s"]],[],[[4,7,"pl-k"],[8,16,"pl-en"]],[[8,12,"pl-s1"],[14,23,"pl-s1"],[23,24,"pl-c1"],[24,36,"pl-s1"],[37,48,"pl-c1"],[49,53,"pl-c1"],[55,59,"pl-s1"],[59,60,"pl-c1"],[60,75,"pl-s"]],[],[[8,47,"pl-s"]],[[0,0,"pl-s"]],[[0,13,"pl-s"]],[[0,70,"pl-s"]],[[0,72,"pl-s"]],[[0,76,"pl-s"]],[[0,77,"pl-s"]],[[0,65,"pl-s"]],[[0,68,"pl-s"]],[[0,74,"pl-s"]],[[0,43,"pl-s"]],[[0,80,"pl-s"]],[[0,33,"pl-s"]],[[0,49,"pl-s"]],[[0,44,"pl-s"]],[[0,11,"pl-s"]],[[8,13,"pl-en"],[16,24,"pl-c1"],[25,38,"pl-s1"],[40,44,"pl-s1"],[44,45,"pl-c1"],[45,49,"pl-s1"],[51,60,"pl-s1"],[60,61,"pl-c1"],[61,70,"pl-s1"]],[],[],[[0,35,"pl-en"],[1,13,"pl-en"],[14,34,"pl-s"]],[[0,5,"pl-k"],[6,11,"pl-v"],[12,31,"pl-v"]],[[4,59,"pl-s"]],[[0,0,"pl-s"]],[[0,50,"pl-s"]],[[0,0,"pl-s"]],[[0,7,"pl-s"]],[[0,49,"pl-s"]],[[0,48,"pl-s"]],[[0,7,"pl-s"]],[[0,69,"pl-s"]],[[0,0,"pl-s"]],[[0,21,"pl-s"]],[[0,0,"pl-s"]],[[0,33,"pl-s"]],[[0,41,"pl-s"]],[[0,60,"pl-s"]],[[0,35,"pl-s"]],[[0,33,"pl-s"]],[[0,9,"pl-s"]],[[0,0,"pl-s"]],[[0,39,"pl-s"]],[[0,55,"pl-s"]],[[0,8,"pl-s"]],[[0,0,"pl-s"]],[[0,37,"pl-s"]],[[0,34,"pl-s"]],[[0,52,"pl-s"]],[[0,33,"pl-s"]],[[0,8,"pl-s"]],[[0,0,"pl-s"]],[[0,38,"pl-s"]],[[0,34,"pl-s"]],[[0,53,"pl-s"]],[[0,33,"pl-s"]],[[0,38,"pl-s"]],[[0,0,"pl-s"]],[[0,35,"pl-s"]],[[0,0,"pl-s"]],[[0,13,"pl-s"]],[[0,64,"pl-s"]],[[0,7,"pl-s"]],[[0,7,"pl-s"]],[],[[4,7,"pl-k"],[8,16,"pl-en"]],[[8,12,"pl-s1"]],[[8,13,"pl-s1"],[13,14,"pl-c1"],[14,17,"pl-c1"]],[[8,17,"pl-s1"],[17,18,"pl-c1"],[18,30,"pl-s1"],[31,42,"pl-c1"],[43,47,"pl-c1"]],[[8,12,"pl-s1"],[12,13,"pl-c1"],[13,25,"pl-s"]],[],[[8,40,"pl-s"]],[[0,0,"pl-s"]],[[0,13,"pl-s"]],[[0,80,"pl-s"]],[[0,38,"pl-s"]],[[0,70,"pl-s"]],[[0,72,"pl-s"]],[[0,76,"pl-s"]],[[0,77,"pl-s"]],[[0,65,"pl-s"]],[[0,68,"pl-s"]],[[0,74,"pl-s"]],[[0,43,"pl-s"]],[[0,80,"pl-s"]],[[0,33,"pl-s"]],[[0,75,"pl-s"]],[[0,11,"pl-s"]],[[8,13,"pl-en"],[16,24,"pl-c1"],[25,30,"pl-s1"],[32,36,"pl-s1"],[36,37,"pl-c1"],[37,41,"pl-s1"],[43,52,"pl-s1"],[52,53,"pl-c1"],[53,62,"pl-s1"],[64,69,"pl-s1"],[69,70,"pl-c1"],[70,75,"pl-s1"]],[],[],[[0,14,"pl-en"],[1,13,"pl-en"]],[[0,39,"pl-en"],[4,38,"pl-s"]],[[0,24,"pl-en"],[4,23,"pl-s"]],[[0,24,"pl-en"],[4,23,"pl-s"]],[[0,38,"pl-en"],[4,37,"pl-s"]],[[0,23,"pl-en"],[4,22,"pl-s"]],[[0,23,"pl-en"],[4,22,"pl-s"]],[[0,1,"pl-en"]],[[0,46,"pl-en"],[1,3,"pl-s1"],[4,16,"pl-c1"],[17,25,"pl-c1"],[26,46,"pl-c1"]],[[0,3,"pl-k"],[4,22,"pl-en"],[23,29,"pl-s1"],[31,37,"pl-s1"]],[[4,70,"pl-s"]],[[0,0,"pl-s"]],[[0,80,"pl-s"]],[[0,35,"pl-s"]],[[0,0,"pl-s"]],[[0,51,"pl-s"]],[[0,0,"pl-s"]],[[0,21,"pl-s"]],[[0,0,"pl-s"]],[[0,53,"pl-s"]],[[0,46,"pl-s"]],[[0,65,"pl-s"]],[[0,33,"pl-s"]],[[0,30,"pl-s"]],[[0,71,"pl-s"]],[[0,0,"pl-s"]],[[0,9,"pl-s"]],[[0,71,"pl-s"]],[[0,72,"pl-s"]],[[0,0,"pl-s"]],[[0,12,"pl-s"]],[[0,71,"pl-s"]],[[0,7,"pl-s"]],[[4,10,"pl-s1"],[11,12,"pl-c1"],[13,15,"pl-s1"],[16,33,"pl-c1"],[34,40,"pl-s1"]],[[4,10,"pl-s1"],[11,12,"pl-c1"],[13,15,"pl-s1"],[16,20,"pl-c1"],[21,27,"pl-s1"],[29,35,"pl-s1"],[36,41,"pl-c1"]],[[4,10,"pl-k"],[11,18,"pl-s1"],[19,23,"pl-c1"],[24,26,"pl-s1"],[27,31,"pl-c1"],[32,50,"pl-c1"],[51,57,"pl-s1"],[59,65,"pl-s1"],[68,72,"pl-s1"],[72,73,"pl-c1"],[73,74,"pl-c1"],[74,75,"pl-c1"]],[],[],[[0,3,"pl-k"],[4,29,"pl-en"],[30,37,"pl-s1"],[39,45,"pl-s1"],[47,53,"pl-s1"],[55,71,"pl-s1"],[71,72,"pl-c1"],[72,77,"pl-c1"]],[[4,50,"pl-s"]],[[0,0,"pl-s"]],[[0,9,"pl-s"]],[[0,34,"pl-s"]],[[0,43,"pl-s"]],[[0,47,"pl-s"]],[[0,80,"pl-s"]],[[0,14,"pl-s"]],[[0,0,"pl-s"]],[[0,12,"pl-s"]],[[0,71,"pl-s"]],[[0,68,"pl-s"]],[[0,7,"pl-s"]],[],[[4,7,"pl-k"],[8,25,"pl-en"],[26,28,"pl-s1"]],[[8,76,"pl-s"]],[[0,0,"pl-s"]],[[0,76,"pl-s"]],[[0,39,"pl-s"]],[[0,0,"pl-s"]],[[0,13,"pl-s"]],[[0,29,"pl-s"]],[[0,11,"pl-s"]],[[8,14,"pl-k"],[15,17,"pl-s1"],[18,28,"pl-c1"]],[],[[16,18,"pl-s1"],[19,24,"pl-c1"]],[[20,22,"pl-s1"],[23,27,"pl-c1"],[28,43,"pl-c1"]],[[24,26,"pl-s1"],[27,31,"pl-c1"],[32,40,"pl-s1"],[42,49,"pl-s1"],[50,56,"pl-c1"]],[],[[20,22,"pl-s1"],[23,31,"pl-c1"],[33,36,"pl-c1"]],[],[[16,19,"pl-k"],[20,28,"pl-s1"],[29,31,"pl-c1"],[32,34,"pl-s1"],[35,53,"pl-c1"]],[],[],[],[[4,7,"pl-k"],[8,25,"pl-en"],[26,32,"pl-s1"]],[[8,14,"pl-k"],[15,20,"pl-en"]],[[12,14,"pl-s1"],[15,24,"pl-c1"],[27,29,"pl-k"],[30,40,"pl-en"],[41,43,"pl-s1"],[45,47,"pl-s1"],[48,60,"pl-c1"],[62,66,"pl-k"],[67,69,"pl-s1"]],[[12,15,"pl-k"],[16,18,"pl-s1"],[19,21,"pl-c1"],[22,28,"pl-s1"]],[],[],[[4,7,"pl-k"],[8,18,"pl-en"],[19,25,"pl-s1"],[27,40,"pl-s1"]],[[8,79,"pl-s"]],[[0,0,"pl-s"]],[[0,74,"pl-s"]],[[0,37,"pl-s"]],[[0,11,"pl-s"]],[[8,9,"pl-s1"],[10,11,"pl-c1"],[12,19,"pl-en"],[20,21,"pl-c1"],[21,27,"pl-s1"]],[[8,10,"pl-k"],[11,24,"pl-s1"],[25,28,"pl-c1"],[29,32,"pl-c1"],[33,43,"pl-en"],[44,45,"pl-s1"],[47,49,"pl-s1"],[50,62,"pl-c1"]],[[12,13,"pl-s1"],[14,15,"pl-c1"],[16,18,"pl-s1"],[19,31,"pl-c1"],[32,43,"pl-c1"],[44,45,"pl-s1"]],[[8,12,"pl-k"],[13,16,"pl-c1"],[17,30,"pl-s1"],[31,34,"pl-c1"],[35,45,"pl-en"],[46,47,"pl-s1"],[49,51,"pl-s1"],[52,64,"pl-c1"]],[[12,13,"pl-s1"],[14,15,"pl-c1"],[16,17,"pl-s1"],[18,27,"pl-c1"]],[[8,14,"pl-k"],[15,16,"pl-s1"]],[],[[4,7,"pl-k"],[8,16,"pl-en"],[17,23,"pl-s1"],[25,38,"pl-s1"]],[[8,9,"pl-s1"],[11,17,"pl-s1"],[18,19,"pl-c1"],[20,26,"pl-s1"]],[[8,10,"pl-k"],[11,21,"pl-en"],[22,28,"pl-s1"],[30,32,"pl-s1"],[33,45,"pl-c1"]],[[12,18,"pl-k"],[19,21,"pl-s1"],[22,26,"pl-c1"]],[[16,33,"pl-en"],[34,40,"pl-s1"]],[[16,22,"pl-k"],[24,34,"pl-en"],[35,52,"pl-en"],[53,59,"pl-s1"],[62,75,"pl-s1"]],[[16,22,"pl-k"],[24,34,"pl-en"],[35,41,"pl-s1"],[43,56,"pl-s1"]],[],[],[[8,14,"pl-k"],[15,22,"pl-en"],[23,24,"pl-c1"],[24,30,"pl-s1"]],[],[[4,6,"pl-k"],[7,10,"pl-c1"],[11,21,"pl-en"],[22,28,"pl-s1"],[30,32,"pl-s1"],[33,45,"pl-c1"]],[[8,14,"pl-k"],[15,22,"pl-en"],[23,29,"pl-s1"],[31,37,"pl-s1"],[38,47,"pl-c1"]],[],[[4,10,"pl-s1"],[11,12,"pl-c1"],[13,19,"pl-s1"],[20,25,"pl-c1"],[26,33,"pl-c1"],[36,37,"pl-c1"],[38,39,"pl-c1"],[39,40,"pl-c1"]],[[4,6,"pl-k"],[7,10,"pl-en"],[11,17,"pl-s1"],[19,20,"pl-c1"],[21,22,"pl-c1"]],[[8,12,"pl-s1"],[13,14,"pl-c1"],[15,17,"pl-s1"],[18,34,"pl-c1"],[35,40,"pl-s1"],[40,41,"pl-c1"],[41,47,"pl-s1"],[49,54,"pl-s1"],[54,55,"pl-c1"],[55,61,"pl-s1"],[62,67,"pl-c1"]],[[4,8,"pl-k"]],[[8,12,"pl-s1"],[13,14,"pl-c1"],[15,17,"pl-s1"],[18,28,"pl-c1"],[29,34,"pl-s1"],[34,35,"pl-c1"],[39,44,"pl-s1"],[44,45,"pl-c1"],[45,51,"pl-s1"],[52,57,"pl-c1"]],[],[[4,22,"pl-s1"],[23,24,"pl-c1"],[26,28,"pl-s1"],[29,46,"pl-c1"],[47,50,"pl-k"],[51,53,"pl-s1"],[54,56,"pl-c1"],[58,64,"pl-s1"],[66,72,"pl-s1"]],[[4,6,"pl-k"],[7,23,"pl-s1"]],[[8,78,"pl-c"]],[[8,13,"pl-s1"],[14,15,"pl-c1"],[17,20,"pl-en"],[21,26,"pl-s1"],[28,31,"pl-k"],[32,37,"pl-s1"],[38,40,"pl-c1"],[41,59,"pl-s1"]],[[8,10,"pl-k"],[11,16,"pl-s1"],[17,18,"pl-c1"],[20,22,"pl-c1"],[23,28,"pl-s1"],[29,30,"pl-c1"],[32,33,"pl-c1"],[34,35,"pl-c1"]],[[12,30,"pl-s1"],[31,32,"pl-c1"],[34,35,"pl-c1"],[36,54,"pl-s1"],[55,56,"pl-c1"],[59,60,"pl-c1"],[60,61,"pl-c1"]],[],[[4,10,"pl-s1"],[11,12,"pl-c1"],[13,22,"pl-s1"],[23,30,"pl-c1"],[31,39,"pl-s1"],[41,54,"pl-s1"],[54,55,"pl-c1"],[55,58,"pl-en"],[59,65,"pl-s1"],[67,68,"pl-c1"],[69,70,"pl-c1"]],[],[[4,18,"pl-s1"],[19,20,"pl-c1"],[21,32,"pl-s1"],[33,52,"pl-c1"],[53,71,"pl-s1"]],[[4,8,"pl-k"],[9,11,"pl-s1"],[12,32,"pl-c1"],[33,47,"pl-s1"]],[[8,14,"pl-k"],[15,29,"pl-s1"],[30,36,"pl-c1"],[37,43,"pl-s1"],[45,50,"pl-s1"],[50,51,"pl-c1"],[52,58,"pl-s1"],[60,66,"pl-s1"],[69,74,"pl-s1"],[74,75,"pl-c1"],[75,79,"pl-s1"]],[],[],[[0,65,"pl-en"],[1,9,"pl-s1"],[10,28,"pl-c1"],[29,47,"pl-s1"],[49,51,"pl-s1"],[52,64,"pl-c1"]],[[0,3,"pl-k"],[4,22,"pl-en"],[23,29,"pl-s1"],[31,37,"pl-s1"]],[[4,53,"pl-s"]],[[0,0,"pl-s"]],[[0,9,"pl-s"]],[[0,77,"pl-s"]],[[0,46,"pl-s"]],[[0,46,"pl-s"]],[[0,0,"pl-s"]],[[0,12,"pl-s"]],[[0,71,"pl-s"]],[[0,80,"pl-s"]],[[0,79,"pl-s"]],[[0,56,"pl-s"]],[[0,7,"pl-s"]],[[4,10,"pl-k"],[11,36,"pl-en"],[37,55,"pl-s1"],[57,63,"pl-s1"],[65,71,"pl-s1"]],[],[],[[0,14,"pl-en"],[1,13,"pl-en"]],[[0,40,"pl-en"],[4,39,"pl-s"]],[[0,24,"pl-en"],[4,23,"pl-s"]],[[0,24,"pl-en"],[4,23,"pl-s"]],[[0,39,"pl-en"],[4,38,"pl-s"]],[[0,23,"pl-en"],[4,22,"pl-s"]],[[0,23,"pl-en"],[4,22,"pl-s"]],[[0,1,"pl-en"]],[[0,46,"pl-en"],[1,3,"pl-s1"],[4,16,"pl-c1"],[17,25,"pl-c1"],[26,46,"pl-c1"]],[[0,3,"pl-k"],[4,23,"pl-en"],[24,30,"pl-s1"],[32,38,"pl-s1"]],[[4,71,"pl-s"]],[[0,0,"pl-s"]],[[0,48,"pl-s"]],[[0,0,"pl-s"]],[[0,21,"pl-s"]],[[0,0,"pl-s"]],[[0,53,"pl-s"]],[[0,46,"pl-s"]],[[0,66,"pl-s"]],[[0,33,"pl-s"]],[[0,30,"pl-s"]],[[0,68,"pl-s"]],[[0,0,"pl-s"]],[[0,9,"pl-s"]],[[0,71,"pl-s"]],[[0,72,"pl-s"]],[[0,0,"pl-s"]],[[0,12,"pl-s"]],[[0,72,"pl-s"]],[[0,7,"pl-s"]],[[4,10,"pl-s1"],[11,12,"pl-c1"],[13,15,"pl-s1"],[16,33,"pl-c1"],[34,40,"pl-s1"]],[[4,10,"pl-s1"],[11,12,"pl-c1"],[13,15,"pl-s1"],[16,20,"pl-c1"],[21,27,"pl-s1"],[29,35,"pl-s1"],[36,41,"pl-c1"]],[[4,10,"pl-k"],[11,18,"pl-s1"],[19,23,"pl-c1"],[24,26,"pl-s1"],[27,30,"pl-c1"],[31,37,"pl-s1"],[38,39,"pl-c1"],[40,46,"pl-s1"],[49,53,"pl-s1"],[53,54,"pl-c1"],[54,55,"pl-c1"],[55,56,"pl-c1"]],[],[],[[0,66,"pl-en"],[1,9,"pl-s1"],[10,28,"pl-c1"],[29,48,"pl-s1"],[50,52,"pl-s1"],[53,65,"pl-c1"]],[[0,3,"pl-k"],[4,22,"pl-en"],[23,29,"pl-s1"],[31,37,"pl-s1"]],[[4,55,"pl-s"]],[[4,10,"pl-k"],[11,36,"pl-en"],[37,56,"pl-s1"],[58,64,"pl-s1"],[66,72,"pl-s1"]],[],[],[[0,14,"pl-en"],[1,13,"pl-en"]],[[0,51,"pl-en"],[4,50,"pl-s"]],[[0,25,"pl-en"],[4,24,"pl-s"]],[[0,25,"pl-en"],[4,24,"pl-s"]],[[0,50,"pl-en"],[4,49,"pl-s"]],[[0,24,"pl-en"],[4,23,"pl-s"]],[[0,24,"pl-en"],[4,23,"pl-s"]],[[0,1,"pl-en"]],[[0,46,"pl-en"],[1,3,"pl-s1"],[4,16,"pl-c1"],[17,25,"pl-c1"],[26,46,"pl-c1"]],[[0,3,"pl-k"],[4,34,"pl-en"],[35,41,"pl-s1"],[43,49,"pl-s1"]],[[4,79,"pl-s"]],[[0,0,"pl-s"]],[[0,65,"pl-s"]],[[0,0,"pl-s"]],[[0,21,"pl-s"]],[[0,0,"pl-s"]],[[0,46,"pl-s"]],[[0,69,"pl-s"]],[[0,46,"pl-s"]],[[0,77,"pl-s"]],[[0,33,"pl-s"]],[[0,30,"pl-s"]],[[0,25,"pl-s"]],[[0,72,"pl-s"]],[[0,0,"pl-s"]],[[0,9,"pl-s"]],[[0,71,"pl-s"]],[[0,72,"pl-s"]],[[0,0,"pl-s"]],[[0,12,"pl-s"]],[[0,75,"pl-s"]],[[0,15,"pl-s"]],[[0,7,"pl-s"]],[[4,10,"pl-s1"],[11,12,"pl-c1"],[13,15,"pl-s1"],[16,33,"pl-c1"],[34,40,"pl-s1"]],[[4,10,"pl-s1"],[11,12,"pl-c1"],[13,15,"pl-s1"],[16,20,"pl-c1"],[21,27,"pl-s1"],[29,35,"pl-s1"],[36,41,"pl-c1"]],[[4,8,"pl-s1"],[9,10,"pl-c1"],[11,13,"pl-s1"],[14,17,"pl-c1"]],[[9,15,"pl-s1"],[16,17,"pl-c1"],[18,24,"pl-s1"],[26,27,"pl-c1"],[28,35,"pl-s1"],[36,43,"pl-c1"],[44,46,"pl-s1"],[47,50,"pl-c1"],[51,57,"pl-s1"],[60,67,"pl-s1"],[68,75,"pl-c1"]],[],[[4,10,"pl-k"],[11,16,"pl-c1"],[17,18,"pl-c1"],[19,26,"pl-s1"],[27,31,"pl-c1"],[32,36,"pl-s1"],[38,42,"pl-s1"],[42,43,"pl-c1"],[43,44,"pl-c1"],[44,45,"pl-c1"]],[],[],[[0,77,"pl-en"],[1,9,"pl-s1"],[10,28,"pl-c1"],[29,59,"pl-s1"],[61,63,"pl-s1"],[64,76,"pl-c1"]],[[0,3,"pl-k"],[4,23,"pl-en"],[24,30,"pl-s1"],[32,38,"pl-s1"]],[[4,32,"pl-s"]],[[4,10,"pl-k"],[11,36,"pl-en"]],[[8,38,"pl-s1"],[40,46,"pl-s1"],[48,54,"pl-s1"]],[],[],[],[[0,14,"pl-en"],[1,13,"pl-en"]],[[0,51,"pl-en"],[4,50,"pl-s"]],[[0,25,"pl-en"],[4,24,"pl-s"]],[[0,25,"pl-en"],[4,24,"pl-s"]],[[0,50,"pl-en"],[4,49,"pl-s"]],[[0,24,"pl-en"],[4,23,"pl-s"]],[[0,24,"pl-en"],[4,23,"pl-s"]],[[0,1,"pl-en"]],[[0,46,"pl-en"],[1,3,"pl-s1"],[4,16,"pl-c1"],[17,25,"pl-c1"],[26,46,"pl-c1"]],[[0,3,"pl-k"],[4,34,"pl-en"],[35,41,"pl-s1"],[43,49,"pl-s1"]],[[4,79,"pl-s"]],[[0,0,"pl-s"]],[[0,69,"pl-s"]],[[0,0,"pl-s"]],[[0,21,"pl-s"]],[[0,0,"pl-s"]],[[0,53,"pl-s"]],[[0,46,"pl-s"]],[[0,77,"pl-s"]],[[0,33,"pl-s"]],[[0,41,"pl-s"]],[[0,41,"pl-s"]],[[0,27,"pl-s"]],[[0,25,"pl-s"]],[[0,20,"pl-s"]],[[0,79,"pl-s"]],[[0,0,"pl-s"]],[[0,9,"pl-s"]],[[0,71,"pl-s"]],[[0,72,"pl-s"]],[[0,0,"pl-s"]],[[0,12,"pl-s"]],[[0,75,"pl-s"]],[[0,15,"pl-s"]],[[0,7,"pl-s"]],[[4,10,"pl-s1"],[11,12,"pl-c1"],[13,15,"pl-s1"],[16,33,"pl-c1"],[34,40,"pl-s1"]],[[4,10,"pl-s1"],[11,12,"pl-c1"],[13,15,"pl-s1"],[16,20,"pl-c1"],[21,27,"pl-s1"],[29,35,"pl-s1"],[36,41,"pl-c1"]],[[4,13,"pl-s1"],[14,15,"pl-c1"],[16,18,"pl-s1"],[19,23,"pl-c1"],[24,27,"pl-c1"],[28,35,"pl-s1"],[36,43,"pl-c1"],[44,50,"pl-s1"],[52,59,"pl-s1"],[60,67,"pl-c1"],[71,72,"pl-c1"],[73,76,"pl-c1"]],[[4,14,"pl-s1"],[15,16,"pl-c1"],[17,19,"pl-s1"],[20,24,"pl-c1"],[25,28,"pl-c1"],[29,36,"pl-s1"],[37,44,"pl-c1"],[45,51,"pl-s1"],[53,60,"pl-s1"],[61,68,"pl-c1"],[72,73,"pl-c1"],[74,77,"pl-c1"]],[[4,10,"pl-k"],[11,18,"pl-s1"],[19,23,"pl-c1"]],[[8,10,"pl-s1"],[11,15,"pl-c1"],[16,34,"pl-c1"],[35,44,"pl-s1"],[46,56,"pl-s1"],[59,63,"pl-s1"],[63,64,"pl-c1"],[64,65,"pl-c1"],[65,66,"pl-c1"]],[],[],[],[[0,77,"pl-en"],[1,9,"pl-s1"],[10,28,"pl-c1"],[29,59,"pl-s1"],[61,63,"pl-s1"],[64,76,"pl-c1"]],[[0,3,"pl-k"],[4,23,"pl-en"],[24,30,"pl-s1"],[32,38,"pl-s1"]],[[4,56,"pl-s"]],[[4,10,"pl-k"],[11,36,"pl-en"]],[[8,38,"pl-s1"],[40,46,"pl-s1"],[48,54,"pl-s1"]],[],[],[],[[0,3,"pl-k"],[4,25,"pl-en"],[26,32,"pl-s1"]],[[4,43,"pl-s"]],[[4,13,"pl-s1"],[14,15,"pl-c1"],[16,18,"pl-s1"],[19,24,"pl-c1"],[25,31,"pl-s1"],[33,34,"pl-c1"]],[[4,12,"pl-s1"],[13,14,"pl-c1"],[15,17,"pl-s1"],[18,23,"pl-c1"],[24,30,"pl-s1"],[32,33,"pl-c1"]],[[4,13,"pl-s1"],[14,15,"pl-c1"],[16,18,"pl-s1"],[19,29,"pl-c1"],[30,32,"pl-s1"],[33,43,"pl-c1"],[44,53,"pl-s1"],[55,63,"pl-s1"]],[],[[4,7,"pl-k"],[8,30,"pl-en"]],[[8,47,"pl-c"]],[[8,14,"pl-k"],[15,18,"pl-c1"],[19,20,"pl-c1"],[21,27,"pl-s1"],[28,29,"pl-c1"],[30,33,"pl-c1"]],[],[[4,18,"pl-s1"],[19,20,"pl-c1"],[21,23,"pl-s1"],[24,36,"pl-c1"],[37,47,"pl-c1"],[48,58,"pl-c1"]],[[8,17,"pl-s1"],[19,41,"pl-s1"],[43,49,"pl-k"],[51,57,"pl-s1"]],[],[[4,10,"pl-k"],[11,25,"pl-s1"]],[],[],[[0,74,"pl-en"],[1,13,"pl-en"],[14,43,"pl-s"],[45,73,"pl-s"]],[[0,46,"pl-en"],[1,3,"pl-s1"],[4,16,"pl-c1"],[17,25,"pl-c1"],[26,46,"pl-c1"]],[[0,3,"pl-k"],[4,17,"pl-en"],[18,24,"pl-s1"],[26,32,"pl-s1"]],[[4,67,"pl-s"]],[[0,0,"pl-s"]],[[0,67,"pl-s"]],[[0,0,"pl-s"]],[[0,21,"pl-s"]],[[0,0,"pl-s"]],[[0,55,"pl-s"]],[[0,46,"pl-s"]],[[0,60,"pl-s"]],[[0,33,"pl-s"]],[[0,30,"pl-s"]],[[0,25,"pl-s"]],[[0,78,"pl-s"]],[[0,0,"pl-s"]],[[0,9,"pl-s"]],[[0,78,"pl-s"]],[[0,80,"pl-s"]],[[0,55,"pl-s"]],[[0,72,"pl-s"]],[[0,0,"pl-s"]],[[0,12,"pl-s"]],[[0,71,"pl-s"]],[[0,7,"pl-s"]],[[4,10,"pl-s1"],[11,12,"pl-c1"],[13,15,"pl-s1"],[16,33,"pl-c1"],[34,40,"pl-s1"]],[[4,10,"pl-s1"],[11,12,"pl-c1"],[13,15,"pl-s1"],[16,20,"pl-c1"],[21,27,"pl-s1"],[29,35,"pl-s1"],[36,41,"pl-c1"]],[[4,10,"pl-s1"],[11,12,"pl-c1"],[13,34,"pl-en"],[35,41,"pl-s1"]],[[4,10,"pl-k"],[11,18,"pl-s1"],[19,23,"pl-c1"]],[[8,10,"pl-s1"],[11,17,"pl-c1"],[18,20,"pl-s1"],[21,28,"pl-c1"],[29,32,"pl-c1"],[33,34,"pl-c1"],[35,41,"pl-s1"],[42,43,"pl-c1"],[44,50,"pl-s1"],[52,55,"pl-c1"],[59,63,"pl-s1"],[63,64,"pl-c1"],[64,65,"pl-c1"],[65,66,"pl-c1"]],[],[],[],[[0,58,"pl-en"],[1,13,"pl-en"],[14,35,"pl-s"],[37,57,"pl-s"]],[[0,46,"pl-en"],[1,3,"pl-s1"],[4,16,"pl-c1"],[17,25,"pl-c1"],[26,46,"pl-c1"]],[[0,3,"pl-k"],[4,9,"pl-en"],[10,16,"pl-s1"],[18,24,"pl-s1"]],[[4,59,"pl-s"]],[[0,0,"pl-s"]],[[0,59,"pl-s"]],[[0,0,"pl-s"]],[[0,21,"pl-s"]],[[0,0,"pl-s"]],[[0,55,"pl-s"]],[[0,46,"pl-s"]],[[0,52,"pl-s"]],[[0,33,"pl-s"]],[[0,30,"pl-s"]],[[0,25,"pl-s"]],[[0,67,"pl-s"]],[[0,0,"pl-s"]],[[0,9,"pl-s"]],[[0,78,"pl-s"]],[[0,80,"pl-s"]],[[0,55,"pl-s"]],[[0,72,"pl-s"]],[[0,0,"pl-s"]],[[0,12,"pl-s"]],[[0,63,"pl-s"]],[[0,7,"pl-s"]],[[4,10,"pl-s1"],[11,12,"pl-c1"],[13,15,"pl-s1"],[16,33,"pl-c1"],[34,40,"pl-s1"]],[[4,10,"pl-s1"],[11,12,"pl-c1"],[13,15,"pl-s1"],[16,20,"pl-c1"],[21,27,"pl-s1"],[29,35,"pl-s1"],[36,41,"pl-c1"]],[[4,10,"pl-s1"],[11,12,"pl-c1"],[13,34,"pl-en"],[35,41,"pl-s1"]],[[4,10,"pl-k"],[11,18,"pl-s1"],[19,23,"pl-c1"],[24,26,"pl-s1"],[27,34,"pl-c1"],[35,38,"pl-c1"],[39,40,"pl-c1"],[41,47,"pl-s1"],[48,49,"pl-c1"],[50,56,"pl-s1"],[58,61,"pl-c1"],[64,68,"pl-s1"],[68,69,"pl-c1"],[69,70,"pl-c1"],[70,71,"pl-c1"]],[],[],[[0,47,"pl-en"],[1,13,"pl-en"],[14,46,"pl-s"]],[[0,46,"pl-en"],[1,3,"pl-s1"],[4,16,"pl-c1"],[17,25,"pl-c1"],[26,46,"pl-c1"]],[[0,3,"pl-k"],[4,21,"pl-en"],[22,28,"pl-s1"],[30,36,"pl-s1"]],[[4,71,"pl-s"]],[[0,0,"pl-s"]],[[0,38,"pl-s"]],[[0,69,"pl-s"]],[[0,0,"pl-s"]],[[0,21,"pl-s"]],[[0,0,"pl-s"]],[[0,51,"pl-s"]],[[0,69,"pl-s"]],[[0,46,"pl-s"]],[[0,64,"pl-s"]],[[0,33,"pl-s"]],[[0,46,"pl-s"]],[[0,54,"pl-s"]],[[0,75,"pl-s"]],[[0,0,"pl-s"]],[[0,9,"pl-s"]],[[0,75,"pl-s"]],[[0,70,"pl-s"]],[[0,37,"pl-s"]],[[0,0,"pl-s"]],[[0,12,"pl-s"]],[[0,38,"pl-s"]],[[0,7,"pl-s"]],[[4,10,"pl-s1"],[11,12,"pl-c1"],[13,15,"pl-s1"],[16,33,"pl-c1"],[34,40,"pl-s1"]],[[4,10,"pl-s1"],[11,12,"pl-c1"],[13,15,"pl-s1"],[16,20,"pl-c1"],[21,27,"pl-s1"],[29,35,"pl-s1"],[36,41,"pl-c1"]],[[4,7,"pl-s1"],[8,9,"pl-c1"],[10,12,"pl-s1"],[13,23,"pl-c1"],[24,30,"pl-s1"],[31,32,"pl-c1"],[33,39,"pl-s1"],[41,45,"pl-s1"],[45,46,"pl-c1"],[46,47,"pl-c1"],[47,48,"pl-c1"]],[[4,7,"pl-s1"],[8,9,"pl-c1"],[10,12,"pl-s1"],[13,23,"pl-c1"],[25,28,"pl-c1"],[29,30,"pl-c1"],[31,37,"pl-s1"],[39,40,"pl-c1"],[41,47,"pl-s1"],[49,53,"pl-s1"],[53,54,"pl-c1"],[54,55,"pl-c1"],[55,56,"pl-c1"]],[[4,8,"pl-s1"],[9,10,"pl-c1"],[11,13,"pl-s1"],[14,18,"pl-c1"],[19,22,"pl-c1"],[24,30,"pl-s1"],[31,36,"pl-c1"]],[[4,10,"pl-k"],[11,13,"pl-s1"],[14,21,"pl-c1"],[22,25,"pl-s1"],[26,27,"pl-c1"],[28,31,"pl-s1"],[32,33,"pl-c1"],[34,37,"pl-c1"],[39,43,"pl-s1"]],[],[],[[0,42,"pl-en"],[1,13,"pl-en"],[14,34,"pl-s"],[36,38,"pl-s1"],[38,39,"pl-c1"]],[[0,46,"pl-en"],[1,3,"pl-s1"],[4,16,"pl-c1"],[17,25,"pl-c1"],[26,46,"pl-c1"]],[[0,3,"pl-k"],[4,9,"pl-en"],[10,16,"pl-s1"],[18,24,"pl-s1"],[26,31,"pl-s1"],[31,32,"pl-c1"],[32,35,"pl-c1"]],[[4,33,"pl-s"]],[[0,0,"pl-s"]],[[0,50,"pl-s"]],[[0,0,"pl-s"]],[[0,7,"pl-s"]],[[0,49,"pl-s"]],[[0,48,"pl-s"]],[[0,7,"pl-s"]],[[0,69,"pl-s"]],[[0,0,"pl-s"]],[[0,9,"pl-s"]],[[0,39,"pl-s"]],[[0,44,"pl-s"]],[[0,78,"pl-s"]],[[0,32,"pl-s"]],[[0,0,"pl-s"]],[[0,12,"pl-s"]],[[0,53,"pl-s"]],[[0,7,"pl-s"]],[[4,10,"pl-s1"],[11,12,"pl-c1"],[13,15,"pl-s1"],[16,20,"pl-c1"],[21,27,"pl-s1"],[29,34,"pl-s1"],[34,35,"pl-c1"],[35,42,"pl-s1"],[43,49,"pl-c1"]],[[4,10,"pl-s1"],[11,12,"pl-c1"],[13,15,"pl-s1"],[16,20,"pl-c1"],[21,27,"pl-s1"],[29,34,"pl-s1"],[34,35,"pl-c1"],[35,42,"pl-s1"],[43,49,"pl-c1"]],[[4,9,"pl-s1"],[10,11,"pl-c1"],[12,14,"pl-s1"],[15,19,"pl-c1"],[20,25,"pl-s1"],[27,32,"pl-s1"],[32,33,"pl-c1"],[33,40,"pl-s1"],[41,47,"pl-c1"]],[[4,9,"pl-s1"],[10,11,"pl-c1"],[12,14,"pl-s1"],[15,23,"pl-c1"],[24,30,"pl-s1"],[32,38,"pl-s1"]],[[4,13,"pl-s1"],[14,15,"pl-c1"],[16,18,"pl-s1"],[19,22,"pl-c1"],[23,28,"pl-s1"]],[[4,8,"pl-s1"],[9,10,"pl-c1"],[11,13,"pl-s1"],[14,31,"pl-c1"],[32,35,"pl-c1"],[37,42,"pl-s1"],[42,43,"pl-c1"],[43,52,"pl-s1"],[53,58,"pl-c1"]],[[4,10,"pl-k"],[11,18,"pl-s1"],[19,23,"pl-c1"]],[[8,10,"pl-s1"],[11,16,"pl-c1"]],[[12,21,"pl-s1"],[22,24,"pl-c1"],[25,30,"pl-s1"]],[[12,16,"pl-s1"],[17,18,"pl-c1"],[19,21,"pl-s1"],[22,28,"pl-c1"],[29,34,"pl-s1"]],[[12,17,"pl-s1"],[18,19,"pl-c1"],[20,29,"pl-s1"],[30,31,"pl-c1"],[32,36,"pl-s1"],[37,38,"pl-c1"],[39,41,"pl-s1"],[42,48,"pl-c1"],[49,54,"pl-s1"]],[],[[8,12,"pl-s1"],[12,13,"pl-c1"],[13,14,"pl-c1"],[14,15,"pl-c1"]],[],[],[],[[0,14,"pl-en"],[1,13,"pl-en"]],[[0,28,"pl-en"],[4,27,"pl-s"]],[[0,27,"pl-en"],[4,26,"pl-s"]],[[0,29,"pl-en"],[4,28,"pl-s"]],[[0,28,"pl-en"],[4,27,"pl-s"]],[[0,1,"pl-en"]],[[0,46,"pl-en"],[1,3,"pl-s1"],[4,16,"pl-c1"],[17,25,"pl-c1"],[26,46,"pl-c1"]],[[0,3,"pl-k"],[4,12,"pl-en"],[13,19,"pl-s1"],[21,27,"pl-s1"]],[[4,66,"pl-s"]],[[0,0,"pl-s"]],[[0,77,"pl-s"]],[[0,78,"pl-s"]],[[0,76,"pl-s"]],[[0,43,"pl-s"]],[[0,0,"pl-s"]],[[0,21,"pl-s"]],[[0,0,"pl-s"]],[[0,46,"pl-s"]],[[0,46,"pl-s"]],[[0,54,"pl-s"]],[[0,33,"pl-s"]],[[0,27,"pl-s"]],[[0,27,"pl-s"]],[[0,25,"pl-s"]],[[0,71,"pl-s"]],[[0,29,"pl-s"]],[[0,22,"pl-s"]],[[0,0,"pl-s"]],[[0,9,"pl-s"]],[[0,71,"pl-s"]],[[0,72,"pl-s"]],[[0,0,"pl-s"]],[[0,12,"pl-s"]],[[0,66,"pl-s"]],[[0,7,"pl-s"]],[[4,10,"pl-s1"],[11,12,"pl-c1"],[13,15,"pl-s1"],[16,33,"pl-c1"],[34,40,"pl-s1"]],[[4,10,"pl-s1"],[11,12,"pl-c1"],[13,15,"pl-s1"],[16,20,"pl-c1"],[21,27,"pl-s1"],[29,35,"pl-s1"],[36,41,"pl-c1"]],[],[[4,7,"pl-k"],[8,16,"pl-en"],[17,18,"pl-s1"]],[[8,14,"pl-k"]],[[12,13,"pl-s1"],[14,15,"pl-c1"],[16,18,"pl-s1"],[19,23,"pl-c1"],[24,32,"pl-c1"],[33,34,"pl-c1"],[34,37,"pl-c1"],[38,39,"pl-c1"],[40,41,"pl-s1"],[43,44,"pl-c1"],[45,47,"pl-s1"],[48,52,"pl-c1"],[53,55,"pl-s1"],[56,60,"pl-c1"],[61,64,"pl-c1"],[65,68,"pl-c1"],[71,72,"pl-s1"],[73,78,"pl-c1"]],[],[],[[4,10,"pl-k"],[11,18,"pl-s1"],[19,23,"pl-c1"],[24,32,"pl-en"],[33,39,"pl-s1"],[40,41,"pl-c1"],[42,48,"pl-s1"],[51,55,"pl-s1"],[55,56,"pl-c1"],[56,57,"pl-c1"],[57,58,"pl-c1"]],[],[],[[0,14,"pl-en"],[1,13,"pl-en"]],[[0,45,"pl-en"],[4,44,"pl-s"]],[[0,44,"pl-en"],[4,43,"pl-s"]],[[0,1,"pl-en"]],[[0,46,"pl-en"],[1,3,"pl-s1"],[4,16,"pl-c1"],[17,25,"pl-c1"],[26,46,"pl-c1"]],[[0,3,"pl-k"],[4,28,"pl-en"]],[[4,10,"pl-s1"],[12,18,"pl-s1"],[20,31,"pl-s1"],[31,32,"pl-c1"],[32,37,"pl-c1"],[39,54,"pl-s1"],[54,55,"pl-c1"],[55,58,"pl-c1"],[60,64,"pl-s1"],[64,65,"pl-c1"],[65,66,"pl-c1"],[66,67,"pl-c1"]],[],[[4,50,"pl-s"]],[[0,0,"pl-s"]],[[0,21,"pl-s"]],[[0,0,"pl-s"]],[[0,39,"pl-s"]],[[0,51,"pl-s"]],[[0,71,"pl-s"]],[[0,33,"pl-s"]],[[0,20,"pl-s"]],[[0,41,"pl-s"]],[[0,0,"pl-s"]],[[0,9,"pl-s"]],[[0,47,"pl-s"]],[[0,44,"pl-s"]],[[0,75,"pl-s"]],[[0,80,"pl-s"]],[[0,78,"pl-s"]],[[0,76,"pl-s"]],[[0,60,"pl-s"]],[[0,70,"pl-s"]],[[0,21,"pl-s"]],[[0,0,"pl-s"]],[[0,12,"pl-s"]],[[0,44,"pl-s"]],[[0,7,"pl-s"]],[[4,6,"pl-k"],[7,17,"pl-en"],[18,22,"pl-s1"],[24,28,"pl-s1"]],[[8,13,"pl-k"],[14,24,"pl-en"]],[[12,44,"pl-s"]],[[12,57,"pl-s"],[29,35,"pl-s1"],[29,30,"pl-kos"],[30,34,"pl-s1"],[34,35,"pl-kos"],[44,56,"pl-s1"],[44,45,"pl-kos"],[45,49,"pl-en"],[50,54,"pl-s1"],[55,56,"pl-kos"]],[],[[4,10,"pl-s1"],[11,12,"pl-c1"],[13,15,"pl-s1"],[16,33,"pl-c1"],[34,40,"pl-s1"]],[[4,10,"pl-s1"],[11,12,"pl-c1"],[13,15,"pl-s1"],[16,20,"pl-c1"],[21,27,"pl-s1"],[29,35,"pl-s1"],[36,41,"pl-c1"]],[[4,19,"pl-s1"],[20,21,"pl-c1"],[22,24,"pl-s1"],[25,42,"pl-c1"],[43,58,"pl-s1"],[60,65,"pl-s1"],[65,66,"pl-c1"],[66,72,"pl-s1"],[73,78,"pl-c1"]],[],[[4,6,"pl-k"],[7,13,"pl-s1"],[14,19,"pl-c1"],[20,21,"pl-c1"],[21,22,"pl-c1"],[24,26,"pl-c1"],[27,28,"pl-c1"]],[[8,16,"pl-s1"],[17,21,"pl-c1"]],[[12,57,"pl-s"]],[[12,59,"pl-s"]],[[12,76,"pl-s"],[59,73,"pl-s1"],[59,60,"pl-kos"],[60,66,"pl-s1"],[67,72,"pl-c1"],[72,73,"pl-kos"]],[[12,78,"pl-s"]],[[12,25,"pl-v"]],[[12,22,"pl-s1"],[22,23,"pl-c1"],[23,24,"pl-c1"]],[],[],[[4,7,"pl-k"],[8,22,"pl-en"]],[[8,19,"pl-s1"],[20,21,"pl-c1"],[22,24,"pl-s1"],[25,29,"pl-c1"],[30,32,"pl-s1"],[33,38,"pl-c1"],[39,45,"pl-s1"],[47,51,"pl-s1"],[54,60,"pl-s1"],[61,66,"pl-c1"]],[[8,14,"pl-k"],[15,21,"pl-s1"],[22,23,"pl-c1"],[25,28,"pl-c1"],[29,30,"pl-c1"],[31,46,"pl-s1"],[48,49,"pl-c1"]],[[12,27,"pl-s1"],[28,29,"pl-c1"],[30,41,"pl-s1"]],[],[],[[4,10,"pl-s1"],[11,12,"pl-c1"],[13,15,"pl-s1"],[16,28,"pl-c1"],[29,39,"pl-c1"],[40,50,"pl-c1"]],[[8,23,"pl-s1"],[25,39,"pl-s1"],[41,47,"pl-k"],[49,55,"pl-s1"]],[],[],[[4,10,"pl-k"],[11,18,"pl-s1"],[19,43,"pl-c1"]],[[8,14,"pl-s1"],[16,22,"pl-s1"],[24,35,"pl-s1"],[35,36,"pl-c1"],[36,47,"pl-s1"],[49,53,"pl-s1"],[53,54,"pl-c1"],[54,58,"pl-s1"]],[],[],[],[[0,71,"pl-en"],[1,9,"pl-s1"],[10,28,"pl-c1"],[29,53,"pl-s1"],[55,57,"pl-s1"],[58,70,"pl-c1"]],[[0,3,"pl-k"],[4,43,"pl-en"]],[[4,10,"pl-s1"],[12,18,"pl-s1"],[20,31,"pl-s1"],[31,32,"pl-c1"],[32,37,"pl-c1"],[39,54,"pl-s1"],[54,55,"pl-c1"],[55,58,"pl-c1"],[60,64,"pl-s1"],[64,65,"pl-c1"],[65,66,"pl-c1"],[66,67,"pl-c1"]],[],[[4,53,"pl-s"]],[[0,0,"pl-s"]],[[0,9,"pl-s"]],[[0,47,"pl-s"]],[[0,44,"pl-s"]],[[0,75,"pl-s"]],[[0,80,"pl-s"]],[[0,78,"pl-s"]],[[0,76,"pl-s"]],[[0,60,"pl-s"]],[[0,79,"pl-s"]],[[0,27,"pl-s"]],[[0,0,"pl-s"]],[[0,12,"pl-s"]],[[0,44,"pl-s"]],[[0,0,"pl-s"]],[[0,70,"pl-s"]],[[0,29,"pl-s"]],[[0,40,"pl-s"]],[[0,0,"pl-s"]],[[0,69,"pl-s"]],[[0,67,"pl-s"]],[[0,73,"pl-s"]],[[0,71,"pl-s"]],[[0,55,"pl-s"]],[[0,7,"pl-s"]],[[4,6,"pl-s1"],[7,8,"pl-c1"],[9,18,"pl-s1"],[19,26,"pl-c1"]],[[8,32,"pl-s1"]],[[8,19,"pl-s1"],[19,20,"pl-c1"],[20,31,"pl-s1"]],[[8,23,"pl-s1"],[23,24,"pl-c1"],[24,39,"pl-s1"]],[[8,12,"pl-s1"],[12,13,"pl-c1"],[13,17,"pl-s1"]],[],[[4,10,"pl-k"],[11,36,"pl-en"],[37,39,"pl-s1"],[41,47,"pl-s1"],[49,55,"pl-s1"]],[],[],[[0,14,"pl-en"],[1,13,"pl-en"]],[[0,51,"pl-en"],[4,50,"pl-s"]],[[0,50,"pl-en"],[4,49,"pl-s"]],[[0,1,"pl-en"]],[[0,46,"pl-en"],[1,3,"pl-s1"],[4,16,"pl-c1"],[17,25,"pl-c1"],[26,46,"pl-c1"]],[[0,3,"pl-k"],[4,34,"pl-en"]],[[4,10,"pl-s1"]],[[4,10,"pl-s1"]],[[4,9,"pl-s1"],[9,10,"pl-c1"],[10,14,"pl-c1"]],[[4,9,"pl-s1"],[9,10,"pl-c1"],[10,13,"pl-c1"]],[[4,15,"pl-s1"],[15,16,"pl-c1"],[16,21,"pl-c1"]],[[4,19,"pl-s1"],[19,20,"pl-c1"],[20,23,"pl-c1"]],[[4,8,"pl-s1"],[8,9,"pl-c1"],[9,10,"pl-c1"],[10,11,"pl-c1"]],[],[[4,56,"pl-s"]],[[0,0,"pl-s"]],[[0,21,"pl-s"]],[[0,39,"pl-s"]],[[0,55,"pl-s"]],[[0,77,"pl-s"]],[[0,33,"pl-s"]],[[0,20,"pl-s"]],[[0,58,"pl-s"]],[[0,0,"pl-s"]],[[0,9,"pl-s"]],[[0,47,"pl-s"]],[[0,44,"pl-s"]],[[0,78,"pl-s"]],[[0,79,"pl-s"]],[[0,70,"pl-s"]],[[0,75,"pl-s"]],[[0,73,"pl-s"]],[[0,75,"pl-s"]],[[0,74,"pl-s"]],[[0,60,"pl-s"]],[[0,75,"pl-s"]],[[0,66,"pl-s"]],[[0,25,"pl-s"]],[[0,78,"pl-s"]],[[0,76,"pl-s"]],[[0,60,"pl-s"]],[[0,70,"pl-s"]],[[0,21,"pl-s"]],[[0,0,"pl-s"]],[[0,12,"pl-s"]],[[0,50,"pl-s"]],[[0,7,"pl-s"]],[[4,6,"pl-k"],[7,17,"pl-en"],[18,22,"pl-s1"],[24,28,"pl-s1"]],[[8,13,"pl-k"],[14,24,"pl-en"]],[[12,44,"pl-s"]],[[12,57,"pl-s"],[29,35,"pl-s1"],[29,30,"pl-kos"],[30,34,"pl-s1"],[34,35,"pl-kos"],[44,56,"pl-s1"],[44,45,"pl-kos"],[45,49,"pl-en"],[50,54,"pl-s1"],[55,56,"pl-kos"]],[],[[4,10,"pl-s1"],[11,12,"pl-c1"],[13,15,"pl-s1"],[16,33,"pl-c1"],[34,40,"pl-s1"]],[[4,10,"pl-s1"],[11,12,"pl-c1"],[13,15,"pl-s1"],[16,20,"pl-c1"],[21,27,"pl-s1"],[29,35,"pl-s1"],[36,41,"pl-c1"]],[[4,19,"pl-s1"],[20,21,"pl-c1"],[22,24,"pl-s1"],[25,42,"pl-c1"],[43,58,"pl-s1"],[60,65,"pl-s1"],[65,66,"pl-c1"],[66,72,"pl-s1"],[73,78,"pl-c1"]],[],[[4,6,"pl-k"],[7,13,"pl-s1"],[14,19,"pl-c1"],[20,21,"pl-c1"],[21,22,"pl-c1"],[24,26,"pl-c1"],[27,28,"pl-c1"]],[[8,16,"pl-s1"],[17,21,"pl-c1"]],[[12,63,"pl-s"]],[[12,59,"pl-s"]],[[12,76,"pl-s"],[59,73,"pl-s1"],[59,60,"pl-kos"],[60,66,"pl-s1"],[67,72,"pl-c1"],[72,73,"pl-kos"]],[[12,78,"pl-s"]],[[12,25,"pl-v"]],[[12,22,"pl-s1"],[22,23,"pl-c1"],[23,24,"pl-c1"]],[],[],[[4,7,"pl-k"],[8,22,"pl-en"]],[[8,19,"pl-s1"],[20,21,"pl-c1"],[22,24,"pl-s1"],[25,29,"pl-c1"],[30,32,"pl-s1"],[33,38,"pl-c1"],[39,45,"pl-s1"],[47,48,"pl-c1"],[48,49,"pl-c1"],[52,58,"pl-s1"],[59,64,"pl-c1"]],[[8,14,"pl-k"],[15,21,"pl-s1"],[22,23,"pl-c1"],[25,28,"pl-c1"],[29,30,"pl-c1"],[31,46,"pl-s1"],[48,49,"pl-c1"]],[[12,27,"pl-s1"],[28,29,"pl-c1"],[30,41,"pl-s1"]],[],[],[[4,10,"pl-s1"],[11,12,"pl-c1"],[13,15,"pl-s1"],[16,28,"pl-c1"],[29,39,"pl-c1"],[40,50,"pl-c1"]],[[8,23,"pl-s1"],[25,39,"pl-s1"],[41,47,"pl-k"],[49,55,"pl-s1"]],[],[],[[4,10,"pl-k"],[11,18,"pl-s1"],[19,49,"pl-c1"]],[[8,14,"pl-s1"],[14,15,"pl-c1"],[15,21,"pl-s1"]],[[8,14,"pl-s1"],[14,15,"pl-c1"],[15,21,"pl-s1"]],[[8,13,"pl-s1"],[13,14,"pl-c1"],[14,19,"pl-s1"]],[[8,13,"pl-s1"],[13,14,"pl-c1"],[14,19,"pl-s1"]],[[8,19,"pl-s1"],[19,20,"pl-c1"],[20,31,"pl-s1"]],[[8,12,"pl-s1"],[12,13,"pl-c1"],[13,17,"pl-s1"]],[],[],[],[[0,77,"pl-en"],[1,9,"pl-s1"],[10,28,"pl-c1"],[29,59,"pl-s1"],[61,63,"pl-s1"],[64,76,"pl-c1"]],[[0,3,"pl-k"],[4,49,"pl-en"]],[[4,10,"pl-s1"]],[[4,10,"pl-s1"]],[[4,9,"pl-s1"],[9,10,"pl-c1"],[10,14,"pl-c1"]],[[4,9,"pl-s1"],[9,10,"pl-c1"],[10,13,"pl-c1"]],[[4,15,"pl-s1"],[15,16,"pl-c1"],[16,21,"pl-c1"]],[[4,19,"pl-s1"],[19,20,"pl-c1"],[20,23,"pl-c1"]],[[4,8,"pl-s1"],[8,9,"pl-c1"],[9,10,"pl-c1"],[10,11,"pl-c1"]],[],[[4,53,"pl-s"]],[[0,0,"pl-s"]],[[0,70,"pl-s"]],[[0,29,"pl-s"]],[[0,40,"pl-s"]],[[0,74,"pl-s"]],[[0,67,"pl-s"]],[[0,73,"pl-s"]],[[0,71,"pl-s"]],[[0,55,"pl-s"]],[[0,0,"pl-s"]],[[0,9,"pl-s"]],[[0,78,"pl-s"]],[[0,79,"pl-s"]],[[0,70,"pl-s"]],[[0,75,"pl-s"]],[[0,73,"pl-s"]],[[0,75,"pl-s"]],[[0,74,"pl-s"]],[[0,60,"pl-s"]],[[0,75,"pl-s"]],[[0,80,"pl-s"]],[[0,78,"pl-s"]],[[0,76,"pl-s"]],[[0,60,"pl-s"]],[[0,70,"pl-s"]],[[0,21,"pl-s"]],[[0,0,"pl-s"]],[[0,12,"pl-s"]],[[0,48,"pl-s"]],[[0,7,"pl-s"]],[[4,6,"pl-s1"],[7,8,"pl-c1"],[9,18,"pl-s1"],[19,26,"pl-c1"]],[[8,38,"pl-s1"]],[[8,13,"pl-s1"],[13,14,"pl-c1"],[14,19,"pl-s1"]],[[8,13,"pl-s1"],[13,14,"pl-c1"],[14,19,"pl-s1"]],[[8,19,"pl-s1"],[19,20,"pl-c1"],[20,31,"pl-s1"]],[[8,23,"pl-s1"],[23,24,"pl-c1"],[24,39,"pl-s1"]],[[8,12,"pl-s1"],[12,13,"pl-c1"],[13,17,"pl-s1"]],[],[[4,10,"pl-k"],[11,36,"pl-en"],[37,39,"pl-s1"],[41,47,"pl-s1"],[49,55,"pl-s1"]],[],[],[[0,14,"pl-en"],[1,13,"pl-en"]],[[0,52,"pl-en"],[4,51,"pl-s"]],[[0,51,"pl-en"],[4,50,"pl-s"]],[[0,1,"pl-en"]],[[0,46,"pl-en"],[1,3,"pl-s1"],[4,16,"pl-c1"],[17,25,"pl-c1"],[26,46,"pl-c1"]],[[0,3,"pl-k"],[4,35,"pl-en"]],[[4,10,"pl-s1"],[12,18,"pl-s1"],[20,31,"pl-s1"],[31,32,"pl-c1"],[32,37,"pl-c1"],[39,43,"pl-s1"],[43,44,"pl-c1"],[44,45,"pl-c1"],[45,46,"pl-c1"],[48,60,"pl-s1"],[60,61,"pl-c1"],[61,65,"pl-c1"]],[],[[4,57,"pl-s"]],[[0,0,"pl-s"]],[[0,21,"pl-s"]],[[0,0,"pl-s"]],[[0,23,"pl-s"]],[[0,51,"pl-s"]],[[0,78,"pl-s"]],[[0,33,"pl-s"]],[[0,20,"pl-s"]],[[0,41,"pl-s"]],[[0,0,"pl-s"]],[[0,28,"pl-s"]],[[0,29,"pl-s"]],[[0,28,"pl-s"]],[[0,29,"pl-s"]],[[0,54,"pl-s"]],[[0,56,"pl-s"]],[[0,54,"pl-s"]],[[0,55,"pl-s"]],[[0,63,"pl-s"]],[[0,42,"pl-s"]],[[0,20,"pl-s"]],[[0,43,"pl-s"]],[[0,44,"pl-s"]],[[0,43,"pl-s"]],[[0,60,"pl-s"]],[[0,0,"pl-s"]],[[0,9,"pl-s"]],[[0,36,"pl-s"]],[[0,37,"pl-s"]],[[0,75,"pl-s"]],[[0,80,"pl-s"]],[[0,70,"pl-s"]],[[0,21,"pl-s"]],[[0,78,"pl-s"]],[[0,74,"pl-s"]],[[0,69,"pl-s"]],[[0,80,"pl-s"]],[[0,23,"pl-s"]],[[0,0,"pl-s"]],[[0,12,"pl-s"]],[[0,51,"pl-s"]],[[0,7,"pl-s"]],[[4,10,"pl-k"],[11,18,"pl-s1"],[19,50,"pl-c1"]],[[8,14,"pl-s1"]],[[8,14,"pl-s1"]],[[8,19,"pl-s1"],[19,20,"pl-c1"],[20,31,"pl-s1"]],[[8,20,"pl-s1"],[20,21,"pl-c1"],[21,33,"pl-s1"]],[[8,12,"pl-s1"],[12,13,"pl-c1"],[13,17,"pl-s1"]],[],[],[],[[0,78,"pl-en"],[1,9,"pl-s1"],[10,28,"pl-c1"],[29,60,"pl-s1"],[62,64,"pl-s1"],[65,77,"pl-c1"]],[[0,3,"pl-k"],[4,50,"pl-en"]],[[4,10,"pl-s1"],[12,18,"pl-s1"],[20,31,"pl-s1"],[31,32,"pl-c1"],[32,37,"pl-c1"],[39,43,"pl-s1"],[43,44,"pl-c1"],[44,45,"pl-c1"],[45,46,"pl-c1"],[48,60,"pl-s1"],[60,61,"pl-c1"],[61,65,"pl-c1"]],[],[[4,53,"pl-s"]],[[0,0,"pl-s"]],[[0,77,"pl-s"]],[[0,29,"pl-s"]],[[0,40,"pl-s"]],[[0,0,"pl-s"]],[[0,75,"pl-s"]],[[0,67,"pl-s"]],[[0,73,"pl-s"]],[[0,72,"pl-s"]],[[0,55,"pl-s"]],[[0,7,"pl-s"]],[[4,6,"pl-s1"],[7,8,"pl-c1"],[9,18,"pl-s1"],[19,26,"pl-c1"]],[[8,39,"pl-s1"]],[[8,19,"pl-s1"],[19,20,"pl-c1"],[20,31,"pl-s1"]],[[8,20,"pl-s1"],[20,21,"pl-c1"],[21,33,"pl-s1"]],[[8,12,"pl-s1"],[12,13,"pl-c1"],[13,17,"pl-s1"]],[],[[4,10,"pl-k"],[11,36,"pl-en"],[37,39,"pl-s1"],[41,47,"pl-s1"],[49,55,"pl-s1"],[57,73,"pl-s1"],[73,74,"pl-c1"],[74,78,"pl-c1"]],[],[],[[0,14,"pl-en"],[1,13,"pl-en"]],[[0,75,"pl-en"],[4,39,"pl-s"],[41,75,"pl-s"]],[[0,1,"pl-en"]],[[0,46,"pl-en"],[1,3,"pl-s1"],[4,16,"pl-c1"],[17,25,"pl-c1"],[26,46,"pl-c1"]],[[0,3,"pl-k"],[4,23,"pl-en"]],[[4,10,"pl-s1"],[12,18,"pl-s1"],[20,31,"pl-s1"],[31,32,"pl-c1"],[32,37,"pl-c1"],[39,54,"pl-s1"],[54,55,"pl-c1"],[55,58,"pl-c1"],[60,64,"pl-s1"],[64,65,"pl-c1"],[65,66,"pl-c1"],[66,67,"pl-c1"]],[],[[4,45,"pl-s"]],[[0,0,"pl-s"]],[[0,21,"pl-s"]],[[0,0,"pl-s"]],[[0,33,"pl-s"]],[[0,41,"pl-s"]],[[0,66,"pl-s"]],[[0,33,"pl-s"]],[[0,20,"pl-s"]],[[0,41,"pl-s"]],[[0,0,"pl-s"]],[[0,9,"pl-s"]],[[0,71,"pl-s"]],[[0,72,"pl-s"]],[[0,75,"pl-s"]],[[0,80,"pl-s"]],[[0,76,"pl-s"]],[[0,53,"pl-s"]],[[0,65,"pl-s"]],[[0,61,"pl-s"]],[[0,72,"pl-s"]],[[0,0,"pl-s"]],[[0,12,"pl-s"]],[[0,76,"pl-s"]],[[0,7,"pl-s"]],[[4,10,"pl-s1"],[11,12,"pl-c1"],[13,15,"pl-s1"],[16,33,"pl-c1"],[34,40,"pl-s1"]],[[4,10,"pl-s1"],[11,12,"pl-c1"],[13,15,"pl-s1"],[16,20,"pl-c1"],[21,27,"pl-s1"],[29,35,"pl-s1"],[36,41,"pl-c1"]],[[4,19,"pl-s1"],[20,21,"pl-c1"],[22,24,"pl-s1"],[25,42,"pl-c1"],[43,58,"pl-s1"],[60,65,"pl-s1"],[65,66,"pl-c1"],[66,72,"pl-s1"],[73,78,"pl-c1"]],[],[[4,7,"pl-k"],[8,22,"pl-en"]],[[8,14,"pl-k"],[15,21,"pl-s1"],[22,23,"pl-c1"],[25,28,"pl-c1"],[29,30,"pl-c1"],[31,46,"pl-s1"],[48,49,"pl-c1"],[50,53,"pl-c1"],[54,55,"pl-c1"],[56,71,"pl-s1"]],[],[[4,10,"pl-s1"],[11,12,"pl-c1"],[13,15,"pl-s1"],[16,28,"pl-c1"],[29,39,"pl-c1"],[40,50,"pl-c1"]],[[8,23,"pl-s1"],[25,39,"pl-s1"],[41,47,"pl-k"],[49,55,"pl-s1"]],[],[],[[4,10,"pl-k"],[11,18,"pl-s1"],[19,23,"pl-c1"]],[[8,15,"pl-s1"],[16,35,"pl-c1"],[36,42,"pl-s1"],[44,50,"pl-s1"],[52,63,"pl-s1"],[63,64,"pl-c1"],[64,75,"pl-s1"]],[[8,12,"pl-s1"],[12,13,"pl-c1"],[13,17,"pl-s1"]],[],[],[],[[0,66,"pl-en"],[1,9,"pl-s1"],[10,28,"pl-c1"],[29,48,"pl-s1"],[50,52,"pl-s1"],[53,65,"pl-c1"]],[[0,3,"pl-k"],[4,38,"pl-en"]],[[4,10,"pl-s1"],[12,18,"pl-s1"],[20,31,"pl-s1"],[31,32,"pl-c1"],[32,37,"pl-c1"],[39,54,"pl-s1"],[54,55,"pl-c1"],[55,58,"pl-c1"],[60,64,"pl-s1"],[64,65,"pl-c1"],[65,66,"pl-c1"],[66,67,"pl-c1"]],[],[[4,53,"pl-s"]],[[0,0,"pl-s"]],[[0,9,"pl-s"]],[[0,47,"pl-s"]],[[0,44,"pl-s"]],[[0,75,"pl-s"]],[[0,80,"pl-s"]],[[0,78,"pl-s"]],[[0,76,"pl-s"]],[[0,60,"pl-s"]],[[0,55,"pl-s"]],[[0,0,"pl-s"]],[[0,12,"pl-s"]],[[0,39,"pl-s"]],[[0,0,"pl-s"]],[[0,74,"pl-s"]],[[0,14,"pl-s"]],[[0,74,"pl-s"]],[[0,0,"pl-s"]],[[0,64,"pl-s"]],[[0,75,"pl-s"]],[[0,26,"pl-s"]],[[0,7,"pl-s"]],[[4,6,"pl-s1"],[7,8,"pl-c1"],[9,18,"pl-s1"],[19,26,"pl-c1"]],[[8,27,"pl-s1"]],[[8,19,"pl-s1"],[19,20,"pl-c1"],[20,31,"pl-s1"]],[[8,23,"pl-s1"],[23,24,"pl-c1"],[24,39,"pl-s1"]],[[8,12,"pl-s1"],[12,13,"pl-c1"],[13,17,"pl-s1"]],[],[[4,10,"pl-k"],[11,36,"pl-en"],[37,39,"pl-s1"],[41,47,"pl-s1"],[49,55,"pl-s1"]],[],[],[[0,14,"pl-en"],[1,13,"pl-en"]],[[0,46,"pl-en"],[4,45,"pl-s"]],[[0,45,"pl-en"],[4,44,"pl-s"]],[[0,1,"pl-en"]],[[0,46,"pl-en"],[1,3,"pl-s1"],[4,16,"pl-c1"],[17,25,"pl-c1"],[26,46,"pl-c1"]],[[0,3,"pl-k"],[4,29,"pl-en"]],[[4,10,"pl-s1"]],[[4,10,"pl-s1"]],[[4,25,"pl-s1"],[25,26,"pl-c1"],[26,31,"pl-c1"]],[[4,9,"pl-s1"],[9,10,"pl-c1"],[10,14,"pl-c1"]],[[4,9,"pl-s1"],[9,10,"pl-c1"],[10,13,"pl-c1"]],[[4,15,"pl-s1"],[15,16,"pl-c1"],[16,21,"pl-c1"]],[[4,19,"pl-s1"],[19,20,"pl-c1"],[20,23,"pl-c1"]],[[4,8,"pl-s1"],[8,9,"pl-c1"],[9,10,"pl-c1"],[10,11,"pl-c1"]],[],[[4,51,"pl-s"]],[[0,0,"pl-s"]],[[0,77,"pl-s"]],[[0,80,"pl-s"]],[[0,71,"pl-s"]],[[0,0,"pl-s"]],[[0,52,"pl-s"]],[[0,46,"pl-s"]],[[0,78,"pl-s"]],[[0,43,"pl-s"]],[[0,0,"pl-s"]],[[0,79,"pl-s"]],[[0,70,"pl-s"]],[[0,0,"pl-s"]],[[0,48,"pl-s"]],[[0,36,"pl-s"]],[[0,54,"pl-s"]],[[0,0,"pl-s"]],[[0,21,"pl-s"]],[[0,0,"pl-s"]],[[0,33,"pl-s"]],[[0,41,"pl-s"]],[[0,72,"pl-s"]],[[0,65,"pl-s"]],[[0,33,"pl-s"]],[[0,20,"pl-s"]],[[0,40,"pl-s"]],[[0,0,"pl-s"]],[[0,9,"pl-s"]],[[0,72,"pl-s"]],[[0,73,"pl-s"]],[[0,79,"pl-s"]],[[0,35,"pl-s"]],[[0,74,"pl-s"]],[[0,80,"pl-s"]],[[0,73,"pl-s"]],[[0,22,"pl-s"]],[[0,75,"pl-s"]],[[0,80,"pl-s"]],[[0,76,"pl-s"]],[[0,75,"pl-s"]],[[0,77,"pl-s"]],[[0,37,"pl-s"]],[[0,74,"pl-s"]],[[0,0,"pl-s"]],[[0,12,"pl-s"]],[[0,45,"pl-s"]],[[0,48,"pl-s"]],[[0,7,"pl-s"]],[[4,10,"pl-s1"],[11,12,"pl-c1"],[13,15,"pl-s1"],[16,33,"pl-c1"],[34,40,"pl-s1"]],[[4,10,"pl-s1"],[11,12,"pl-c1"],[13,15,"pl-s1"],[16,20,"pl-c1"],[21,27,"pl-s1"],[29,35,"pl-s1"],[36,41,"pl-c1"]],[[4,19,"pl-s1"],[20,21,"pl-c1"],[22,24,"pl-s1"],[25,42,"pl-c1"],[43,58,"pl-s1"],[60,65,"pl-s1"],[65,66,"pl-c1"],[66,72,"pl-s1"],[73,78,"pl-c1"]],[],[[4,7,"pl-k"],[8,22,"pl-en"]],[[8,14,"pl-k"],[15,21,"pl-s1"],[22,23,"pl-c1"],[25,28,"pl-c1"],[29,30,"pl-c1"],[31,46,"pl-s1"],[48,49,"pl-c1"],[50,53,"pl-c1"],[54,55,"pl-c1"],[56,71,"pl-s1"]],[],[[4,10,"pl-s1"],[11,12,"pl-c1"],[13,15,"pl-s1"],[16,28,"pl-c1"],[29,39,"pl-c1"],[40,50,"pl-c1"]],[[8,23,"pl-s1"],[25,39,"pl-s1"],[41,47,"pl-k"],[49,55,"pl-s1"]],[],[],[[4,10,"pl-k"],[11,18,"pl-s1"],[19,23,"pl-c1"]],[[8,15,"pl-s1"],[16,41,"pl-c1"]],[[12,18,"pl-s1"],[18,19,"pl-c1"],[19,25,"pl-s1"]],[[12,18,"pl-s1"],[18,19,"pl-c1"],[19,25,"pl-s1"]],[[12,33,"pl-s1"],[33,34,"pl-c1"],[34,55,"pl-s1"]],[[12,17,"pl-s1"],[17,18,"pl-c1"],[18,23,"pl-s1"]],[[12,17,"pl-s1"],[17,18,"pl-c1"],[18,23,"pl-s1"]],[[12,23,"pl-s1"],[23,24,"pl-c1"],[24,35,"pl-s1"]],[],[[8,12,"pl-s1"],[12,13,"pl-c1"],[13,17,"pl-s1"]],[],[],[],[[0,72,"pl-en"],[1,9,"pl-s1"],[10,28,"pl-c1"],[29,54,"pl-s1"],[56,58,"pl-s1"],[59,71,"pl-c1"]],[[0,3,"pl-k"],[4,44,"pl-en"]],[[4,10,"pl-s1"]],[[4,10,"pl-s1"]],[[4,25,"pl-s1"],[25,26,"pl-c1"],[26,31,"pl-c1"]],[[4,9,"pl-s1"],[9,10,"pl-c1"],[10,14,"pl-c1"]],[[4,9,"pl-s1"],[9,10,"pl-c1"],[10,13,"pl-c1"]],[[4,15,"pl-s1"],[15,16,"pl-c1"],[16,21,"pl-c1"]],[[4,19,"pl-s1"],[19,20,"pl-c1"],[20,23,"pl-c1"]],[[4,8,"pl-s1"],[8,9,"pl-c1"],[9,10,"pl-c1"],[10,11,"pl-c1"]],[],[[4,53,"pl-s"]],[[0,0,"pl-s"]],[[0,80,"pl-s"]],[[0,10,"pl-s"]],[[0,76,"pl-s"]],[[0,0,"pl-s"]],[[0,69,"pl-s"]],[[0,75,"pl-s"]],[[0,26,"pl-s"]],[[0,0,"pl-s"]],[[0,9,"pl-s"]],[[0,47,"pl-s"]],[[0,44,"pl-s"]],[[0,79,"pl-s"]],[[0,35,"pl-s"]],[[0,74,"pl-s"]],[[0,58,"pl-s"]],[[0,76,"pl-s"]],[[0,26,"pl-s"]],[[0,73,"pl-s"]],[[0,22,"pl-s"]],[[0,75,"pl-s"]],[[0,80,"pl-s"]],[[0,80,"pl-s"]],[[0,76,"pl-s"]],[[0,60,"pl-s"]],[[0,55,"pl-s"]],[[0,0,"pl-s"]],[[0,12,"pl-s"]],[[0,45,"pl-s"]],[[0,7,"pl-s"]],[[4,6,"pl-s1"],[7,8,"pl-c1"],[9,18,"pl-s1"],[19,26,"pl-c1"]],[[8,33,"pl-s1"]],[[8,29,"pl-s1"],[29,30,"pl-c1"],[30,51,"pl-s1"]],[[8,13,"pl-s1"],[13,14,"pl-c1"],[14,19,"pl-s1"]],[[8,13,"pl-s1"],[13,14,"pl-c1"],[14,19,"pl-s1"]],[[8,19,"pl-s1"],[19,20,"pl-c1"],[20,31,"pl-s1"]],[[8,23,"pl-s1"],[23,24,"pl-c1"],[24,39,"pl-s1"]],[[8,12,"pl-s1"],[12,13,"pl-c1"],[13,17,"pl-s1"]],[],[[4,10,"pl-k"],[11,36,"pl-en"],[37,39,"pl-s1"],[41,47,"pl-s1"],[49,55,"pl-s1"]],[],[],[[0,14,"pl-en"],[1,13,"pl-en"]],[[0,34,"pl-en"],[4,33,"pl-s"]],[[0,48,"pl-en"],[4,47,"pl-s"]],[[0,24,"pl-en"],[4,23,"pl-s"]],[[0,24,"pl-en"],[4,23,"pl-s"]],[[0,33,"pl-en"],[4,32,"pl-s"]],[[0,47,"pl-en"],[4,46,"pl-s"]],[[0,23,"pl-en"],[4,22,"pl-s"]],[[0,23,"pl-en"],[4,22,"pl-s"]],[[0,1,"pl-en"]],[[0,46,"pl-en"],[1,3,"pl-s1"],[4,16,"pl-c1"],[17,25,"pl-c1"],[26,46,"pl-c1"]],[[0,3,"pl-k"],[4,17,"pl-en"],[18,24,"pl-s1"],[26,32,"pl-s1"]],[[4,77,"pl-s"]],[[0,0,"pl-s"]],[[0,42,"pl-s"]],[[0,0,"pl-s"]],[[0,74,"pl-s"]],[[0,0,"pl-s"]],[[0,21,"pl-s"]],[[0,0,"pl-s"]],[[0,72,"pl-s"]],[[0,46,"pl-s"]],[[0,74,"pl-s"]],[[0,33,"pl-s"]],[[0,55,"pl-s"]],[[0,55,"pl-s"]],[[0,30,"pl-s"]],[[0,76,"pl-s"]],[[0,0,"pl-s"]],[[0,9,"pl-s"]],[[0,39,"pl-s"]],[[0,44,"pl-s"]],[[0,0,"pl-s"]],[[0,12,"pl-s"]],[[0,29,"pl-s"]],[[0,0,"pl-s"]],[[0,11,"pl-s"]],[[0,68,"pl-s"]],[[0,7,"pl-s"]],[[4,10,"pl-s1"],[11,12,"pl-c1"],[13,15,"pl-s1"],[16,33,"pl-c1"],[34,40,"pl-s1"]],[[4,10,"pl-s1"],[11,12,"pl-c1"],[13,15,"pl-s1"],[16,20,"pl-c1"],[21,27,"pl-s1"],[29,35,"pl-s1"],[36,41,"pl-c1"]],[[4,10,"pl-s1"],[11,12,"pl-c1"],[13,20,"pl-s1"],[21,25,"pl-c1"],[26,32,"pl-s1"],[34,41,"pl-s1"],[42,49,"pl-c1"],[53,54,"pl-c1"]],[[4,10,"pl-s1"],[11,12,"pl-c1"],[13,20,"pl-s1"],[21,25,"pl-c1"],[26,32,"pl-s1"],[34,41,"pl-s1"],[42,49,"pl-c1"],[53,54,"pl-c1"]],[[4,10,"pl-k"],[11,13,"pl-s1"],[14,24,"pl-c1"],[25,31,"pl-s1"],[32,33,"pl-c1"],[34,36,"pl-s1"],[37,41,"pl-c1"],[42,45,"pl-c1"],[46,52,"pl-s1"],[53,54,"pl-c1"],[55,61,"pl-s1"],[64,68,"pl-s1"],[68,69,"pl-c1"],[69,70,"pl-c1"],[70,71,"pl-c1"]],[],[],[[0,62,"pl-en"],[1,13,"pl-en"],[14,37,"pl-s"],[39,61,"pl-s"]],[[0,46,"pl-en"],[1,3,"pl-s1"],[4,16,"pl-c1"],[17,25,"pl-c1"],[26,46,"pl-c1"]],[[0,3,"pl-k"],[4,11,"pl-en"],[12,18,"pl-s1"],[20,26,"pl-s1"]],[[4,59,"pl-s"]],[[0,0,"pl-s"]],[[0,64,"pl-s"]],[[0,36,"pl-s"]],[[0,0,"pl-s"]],[[0,21,"pl-s"]],[[0,0,"pl-s"]],[[0,53,"pl-s"]],[[0,46,"pl-s"]],[[0,54,"pl-s"]],[[0,33,"pl-s"]],[[0,30,"pl-s"]],[[0,27,"pl-s"]],[[0,77,"pl-s"]],[[0,22,"pl-s"]],[[0,0,"pl-s"]],[[0,9,"pl-s"]],[[0,71,"pl-s"]],[[0,72,"pl-s"]],[[0,0,"pl-s"]],[[0,12,"pl-s"]],[[0,64,"pl-s"]],[[0,0,"pl-s"]],[[0,11,"pl-s"]],[[0,80,"pl-s"]],[[0,7,"pl-s"]],[[4,10,"pl-s1"],[11,12,"pl-c1"],[13,15,"pl-s1"],[16,33,"pl-c1"],[34,40,"pl-s1"]],[[4,10,"pl-s1"],[11,12,"pl-c1"],[13,15,"pl-s1"],[16,20,"pl-c1"],[21,27,"pl-s1"],[29,35,"pl-s1"],[36,41,"pl-c1"]],[[4,10,"pl-k"],[11,18,"pl-s1"],[19,23,"pl-c1"]],[[8,14,"pl-s1"],[15,16,"pl-c1"],[17,23,"pl-s1"],[24,25,"pl-c1"],[26,28,"pl-s1"],[29,33,"pl-c1"],[34,37,"pl-c1"],[38,44,"pl-s1"],[45,46,"pl-c1"],[47,54,"pl-s1"],[55,62,"pl-c1"],[67,71,"pl-s1"],[71,72,"pl-c1"],[72,73,"pl-c1"],[73,74,"pl-c1"]],[],[],[],[[0,14,"pl-en"],[1,13,"pl-en"]],[[0,37,"pl-en"],[4,36,"pl-s"]],[[0,8,"pl-en"],[4,6,"pl-s1"],[6,7,"pl-c1"]],[[0,41,"pl-en"],[8,40,"pl-s"]],[[0,31,"pl-en"],[8,30,"pl-s"]],[[0,40,"pl-en"],[8,39,"pl-s"]],[[0,30,"pl-en"],[8,29,"pl-s"]],[[0,41,"pl-en"],[8,40,"pl-s"]],[[0,6,"pl-en"]],[[0,1,"pl-en"]],[[0,46,"pl-en"],[1,3,"pl-s1"],[4,16,"pl-c1"],[17,25,"pl-c1"],[26,46,"pl-c1"]],[[0,3,"pl-k"],[4,21,"pl-en"],[22,28,"pl-s1"],[30,36,"pl-s1"],[38,42,"pl-s1"],[42,43,"pl-c1"],[43,44,"pl-c1"],[44,45,"pl-c1"]],[[4,69,"pl-s"]],[[0,0,"pl-s"]],[[0,75,"pl-s"]],[[0,71,"pl-s"]],[[0,72,"pl-s"]],[[0,71,"pl-s"]],[[0,67,"pl-s"]],[[0,68,"pl-s"]],[[0,72,"pl-s"]],[[0,16,"pl-s"]],[[0,0,"pl-s"]],[[0,52,"pl-s"]],[[0,0,"pl-s"]],[[0,21,"pl-s"]],[[0,0,"pl-s"]],[[0,47,"pl-s"]],[[0,49,"pl-s"]],[[0,72,"pl-s"]],[[0,20,"pl-s"]],[[0,46,"pl-s"]],[[0,0,"pl-s"]],[[0,9,"pl-s"]],[[0,39,"pl-s"]],[[0,44,"pl-s"]],[[0,55,"pl-s"]],[[0,0,"pl-s"]],[[0,12,"pl-s"]],[[0,33,"pl-s"]],[[0,7,"pl-s"]],[[4,10,"pl-s1"],[11,12,"pl-c1"],[13,15,"pl-s1"],[16,22,"pl-c1"],[23,35,"pl-c1"],[36,42,"pl-s1"],[44,48,"pl-s1"],[48,49,"pl-c1"],[49,53,"pl-s1"]],[[4,10,"pl-s1"],[11,12,"pl-c1"],[13,15,"pl-s1"],[16,22,"pl-c1"],[23,35,"pl-c1"],[36,42,"pl-s1"],[44,48,"pl-s1"],[48,49,"pl-c1"],[49,53,"pl-s1"]],[[4,10,"pl-k"],[11,12,"pl-c1"],[12,14,"pl-s1"],[15,25,"pl-c1"],[26,32,"pl-s1"],[33,34,"pl-c1"],[35,41,"pl-s1"],[43,47,"pl-s1"],[47,48,"pl-c1"],[48,52,"pl-s1"]],[],[],[[0,10,"pl-c"]],[],[[0,3,"pl-s1"],[4,5,"pl-c1"],[6,9,"pl-c1"],[10,11,"pl-c1"],[12,31,"pl-s1"]],[[0,3,"pl-s1"],[4,5,"pl-c1"],[6,9,"pl-c1"],[10,11,"pl-c1"],[12,30,"pl-s1"]],[[0,3,"pl-s1"],[4,5,"pl-c1"],[6,9,"pl-c1"],[10,11,"pl-c1"],[12,31,"pl-s1"]],[[0,4,"pl-s1"],[5,6,"pl-c1"],[7,11,"pl-c1"],[12,13,"pl-c1"],[14,44,"pl-s1"]],[[0,4,"pl-s1"],[5,6,"pl-c1"],[7,11,"pl-c1"],[12,13,"pl-c1"],[14,44,"pl-s1"]],[[0,3,"pl-s1"],[4,5,"pl-c1"],[6,9,"pl-c1"],[10,11,"pl-c1"],[12,39,"pl-s1"],[40,41,"pl-c1"],[42,55,"pl-s1"]],[[0,7,"pl-s1"],[8,9,"pl-c1"],[10,18,"pl-s1"]],[[0,10,"pl-s1"],[11,12,"pl-c1"],[13,18,"pl-s1"]],[],[],[[0,3,"pl-k"],[4,31,"pl-en"],[32,36,"pl-s1"]],[[4,10,"pl-s1"],[11,12,"pl-c1"]],[[8,18,"pl-en"],[19,23,"pl-s1"],[25,48,"pl-v"]],[[8,10,"pl-c1"]],[[12,22,"pl-en"],[23,27,"pl-s1"],[29,48,"pl-v"]],[[12,15,"pl-c1"],[16,20,"pl-s1"],[21,23,"pl-c1"],[24,26,"pl-c1"],[27,51,"pl-s1"]],[],[[8,10,"pl-c1"]],[[12,19,"pl-en"],[20,24,"pl-s1"],[26,36,"pl-s"]],[[12,15,"pl-c1"],[16,20,"pl-s1"],[21,29,"pl-c1"],[30,32,"pl-c1"],[33,59,"pl-s"]],[],[[8,10,"pl-c1"],[12,16,"pl-s1"],[17,19,"pl-c1"],[20,46,"pl-s"]],[],[[4,10,"pl-k"],[11,17,"pl-s1"]],[],[],[[0,39,"pl-en"],[1,13,"pl-en"],[14,38,"pl-s"]],[[0,3,"pl-k"],[4,13,"pl-en"],[14,18,"pl-s1"],[20,37,"pl-s1"],[37,38,"pl-c1"],[38,43,"pl-c1"]],[[4,51,"pl-s"]],[[0,0,"pl-s"]],[[0,9,"pl-s"]],[[0,60,"pl-s"]],[[0,75,"pl-s"]],[[0,40,"pl-s"]],[[0,0,"pl-s"]],[[0,12,"pl-s"]],[[0,38,"pl-s"]],[[0,7,"pl-s"]],[[4,6,"pl-k"],[7,11,"pl-s1"],[12,14,"pl-c1"],[15,19,"pl-c1"]],[[8,14,"pl-k"],[15,19,"pl-c1"]],[[4,6,"pl-k"],[7,10,"pl-c1"],[11,21,"pl-en"],[22,26,"pl-s1"],[28,32,"pl-v"]],[[8,16,"pl-s1"],[17,21,"pl-c1"]],[[12,73,"pl-s"]],[[12,77,"pl-s"]],[[12,70,"pl-s"],[14,26,"pl-s1"],[14,15,"pl-kos"],[15,19,"pl-en"],[20,24,"pl-s1"],[25,26,"pl-kos"]],[],[[4,6,"pl-k"],[7,24,"pl-s1"]],[[8,14,"pl-k"],[15,35,"pl-s1"],[36,58,"pl-c1"],[59,63,"pl-s1"]],[[4,10,"pl-k"],[11,33,"pl-en"],[34,38,"pl-s1"]],[],[],[[0,41,"pl-en"],[1,13,"pl-en"],[14,40,"pl-s"]],[[0,3,"pl-k"],[4,15,"pl-en"],[16,20,"pl-s1"],[22,36,"pl-s1"],[36,37,"pl-c1"],[37,41,"pl-c1"],[43,60,"pl-s1"],[60,61,"pl-c1"],[61,66,"pl-c1"]],[[4,62,"pl-s"]],[[0,0,"pl-s"]],[[0,9,"pl-s"]],[[0,33,"pl-s"]],[[0,77,"pl-s"]],[[0,67,"pl-s"]],[[0,28,"pl-s"]],[[0,75,"pl-s"]],[[0,40,"pl-s"]],[[0,0,"pl-s"]],[[0,12,"pl-s"]],[[0,54,"pl-s"]],[[0,7,"pl-s"]],[[4,6,"pl-k"],[7,24,"pl-s1"]],[[8,14,"pl-k"],[15,35,"pl-s1"],[36,60,"pl-c1"]],[[12,16,"pl-s1"]],[[12,26,"pl-s1"],[26,27,"pl-c1"],[27,34,"pl-en"]],[[12,26,"pl-s1"],[26,27,"pl-c1"],[27,41,"pl-s1"]],[[12,33,"pl-s1"],[33,34,"pl-c1"],[34,49,"pl-s"]],[],[[4,10,"pl-k"],[11,35,"pl-en"]],[[8,12,"pl-s1"]],[[8,22,"pl-s1"],[22,23,"pl-c1"],[23,30,"pl-en"]],[[8,22,"pl-s1"],[22,23,"pl-c1"],[23,37,"pl-s1"]],[[8,29,"pl-s1"],[29,30,"pl-c1"],[30,45,"pl-s"]],[],[],[],[[0,33,"pl-en"],[1,13,"pl-en"],[14,32,"pl-s"]],[[0,3,"pl-k"],[4,7,"pl-en"],[8,18,"pl-s1"]],[[4,71,"pl-s"]],[[0,0,"pl-s"]],[[0,79,"pl-s"]],[[0,0,"pl-s"]],[[0,62,"pl-s"]],[[0,18,"pl-s"]],[[0,22,"pl-s"]],[[0,61,"pl-s"]],[[0,18,"pl-s"]],[[0,53,"pl-s"]],[[0,0,"pl-s"]],[[0,78,"pl-s"]],[[0,77,"pl-s"]],[[0,43,"pl-s"]],[[0,0,"pl-s"]],[[0,62,"pl-s"]],[[0,54,"pl-s"]],[[0,46,"pl-s"]],[[0,18,"pl-s"]],[[0,53,"pl-s"]],[[0,0,"pl-s"]],[[0,9,"pl-s"]],[[0,75,"pl-s"]],[[0,78,"pl-s"]],[[0,37,"pl-s"]],[[0,0,"pl-s"]],[[0,12,"pl-s"]],[[0,63,"pl-s"]],[[0,0,"pl-s"]],[[0,11,"pl-s"]],[[0,58,"pl-s"]],[[0,7,"pl-s"]],[[4,6,"pl-k"],[7,17,"pl-s1"],[18,20,"pl-c1"],[21,25,"pl-c1"]],[[8,14,"pl-k"],[15,19,"pl-c1"]],[[4,6,"pl-k"],[7,17,"pl-en"],[18,28,"pl-s1"],[30,33,"pl-s1"]],[[8,18,"pl-s1"],[19,20,"pl-c1"],[21,24,"pl-en"],[25,35,"pl-s1"]],[[8,25,"pl-s1"],[26,27,"pl-c1"],[28,36,"pl-s"],[37,43,"pl-c1"],[37,40,"pl-c1"],[41,43,"pl-c1"],[44,54,"pl-s1"]],[[8,14,"pl-k"],[15,26,"pl-en"],[27,37,"pl-s1"],[39,56,"pl-s1"],[56,57,"pl-c1"],[57,74,"pl-s1"]],[[4,6,"pl-k"],[7,17,"pl-en"],[18,28,"pl-s1"],[30,34,"pl-s1"]],[[8,14,"pl-k"],[15,26,"pl-en"],[27,37,"pl-s1"]],[[4,6,"pl-k"],[7,15,"pl-en"],[16,26,"pl-s1"]],[[8,14,"pl-k"],[15,25,"pl-s1"]],[[4,9,"pl-k"],[10,20,"pl-en"]],[[8,69,"pl-s"],[56,68,"pl-s1"],[56,57,"pl-kos"],[57,67,"pl-s1"],[67,68,"pl-kos"]],[],[],[],[[0,23,"pl-c1"],[24,25,"pl-c1"]],[[4,6,"pl-s1"],[7,13,"pl-c1"],[14,16,"pl-c1"],[17,23,"pl-c1"],[24,52,"pl-c1"],[54,61,"pl-s"]],[[4,35,"pl-s1"],[37,44,"pl-s"]],[]],"colorizedLines":null,"csv":null,"csvError":null,"dependabotInfo":{"showConfigurationBanner":false,"configFilePath":null,"networkDependabotPath":"/keras-team/tf-keras/network/updates","dismissConfigurationNoticePath":"/settings/dismiss-notice/dependabot_configuration_notice","configurationNoticeDismissed":null},"displayName":"losses.py","displayUrl":"https://github.com/keras-team/tf-keras/blob/v2.18.0/tf_keras/losses.py?raw=true","headerInfo":{"blobSize":"108 KB","deleteTooltip":"You must be signed in to make or propose changes","editTooltip":"You must be signed in to make or propose changes","ghDesktopPath":null,"isGitLfs":false,"onBranch":false,"shortPath":"f347368","siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2Fkeras-team%2Ftf-keras%2Fblob%2Fv2.18.0%2Ftf_keras%2Flosses.py","isCSV":false,"isRichtext":false,"toc":null,"lineInfo":{"truncatedLoc":"2978","truncatedSloc":"2473"},"mode":"file"},"image":false,"isCodeownersFile":null,"isPlain":false,"isValidLegacyIssueTemplate":false,"issueTemplate":null,"discussionTemplate":null,"language":"Python","languageID":303,"large":false,"planSupportInfo":{"repoIsFork":null,"repoOwnedByCurrentUser":null,"requestFullPath":"/keras-team/tf-keras/blob/v2.18.0/tf_keras/losses.py","showFreeOrgGatedFeatureMessage":null,"showPlanSupportBanner":null,"upgradeDataAttributes":null,"upgradePath":null},"publishBannersInfo":{"dismissActionNoticePath":"/settings/dismiss-notice/publish_action_from_dockerfile","releasePath":"/keras-team/tf-keras/releases/new?marketplace=true","showPublishActionBanner":false},"rawBlobUrl":"https://github.com/keras-team/tf-keras/raw/refs/tags/v2.18.0/tf_keras/losses.py","renderImageOrRaw":false,"richText":null,"renderedFileInfo":null,"shortPath":null,"symbolsEnabled":true,"tabSize":8,"topBannersInfo":{"overridingGlobalFundingFile":false,"globalPreferredFundingPath":null,"showInvalidCitationWarning":false,"citationHelpUrl":"https://docs.github.com/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-citation-files","actionsOnboardingTip":null},"truncated":false,"viewable":true,"workflowRedirectUrl":null,"symbols":{"timed_out":false,"not_analyzed":false,"symbols":[{"name":"Loss","kind":"class","ident_start":1475,"ident_end":1479,"extent_start":1469,"extent_end":8883,"fully_qualified_name":"Loss","ident_utf16":{"start":{"line_number":41,"utf16_col":6},"end":{"line_number":41,"utf16_col":10}},"extent_utf16":{"start":{"line_number":41,"utf16_col":0},"end":{"line_number":219,"utf16_col":29}}},{"name":"__init__","kind":"function","ident_start":2376,"ident_end":2384,"extent_start":2372,"extent_end":3517,"fully_qualified_name":"Loss.__init__","ident_utf16":{"start":{"line_number":67,"utf16_col":8},"end":{"line_number":67,"utf16_col":16}},"extent_utf16":{"start":{"line_number":67,"utf16_col":4},"end":{"line_number":89,"utf16_col":30}}},{"name":"_set_name_scope","kind":"function","ident_start":3527,"ident_end":3542,"extent_start":3523,"extent_end":3881,"fully_qualified_name":"Loss._set_name_scope","ident_utf16":{"start":{"line_number":91,"utf16_col":8},"end":{"line_number":91,"utf16_col":23}},"extent_utf16":{"start":{"line_number":91,"utf16_col":4},"end":{"line_number":99,"utf16_col":51}}},{"name":"__call__","kind":"function","ident_start":3891,"ident_end":3899,"extent_start":3887,"extent_end":6721,"fully_qualified_name":"Loss.__call__","ident_utf16":{"start":{"line_number":101,"utf16_col":8},"end":{"line_number":101,"utf16_col":16}},"extent_utf16":{"start":{"line_number":101,"utf16_col":4},"end":{"line_number":162,"utf16_col":13}}},{"name":"from_config","kind":"function","ident_start":6748,"ident_end":6759,"extent_start":6744,"extent_end":7001,"fully_qualified_name":"Loss.from_config","ident_utf16":{"start":{"line_number":165,"utf16_col":8},"end":{"line_number":165,"utf16_col":19}},"extent_utf16":{"start":{"line_number":165,"utf16_col":4},"end":{"line_number":174,"utf16_col":28}}},{"name":"get_config","kind":"function","ident_start":7011,"ident_end":7021,"extent_start":7007,"extent_end":7159,"fully_qualified_name":"Loss.get_config","ident_utf16":{"start":{"line_number":176,"utf16_col":8},"end":{"line_number":176,"utf16_col":18}},"extent_utf16":{"start":{"line_number":176,"utf16_col":4},"end":{"line_number":178,"utf16_col":63}}},{"name":"call","kind":"function","ident_start":7237,"ident_end":7241,"extent_start":7233,"extent_end":7784,"fully_qualified_name":"Loss.call","ident_utf16":{"start":{"line_number":182,"utf16_col":8},"end":{"line_number":182,"utf16_col":12}},"extent_utf16":{"start":{"line_number":182,"utf16_col":4},"end":{"line_number":194,"utf16_col":71}}},{"name":"_get_reduction","kind":"function","ident_start":7794,"ident_end":7808,"extent_start":7790,"extent_end":8883,"fully_qualified_name":"Loss._get_reduction","ident_utf16":{"start":{"line_number":196,"utf16_col":8},"end":{"line_number":196,"utf16_col":22}},"extent_utf16":{"start":{"line_number":196,"utf16_col":4},"end":{"line_number":219,"utf16_col":29}}},{"name":"LossFunctionWrapper","kind":"class","ident_start":8962,"ident_end":8981,"extent_start":8956,"extent_end":11815,"fully_qualified_name":"LossFunctionWrapper","ident_utf16":{"start":{"line_number":223,"utf16_col":6},"end":{"line_number":223,"utf16_col":25}},"extent_utf16":{"start":{"line_number":223,"utf16_col":0},"end":{"line_number":300,"utf16_col":28}}},{"name":"__init__","kind":"function","ident_start":9051,"ident_end":9059,"extent_start":9047,"extent_end":10233,"fully_qualified_name":"LossFunctionWrapper.__init__","ident_utf16":{"start":{"line_number":226,"utf16_col":8},"end":{"line_number":226,"utf16_col":16}},"extent_utf16":{"start":{"line_number":226,"utf16_col":4},"end":{"line_number":249,"utf16_col":32}}},{"name":"call","kind":"function","ident_start":10243,"ident_end":10247,"extent_start":10239,"extent_end":10853,"fully_qualified_name":"LossFunctionWrapper.call","ident_utf16":{"start":{"line_number":251,"utf16_col":8},"end":{"line_number":251,"utf16_col":12}},"extent_utf16":{"start":{"line_number":251,"utf16_col":4},"end":{"line_number":269,"utf16_col":55}}},{"name":"get_config","kind":"function","ident_start":10863,"ident_end":10873,"extent_start":10859,"extent_end":11335,"fully_qualified_name":"LossFunctionWrapper.get_config","ident_utf16":{"start":{"line_number":271,"utf16_col":8},"end":{"line_number":271,"utf16_col":18}},"extent_utf16":{"start":{"line_number":271,"utf16_col":4},"end":{"line_number":284,"utf16_col":69}}},{"name":"from_config","kind":"function","ident_start":11362,"ident_end":11373,"extent_start":11358,"extent_end":11815,"fully_qualified_name":"LossFunctionWrapper.from_config","ident_utf16":{"start":{"line_number":287,"utf16_col":8},"end":{"line_number":287,"utf16_col":19}},"extent_utf16":{"start":{"line_number":287,"utf16_col":4},"end":{"line_number":300,"utf16_col":28}}},{"name":"MeanSquaredError","kind":"class","ident_start":11871,"ident_end":11887,"extent_start":11865,"extent_end":13972,"fully_qualified_name":"MeanSquaredError","ident_utf16":{"start":{"line_number":304,"utf16_col":6},"end":{"line_number":304,"utf16_col":22}},"extent_utf16":{"start":{"line_number":304,"utf16_col":0},"end":{"line_number":360,"utf16_col":76}}},{"name":"__init__","kind":"function","ident_start":12950,"ident_end":12958,"extent_start":12946,"extent_end":13972,"fully_qualified_name":"MeanSquaredError.__init__","ident_utf16":{"start":{"line_number":341,"utf16_col":8},"end":{"line_number":341,"utf16_col":16}},"extent_utf16":{"start":{"line_number":341,"utf16_col":4},"end":{"line_number":360,"utf16_col":76}}},{"name":"MeanAbsoluteError","kind":"class","ident_start":14029,"ident_end":14046,"extent_start":14023,"extent_end":16155,"fully_qualified_name":"MeanAbsoluteError","ident_utf16":{"start":{"line_number":364,"utf16_col":6},"end":{"line_number":364,"utf16_col":23}},"extent_utf16":{"start":{"line_number":364,"utf16_col":0},"end":{"line_number":422,"utf16_col":77}}},{"name":"__init__","kind":"function","ident_start":15112,"ident_end":15120,"extent_start":15108,"extent_end":16155,"fully_qualified_name":"MeanAbsoluteError.__init__","ident_utf16":{"start":{"line_number":401,"utf16_col":8},"end":{"line_number":401,"utf16_col":16}},"extent_utf16":{"start":{"line_number":401,"utf16_col":4},"end":{"line_number":422,"utf16_col":77}}},{"name":"MeanAbsolutePercentageError","kind":"class","ident_start":16222,"ident_end":16249,"extent_start":16216,"extent_end":18610,"fully_qualified_name":"MeanAbsolutePercentageError","ident_utf16":{"start":{"line_number":426,"utf16_col":6},"end":{"line_number":426,"utf16_col":33}},"extent_utf16":{"start":{"line_number":426,"utf16_col":0},"end":{"line_number":492,"utf16_col":9}}},{"name":"__init__","kind":"function","ident_start":17502,"ident_end":17510,"extent_start":17498,"extent_end":18610,"fully_qualified_name":"MeanAbsolutePercentageError.__init__","ident_utf16":{"start":{"line_number":469,"utf16_col":8},"end":{"line_number":469,"utf16_col":16}},"extent_utf16":{"start":{"line_number":469,"utf16_col":4},"end":{"line_number":492,"utf16_col":9}}},{"name":"MeanSquaredLogarithmicError","kind":"class","ident_start":18677,"ident_end":18704,"extent_start":18671,"extent_end":20969,"fully_qualified_name":"MeanSquaredLogarithmicError","ident_utf16":{"start":{"line_number":496,"utf16_col":6},"end":{"line_number":496,"utf16_col":33}},"extent_utf16":{"start":{"line_number":496,"utf16_col":0},"end":{"line_number":557,"utf16_col":9}}},{"name":"__init__","kind":"function","ident_start":19861,"ident_end":19869,"extent_start":19857,"extent_end":20969,"fully_qualified_name":"MeanSquaredLogarithmicError.__init__","ident_utf16":{"start":{"line_number":534,"utf16_col":8},"end":{"line_number":534,"utf16_col":16}},"extent_utf16":{"start":{"line_number":534,"utf16_col":4},"end":{"line_number":557,"utf16_col":9}}},{"name":"BinaryCrossentropy","kind":"class","ident_start":21027,"ident_end":21045,"extent_start":21021,"extent_end":25438,"fully_qualified_name":"BinaryCrossentropy","ident_utf16":{"start":{"line_number":561,"utf16_col":6},"end":{"line_number":561,"utf16_col":24}},"extent_utf16":{"start":{"line_number":561,"utf16_col":0},"end":{"line_number":666,"utf16_col":38}}},{"name":"__init__","kind":"function","ident_start":23425,"ident_end":23433,"extent_start":23421,"extent_end":25438,"fully_qualified_name":"BinaryCrossentropy.__init__","ident_utf16":{"start":{"line_number":624,"utf16_col":8},"end":{"line_number":624,"utf16_col":16}},"extent_utf16":{"start":{"line_number":624,"utf16_col":4},"end":{"line_number":666,"utf16_col":38}}},{"name":"BinaryFocalCrossentropy","kind":"class","ident_start":25501,"ident_end":25524,"extent_start":25495,"extent_end":32585,"fully_qualified_name":"BinaryFocalCrossentropy","ident_utf16":{"start":{"line_number":670,"utf16_col":6},"end":{"line_number":670,"utf16_col":29}},"extent_utf16":{"start":{"line_number":670,"utf16_col":0},"end":{"line_number":840,"utf16_col":69}}},{"name":"__init__","kind":"function","ident_start":31458,"ident_end":31466,"extent_start":31454,"extent_end":32285,"fully_qualified_name":"BinaryFocalCrossentropy.__init__","ident_utf16":{"start":{"line_number":805,"utf16_col":8},"end":{"line_number":805,"utf16_col":16}},"extent_utf16":{"start":{"line_number":805,"utf16_col":4},"end":{"line_number":831,"utf16_col":26}}},{"name":"get_config","kind":"function","ident_start":32295,"ident_end":32305,"extent_start":32291,"extent_end":32585,"fully_qualified_name":"BinaryFocalCrossentropy.get_config","ident_utf16":{"start":{"line_number":833,"utf16_col":8},"end":{"line_number":833,"utf16_col":18}},"extent_utf16":{"start":{"line_number":833,"utf16_col":4},"end":{"line_number":840,"utf16_col":69}}},{"name":"CategoricalCrossentropy","kind":"class","ident_start":32648,"ident_end":32671,"extent_start":32642,"extent_end":36127,"fully_qualified_name":"CategoricalCrossentropy","ident_utf16":{"start":{"line_number":844,"utf16_col":6},"end":{"line_number":844,"utf16_col":29}},"extent_utf16":{"start":{"line_number":844,"utf16_col":0},"end":{"line_number":929,"utf16_col":9}}},{"name":"__init__","kind":"function","ident_start":34256,"ident_end":34264,"extent_start":34252,"extent_end":36127,"fully_qualified_name":"CategoricalCrossentropy.__init__","ident_utf16":{"start":{"line_number":890,"utf16_col":8},"end":{"line_number":890,"utf16_col":16}},"extent_utf16":{"start":{"line_number":890,"utf16_col":4},"end":{"line_number":929,"utf16_col":9}}},{"name":"CategoricalFocalCrossentropy","kind":"class","ident_start":36195,"ident_end":36223,"extent_start":36189,"extent_end":41869,"fully_qualified_name":"CategoricalFocalCrossentropy","ident_utf16":{"start":{"line_number":933,"utf16_col":6},"end":{"line_number":933,"utf16_col":34}},"extent_utf16":{"start":{"line_number":933,"utf16_col":0},"end":{"line_number":1069,"utf16_col":69}}},{"name":"__init__","kind":"function","ident_start":40945,"ident_end":40953,"extent_start":40941,"extent_end":41634,"fully_qualified_name":"CategoricalFocalCrossentropy.__init__","ident_utf16":{"start":{"line_number":1038,"utf16_col":8},"end":{"line_number":1038,"utf16_col":16}},"extent_utf16":{"start":{"line_number":1038,"utf16_col":4},"end":{"line_number":1061,"utf16_col":26}}},{"name":"get_config","kind":"function","ident_start":41644,"ident_end":41654,"extent_start":41640,"extent_end":41869,"fully_qualified_name":"CategoricalFocalCrossentropy.get_config","ident_utf16":{"start":{"line_number":1063,"utf16_col":8},"end":{"line_number":1063,"utf16_col":18}},"extent_utf16":{"start":{"line_number":1063,"utf16_col":4},"end":{"line_number":1069,"utf16_col":69}}},{"name":"SparseCategoricalCrossentropy","kind":"class","ident_start":41938,"ident_end":41967,"extent_start":41932,"extent_end":45537,"fully_qualified_name":"SparseCategoricalCrossentropy","ident_utf16":{"start":{"line_number":1073,"utf16_col":6},"end":{"line_number":1073,"utf16_col":35}},"extent_utf16":{"start":{"line_number":1073,"utf16_col":0},"end":{"line_number":1158,"utf16_col":9}}},{"name":"__init__","kind":"function","ident_start":43740,"ident_end":43748,"extent_start":43736,"extent_end":45537,"fully_qualified_name":"SparseCategoricalCrossentropy.__init__","ident_utf16":{"start":{"line_number":1121,"utf16_col":8},"end":{"line_number":1121,"utf16_col":16}},"extent_utf16":{"start":{"line_number":1121,"utf16_col":4},"end":{"line_number":1158,"utf16_col":9}}},{"name":"CosineSimilarity","kind":"class","ident_start":45593,"ident_end":45609,"extent_start":45587,"extent_end":48676,"fully_qualified_name":"CosineSimilarity","ident_utf16":{"start":{"line_number":1162,"utf16_col":6},"end":{"line_number":1162,"utf16_col":22}},"extent_utf16":{"start":{"line_number":1162,"utf16_col":0},"end":{"line_number":1235,"utf16_col":9}}},{"name":"__init__","kind":"function","ident_start":48437,"ident_end":48445,"extent_start":48433,"extent_end":48676,"fully_qualified_name":"CosineSimilarity.__init__","ident_utf16":{"start":{"line_number":1227,"utf16_col":8},"end":{"line_number":1227,"utf16_col":16}},"extent_utf16":{"start":{"line_number":1227,"utf16_col":4},"end":{"line_number":1235,"utf16_col":9}}},{"name":"Hinge","kind":"class","ident_start":48721,"ident_end":48726,"extent_start":48715,"extent_end":50781,"fully_qualified_name":"Hinge","ident_utf16":{"start":{"line_number":1239,"utf16_col":6},"end":{"line_number":1239,"utf16_col":11}},"extent_utf16":{"start":{"line_number":1239,"utf16_col":0},"end":{"line_number":1295,"utf16_col":63}}},{"name":"__init__","kind":"function","ident_start":49840,"ident_end":49848,"extent_start":49836,"extent_end":50781,"fully_qualified_name":"Hinge.__init__","ident_utf16":{"start":{"line_number":1279,"utf16_col":8},"end":{"line_number":1279,"utf16_col":16}},"extent_utf16":{"start":{"line_number":1279,"utf16_col":4},"end":{"line_number":1295,"utf16_col":63}}},{"name":"SquaredHinge","kind":"class","ident_start":50833,"ident_end":50845,"extent_start":50827,"extent_end":52993,"fully_qualified_name":"SquaredHinge","ident_utf16":{"start":{"line_number":1299,"utf16_col":6},"end":{"line_number":1299,"utf16_col":18}},"extent_utf16":{"start":{"line_number":1299,"utf16_col":0},"end":{"line_number":1357,"utf16_col":71}}},{"name":"__init__","kind":"function","ident_start":52007,"ident_end":52015,"extent_start":52003,"extent_end":52993,"fully_qualified_name":"SquaredHinge.__init__","ident_utf16":{"start":{"line_number":1339,"utf16_col":8},"end":{"line_number":1339,"utf16_col":16}},"extent_utf16":{"start":{"line_number":1339,"utf16_col":4},"end":{"line_number":1357,"utf16_col":71}}},{"name":"CategoricalHinge","kind":"class","ident_start":53049,"ident_end":53065,"extent_start":53043,"extent_end":55187,"fully_qualified_name":"CategoricalHinge","ident_utf16":{"start":{"line_number":1361,"utf16_col":6},"end":{"line_number":1361,"utf16_col":22}},"extent_utf16":{"start":{"line_number":1361,"utf16_col":0},"end":{"line_number":1418,"utf16_col":75}}},{"name":"__init__","kind":"function","ident_start":54169,"ident_end":54177,"extent_start":54165,"extent_end":55187,"fully_qualified_name":"CategoricalHinge.__init__","ident_utf16":{"start":{"line_number":1399,"utf16_col":8},"end":{"line_number":1399,"utf16_col":16}},"extent_utf16":{"start":{"line_number":1399,"utf16_col":4},"end":{"line_number":1418,"utf16_col":75}}},{"name":"Poisson","kind":"class","ident_start":55234,"ident_end":55241,"extent_start":55228,"extent_end":57189,"fully_qualified_name":"Poisson","ident_utf16":{"start":{"line_number":1422,"utf16_col":6},"end":{"line_number":1422,"utf16_col":13}},"extent_utf16":{"start":{"line_number":1422,"utf16_col":0},"end":{"line_number":1475,"utf16_col":65}}},{"name":"__init__","kind":"function","ident_start":56240,"ident_end":56248,"extent_start":56236,"extent_end":57189,"fully_qualified_name":"Poisson.__init__","ident_utf16":{"start":{"line_number":1459,"utf16_col":8},"end":{"line_number":1459,"utf16_col":16}},"extent_utf16":{"start":{"line_number":1459,"utf16_col":4},"end":{"line_number":1475,"utf16_col":65}}},{"name":"LogCosh","kind":"class","ident_start":57236,"ident_end":57243,"extent_start":57230,"extent_end":59274,"fully_qualified_name":"LogCosh","ident_utf16":{"start":{"line_number":1479,"utf16_col":6},"end":{"line_number":1479,"utf16_col":13}},"extent_utf16":{"start":{"line_number":1479,"utf16_col":0},"end":{"line_number":1535,"utf16_col":66}}},{"name":"__init__","kind":"function","ident_start":58308,"ident_end":58316,"extent_start":58304,"extent_end":59274,"fully_qualified_name":"LogCosh.__init__","ident_utf16":{"start":{"line_number":1517,"utf16_col":8},"end":{"line_number":1517,"utf16_col":16}},"extent_utf16":{"start":{"line_number":1517,"utf16_col":4},"end":{"line_number":1535,"utf16_col":66}}},{"name":"KLDivergence","kind":"class","ident_start":59326,"ident_end":59338,"extent_start":59320,"extent_end":61469,"fully_qualified_name":"KLDivergence","ident_utf16":{"start":{"line_number":1539,"utf16_col":6},"end":{"line_number":1539,"utf16_col":18}},"extent_utf16":{"start":{"line_number":1539,"utf16_col":0},"end":{"line_number":1597,"utf16_col":71}}},{"name":"__init__","kind":"function","ident_start":60467,"ident_end":60475,"extent_start":60463,"extent_end":61469,"fully_qualified_name":"KLDivergence.__init__","ident_utf16":{"start":{"line_number":1578,"utf16_col":8},"end":{"line_number":1578,"utf16_col":16}},"extent_utf16":{"start":{"line_number":1578,"utf16_col":4},"end":{"line_number":1597,"utf16_col":71}}},{"name":"Huber","kind":"class","ident_start":61514,"ident_end":61519,"extent_start":61508,"extent_end":63835,"fully_qualified_name":"Huber","ident_utf16":{"start":{"line_number":1601,"utf16_col":6},"end":{"line_number":1601,"utf16_col":11}},"extent_utf16":{"start":{"line_number":1601,"utf16_col":0},"end":{"line_number":1667,"utf16_col":76}}},{"name":"__init__","kind":"function","ident_start":62701,"ident_end":62709,"extent_start":62697,"extent_end":63835,"fully_qualified_name":"Huber.__init__","ident_utf16":{"start":{"line_number":1644,"utf16_col":8},"end":{"line_number":1644,"utf16_col":16}},"extent_utf16":{"start":{"line_number":1644,"utf16_col":4},"end":{"line_number":1667,"utf16_col":76}}},{"name":"mean_squared_error","kind":"function","ident_start":64083,"ident_end":64101,"extent_start":64079,"extent_end":65100,"fully_qualified_name":"mean_squared_error","ident_utf16":{"start":{"line_number":1679,"utf16_col":4},"end":{"line_number":1679,"utf16_col":22}},"extent_utf16":{"start":{"line_number":1679,"utf16_col":0},"end":{"line_number":1705,"utf16_col":76}}},{"name":"_ragged_tensor_apply_loss","kind":"function","ident_start":65107,"ident_end":65132,"extent_start":65103,"extent_end":68218,"fully_qualified_name":"_ragged_tensor_apply_loss","ident_utf16":{"start":{"line_number":1708,"utf16_col":4},"end":{"line_number":1708,"utf16_col":29}},"extent_utf16":{"start":{"line_number":1708,"utf16_col":0},"end":{"line_number":1794,"utf16_col":80}}},{"name":"rt_is_equiv_dense","kind":"function","ident_start":65640,"ident_end":65657,"extent_start":65636,"extent_end":66250,"fully_qualified_name":"rt_is_equiv_dense","ident_utf16":{"start":{"line_number":1723,"utf16_col":8},"end":{"line_number":1723,"utf16_col":25}},"extent_utf16":{"start":{"line_number":1723,"utf16_col":4},"end":{"line_number":1742,"utf16_col":9}}},{"name":"_convert_to_dense","kind":"function","ident_start":66260,"ident_end":66277,"extent_start":66256,"extent_end":66417,"fully_qualified_name":"_convert_to_dense","ident_utf16":{"start":{"line_number":1744,"utf16_col":8},"end":{"line_number":1744,"utf16_col":25}},"extent_utf16":{"start":{"line_number":1744,"utf16_col":4},"end":{"line_number":1748,"utf16_col":9}}},{"name":"_call_loss","kind":"function","ident_start":66427,"ident_end":66437,"extent_start":66423,"extent_end":66922,"fully_qualified_name":"_call_loss","ident_utf16":{"start":{"line_number":1750,"utf16_col":8},"end":{"line_number":1750,"utf16_col":18}},"extent_utf16":{"start":{"line_number":1750,"utf16_col":4},"end":{"line_number":1761,"utf16_col":16}}},{"name":"_wrapper","kind":"function","ident_start":66932,"ident_end":66940,"extent_start":66928,"extent_end":67294,"fully_qualified_name":"_wrapper","ident_utf16":{"start":{"line_number":1763,"utf16_col":8},"end":{"line_number":1763,"utf16_col":16}},"extent_utf16":{"start":{"line_number":1763,"utf16_col":4},"end":{"line_number":1772,"utf16_col":31}}},{"name":"_ragged_tensor_mse","kind":"function","ident_start":68291,"ident_end":68309,"extent_start":68287,"extent_end":68948,"fully_qualified_name":"_ragged_tensor_mse","ident_utf16":{"start":{"line_number":1798,"utf16_col":4},"end":{"line_number":1798,"utf16_col":22}},"extent_utf16":{"start":{"line_number":1798,"utf16_col":0},"end":{"line_number":1812,"utf16_col":72}}},{"name":"mean_absolute_error","kind":"function","ident_start":69198,"ident_end":69217,"extent_start":69194,"extent_end":70076,"fully_qualified_name":"mean_absolute_error","ident_utf16":{"start":{"line_number":1824,"utf16_col":4},"end":{"line_number":1824,"utf16_col":23}},"extent_utf16":{"start":{"line_number":1824,"utf16_col":0},"end":{"line_number":1847,"utf16_col":57}}},{"name":"_ragged_tensor_mae","kind":"function","ident_start":70150,"ident_end":70168,"extent_start":70146,"extent_end":70315,"fully_qualified_name":"_ragged_tensor_mae","ident_utf16":{"start":{"line_number":1851,"utf16_col":4},"end":{"line_number":1851,"utf16_col":22}},"extent_utf16":{"start":{"line_number":1851,"utf16_col":0},"end":{"line_number":1853,"utf16_col":73}}},{"name":"mean_absolute_percentage_error","kind":"function","ident_start":70591,"ident_end":70621,"extent_start":70587,"extent_end":71721,"fully_qualified_name":"mean_absolute_percentage_error","ident_utf16":{"start":{"line_number":1865,"utf16_col":4},"end":{"line_number":1865,"utf16_col":34}},"extent_utf16":{"start":{"line_number":1865,"utf16_col":0},"end":{"line_number":1894,"utf16_col":46}}},{"name":"_ragged_tensor_mape","kind":"function","ident_start":71806,"ident_end":71825,"extent_start":71802,"extent_end":71974,"fully_qualified_name":"_ragged_tensor_mape","ident_utf16":{"start":{"line_number":1898,"utf16_col":4},"end":{"line_number":1898,"utf16_col":23}},"extent_utf16":{"start":{"line_number":1898,"utf16_col":0},"end":{"line_number":1902,"utf16_col":5}}},{"name":"mean_squared_logarithmic_error","kind":"function","ident_start":72250,"ident_end":72280,"extent_start":72246,"extent_end":73534,"fully_qualified_name":"mean_squared_logarithmic_error","ident_utf16":{"start":{"line_number":1914,"utf16_col":4},"end":{"line_number":1914,"utf16_col":34}},"extent_utf16":{"start":{"line_number":1914,"utf16_col":0},"end":{"line_number":1946,"utf16_col":5}}},{"name":"_ragged_tensor_msle","kind":"function","ident_start":73619,"ident_end":73638,"extent_start":73615,"extent_end":73811,"fully_qualified_name":"_ragged_tensor_msle","ident_utf16":{"start":{"line_number":1950,"utf16_col":4},"end":{"line_number":1950,"utf16_col":23}},"extent_utf16":{"start":{"line_number":1950,"utf16_col":0},"end":{"line_number":1954,"utf16_col":5}}},{"name":"_maybe_convert_labels","kind":"function","ident_start":73818,"ident_end":73839,"extent_start":73814,"extent_end":74297,"fully_qualified_name":"_maybe_convert_labels","ident_utf16":{"start":{"line_number":1957,"utf16_col":4},"end":{"line_number":1957,"utf16_col":25}},"extent_utf16":{"start":{"line_number":1957,"utf16_col":0},"end":{"line_number":1970,"utf16_col":25}}},{"name":"_convert_binary_labels","kind":"function","ident_start":74039,"ident_end":74061,"extent_start":74035,"extent_end":74146,"fully_qualified_name":"_convert_binary_labels","ident_utf16":{"start":{"line_number":1963,"utf16_col":8},"end":{"line_number":1963,"utf16_col":30}},"extent_utf16":{"start":{"line_number":1963,"utf16_col":4},"end":{"line_number":1965,"utf16_col":33}}},{"name":"squared_hinge","kind":"function","ident_start":74426,"ident_end":74439,"extent_start":74422,"extent_end":75571,"fully_qualified_name":"squared_hinge","ident_utf16":{"start":{"line_number":1975,"utf16_col":4},"end":{"line_number":1975,"utf16_col":17}},"extent_utf16":{"start":{"line_number":1975,"utf16_col":0},"end":{"line_number":2004,"utf16_col":5}}},{"name":"hinge","kind":"function","ident_start":75684,"ident_end":75689,"extent_start":75680,"extent_end":76753,"fully_qualified_name":"hinge","ident_utf16":{"start":{"line_number":2009,"utf16_col":4},"end":{"line_number":2009,"utf16_col":9}},"extent_utf16":{"start":{"line_number":2009,"utf16_col":0},"end":{"line_number":2036,"utf16_col":72}}},{"name":"categorical_hinge","kind":"function","ident_start":76855,"ident_end":76872,"extent_start":76851,"extent_end":78074,"fully_qualified_name":"categorical_hinge","ident_utf16":{"start":{"line_number":2041,"utf16_col":4},"end":{"line_number":2041,"utf16_col":21}},"extent_utf16":{"start":{"line_number":2041,"utf16_col":0},"end":{"line_number":2071,"utf16_col":44}}},{"name":"huber","kind":"function","ident_start":78171,"ident_end":78176,"extent_start":78167,"extent_end":79250,"fully_qualified_name":"huber","ident_utf16":{"start":{"line_number":2076,"utf16_col":4},"end":{"line_number":2076,"utf16_col":9}},"extent_utf16":{"start":{"line_number":2076,"utf16_col":0},"end":{"line_number":2109,"utf16_col":5}}},{"name":"log_cosh","kind":"function","ident_start":79437,"ident_end":79445,"extent_start":79433,"extent_end":80742,"fully_qualified_name":"log_cosh","ident_utf16":{"start":{"line_number":2119,"utf16_col":4},"end":{"line_number":2119,"utf16_col":12}},"extent_utf16":{"start":{"line_number":2119,"utf16_col":0},"end":{"line_number":2155,"utf16_col":59}}},{"name":"_logcosh","kind":"function","ident_start":80562,"ident_end":80570,"extent_start":80558,"extent_end":80681,"fully_qualified_name":"_logcosh","ident_utf16":{"start":{"line_number":2150,"utf16_col":8},"end":{"line_number":2150,"utf16_col":16}},"extent_utf16":{"start":{"line_number":2150,"utf16_col":4},"end":{"line_number":2153,"utf16_col":9}}},{"name":"categorical_crossentropy","kind":"function","ident_start":80904,"ident_end":80928,"extent_start":80900,"extent_end":83126,"fully_qualified_name":"categorical_crossentropy","ident_utf16":{"start":{"line_number":2163,"utf16_col":4},"end":{"line_number":2163,"utf16_col":28}},"extent_utf16":{"start":{"line_number":2163,"utf16_col":0},"end":{"line_number":2222,"utf16_col":5}}},{"name":"_smooth_labels","kind":"function","ident_start":82711,"ident_end":82725,"extent_start":82707,"extent_end":82900,"fully_qualified_name":"_smooth_labels","ident_utf16":{"start":{"line_number":2210,"utf16_col":8},"end":{"line_number":2210,"utf16_col":22}},"extent_utf16":{"start":{"line_number":2210,"utf16_col":4},"end":{"line_number":2214,"utf16_col":9}}},{"name":"_ragged_tensor_categorical_crossentropy","kind":"function","ident_start":83205,"ident_end":83244,"extent_start":83201,"extent_end":84725,"fully_qualified_name":"_ragged_tensor_categorical_crossentropy","ident_utf16":{"start":{"line_number":2226,"utf16_col":4},"end":{"line_number":2226,"utf16_col":43}},"extent_utf16":{"start":{"line_number":2226,"utf16_col":0},"end":{"line_number":2261,"utf16_col":56}}},{"name":"categorical_focal_crossentropy","kind":"function","ident_start":84899,"ident_end":84929,"extent_start":84895,"extent_end":87908,"fully_qualified_name":"categorical_focal_crossentropy","ident_utf16":{"start":{"line_number":2269,"utf16_col":4},"end":{"line_number":2269,"utf16_col":34}},"extent_utf16":{"start":{"line_number":2269,"utf16_col":0},"end":{"line_number":2347,"utf16_col":5}}},{"name":"_smooth_labels","kind":"function","ident_start":87408,"ident_end":87422,"extent_start":87404,"extent_end":87595,"fully_qualified_name":"_smooth_labels","ident_utf16":{"start":{"line_number":2330,"utf16_col":8},"end":{"line_number":2330,"utf16_col":22}},"extent_utf16":{"start":{"line_number":2330,"utf16_col":4},"end":{"line_number":2334,"utf16_col":9}}},{"name":"_ragged_tensor_categorical_focal_crossentropy","kind":"function","ident_start":87993,"ident_end":88038,"extent_start":87989,"extent_end":90107,"fully_qualified_name":"_ragged_tensor_categorical_focal_crossentropy","ident_utf16":{"start":{"line_number":2351,"utf16_col":4},"end":{"line_number":2351,"utf16_col":49}},"extent_utf16":{"start":{"line_number":2351,"utf16_col":0},"end":{"line_number":2399,"utf16_col":56}}},{"name":"sparse_categorical_crossentropy","kind":"function","ident_start":90283,"ident_end":90314,"extent_start":90279,"extent_end":92298,"fully_qualified_name":"sparse_categorical_crossentropy","ident_utf16":{"start":{"line_number":2407,"utf16_col":4},"end":{"line_number":2407,"utf16_col":35}},"extent_utf16":{"start":{"line_number":2407,"utf16_col":0},"end":{"line_number":2459,"utf16_col":5}}},{"name":"_ragged_tensor_sparse_categorical_crossentropy","kind":"function","ident_start":92384,"ident_end":92430,"extent_start":92380,"extent_end":93302,"fully_qualified_name":"_ragged_tensor_sparse_categorical_crossentropy","ident_utf16":{"start":{"line_number":2463,"utf16_col":4},"end":{"line_number":2463,"utf16_col":50}},"extent_utf16":{"start":{"line_number":2463,"utf16_col":0},"end":{"line_number":2484,"utf16_col":79}}},{"name":"binary_crossentropy","kind":"function","ident_start":93449,"ident_end":93468,"extent_start":93445,"extent_end":95102,"fully_qualified_name":"binary_crossentropy","ident_utf16":{"start":{"line_number":2491,"utf16_col":4},"end":{"line_number":2491,"utf16_col":23}},"extent_utf16":{"start":{"line_number":2491,"utf16_col":0},"end":{"line_number":2533,"utf16_col":5}}},{"name":"_smooth_labels","kind":"function","ident_start":94769,"ident_end":94783,"extent_start":94765,"extent_end":94858,"fully_qualified_name":"_smooth_labels","ident_utf16":{"start":{"line_number":2523,"utf16_col":8},"end":{"line_number":2523,"utf16_col":22}},"extent_utf16":{"start":{"line_number":2523,"utf16_col":4},"end":{"line_number":2524,"utf16_col":71}}},{"name":"_ragged_tensor_binary_crossentropy","kind":"function","ident_start":95176,"ident_end":95210,"extent_start":95172,"extent_end":96480,"fully_qualified_name":"_ragged_tensor_binary_crossentropy","ident_utf16":{"start":{"line_number":2537,"utf16_col":4},"end":{"line_number":2537,"utf16_col":38}},"extent_utf16":{"start":{"line_number":2537,"utf16_col":0},"end":{"line_number":2569,"utf16_col":56}}},{"name":"binary_focal_crossentropy","kind":"function","ident_start":96644,"ident_end":96669,"extent_start":96640,"extent_end":99786,"fully_qualified_name":"binary_focal_crossentropy","ident_utf16":{"start":{"line_number":2577,"utf16_col":4},"end":{"line_number":2577,"utf16_col":29}},"extent_utf16":{"start":{"line_number":2577,"utf16_col":0},"end":{"line_number":2657,"utf16_col":5}}},{"name":"_smooth_labels","kind":"function","ident_start":99279,"ident_end":99293,"extent_start":99275,"extent_end":99368,"fully_qualified_name":"_smooth_labels","ident_utf16":{"start":{"line_number":2640,"utf16_col":8},"end":{"line_number":2640,"utf16_col":22}},"extent_utf16":{"start":{"line_number":2640,"utf16_col":4},"end":{"line_number":2641,"utf16_col":71}}},{"name":"_ragged_tensor_binary_focal_crossentropy","kind":"function","ident_start":99866,"ident_end":99906,"extent_start":99862,"extent_end":101826,"fully_qualified_name":"_ragged_tensor_binary_focal_crossentropy","ident_utf16":{"start":{"line_number":2661,"utf16_col":4},"end":{"line_number":2661,"utf16_col":44}},"extent_utf16":{"start":{"line_number":2661,"utf16_col":0},"end":{"line_number":2711,"utf16_col":56}}},{"name":"kl_divergence","kind":"function","ident_start":102161,"ident_end":102174,"extent_start":102157,"extent_end":103362,"fully_qualified_name":"kl_divergence","ident_utf16":{"start":{"line_number":2725,"utf16_col":4},"end":{"line_number":2725,"utf16_col":17}},"extent_utf16":{"start":{"line_number":2725,"utf16_col":0},"end":{"line_number":2757,"utf16_col":72}}},{"name":"poisson","kind":"function","ident_start":103479,"ident_end":103486,"extent_start":103475,"extent_end":104568,"fully_qualified_name":"poisson","ident_utf16":{"start":{"line_number":2762,"utf16_col":4},"end":{"line_number":2762,"utf16_col":11}},"extent_utf16":{"start":{"line_number":2762,"utf16_col":0},"end":{"line_number":2793,"utf16_col":5}}},{"name":"cosine_similarity","kind":"function","ident_start":104881,"ident_end":104898,"extent_start":104877,"extent_end":106204,"fully_qualified_name":"cosine_similarity","ident_utf16":{"start":{"line_number":2807,"utf16_col":4},"end":{"line_number":2807,"utf16_col":21}},"extent_utf16":{"start":{"line_number":2807,"utf16_col":0},"end":{"line_number":2839,"utf16_col":53}}},{"name":"bce","kind":"constant","ident_start":106219,"ident_end":106222,"extent_start":106219,"extent_end":106250,"fully_qualified_name":"bce","ident_utf16":{"start":{"line_number":2844,"utf16_col":0},"end":{"line_number":2844,"utf16_col":3}},"extent_utf16":{"start":{"line_number":2844,"utf16_col":0},"end":{"line_number":2844,"utf16_col":31}}},{"name":"mse","kind":"constant","ident_start":106251,"ident_end":106254,"extent_start":106251,"extent_end":106281,"fully_qualified_name":"mse","ident_utf16":{"start":{"line_number":2845,"utf16_col":0},"end":{"line_number":2845,"utf16_col":3}},"extent_utf16":{"start":{"line_number":2845,"utf16_col":0},"end":{"line_number":2845,"utf16_col":30}}},{"name":"mae","kind":"constant","ident_start":106282,"ident_end":106285,"extent_start":106282,"extent_end":106313,"fully_qualified_name":"mae","ident_utf16":{"start":{"line_number":2846,"utf16_col":0},"end":{"line_number":2846,"utf16_col":3}},"extent_utf16":{"start":{"line_number":2846,"utf16_col":0},"end":{"line_number":2846,"utf16_col":31}}},{"name":"mape","kind":"constant","ident_start":106314,"ident_end":106318,"extent_start":106314,"extent_end":106358,"fully_qualified_name":"mape","ident_utf16":{"start":{"line_number":2847,"utf16_col":0},"end":{"line_number":2847,"utf16_col":4}},"extent_utf16":{"start":{"line_number":2847,"utf16_col":0},"end":{"line_number":2847,"utf16_col":44}}},{"name":"msle","kind":"constant","ident_start":106359,"ident_end":106363,"extent_start":106359,"extent_end":106403,"fully_qualified_name":"msle","ident_utf16":{"start":{"line_number":2848,"utf16_col":0},"end":{"line_number":2848,"utf16_col":4}},"extent_utf16":{"start":{"line_number":2848,"utf16_col":0},"end":{"line_number":2848,"utf16_col":44}}},{"name":"kld","kind":"constant","ident_start":106404,"ident_end":106407,"extent_start":106404,"extent_end":106459,"fully_qualified_name":"kld","ident_utf16":{"start":{"line_number":2849,"utf16_col":0},"end":{"line_number":2849,"utf16_col":3}},"extent_utf16":{"start":{"line_number":2849,"utf16_col":0},"end":{"line_number":2849,"utf16_col":55}}},{"name":"logcosh","kind":"constant","ident_start":106460,"ident_end":106467,"extent_start":106460,"extent_end":106478,"fully_qualified_name":"logcosh","ident_utf16":{"start":{"line_number":2850,"utf16_col":0},"end":{"line_number":2850,"utf16_col":7}},"extent_utf16":{"start":{"line_number":2850,"utf16_col":0},"end":{"line_number":2850,"utf16_col":18}}},{"name":"huber_loss","kind":"constant","ident_start":106479,"ident_end":106489,"extent_start":106479,"extent_end":106497,"fully_qualified_name":"huber_loss","ident_utf16":{"start":{"line_number":2851,"utf16_col":0},"end":{"line_number":2851,"utf16_col":10}},"extent_utf16":{"start":{"line_number":2851,"utf16_col":0},"end":{"line_number":2851,"utf16_col":18}}},{"name":"is_categorical_crossentropy","kind":"function","ident_start":106504,"ident_end":106531,"extent_start":106500,"extent_end":106921,"fully_qualified_name":"is_categorical_crossentropy","ident_utf16":{"start":{"line_number":2854,"utf16_col":4},"end":{"line_number":2854,"utf16_col":31}},"extent_utf16":{"start":{"line_number":2854,"utf16_col":0},"end":{"line_number":2867,"utf16_col":17}}},{"name":"serialize","kind":"function","ident_start":106968,"ident_end":106977,"extent_start":106964,"extent_end":107774,"fully_qualified_name":"serialize","ident_utf16":{"start":{"line_number":2871,"utf16_col":4},"end":{"line_number":2871,"utf16_col":13}},"extent_utf16":{"start":{"line_number":2871,"utf16_col":0},"end":{"line_number":2892,"utf16_col":39}}},{"name":"deserialize","kind":"function","ident_start":107823,"ident_end":107834,"extent_start":107819,"extent_end":108789,"fully_qualified_name":"deserialize","ident_utf16":{"start":{"line_number":2896,"utf16_col":4},"end":{"line_number":2896,"utf16_col":15}},"extent_utf16":{"start":{"line_number":2896,"utf16_col":0},"end":{"line_number":2922,"utf16_col":5}}},{"name":"get","kind":"function","ident_start":108830,"ident_end":108833,"extent_start":108826,"extent_end":110523,"fully_qualified_name":"get","ident_utf16":{"start":{"line_number":2926,"utf16_col":4},"end":{"line_number":2926,"utf16_col":7}},"extent_utf16":{"start":{"line_number":2926,"utf16_col":0},"end":{"line_number":2971,"utf16_col":5}}},{"name":"LABEL_DTYPES_FOR_LOSSES","kind":"constant","ident_start":110526,"ident_end":110549,"extent_start":110526,"extent_end":110664,"fully_qualified_name":"LABEL_DTYPES_FOR_LOSSES","ident_utf16":{"start":{"line_number":2974,"utf16_col":0},"end":{"line_number":2974,"utf16_col":23}},"extent_utf16":{"start":{"line_number":2974,"utf16_col":0},"end":{"line_number":2977,"utf16_col":1}}}]}},"copilotInfo":null,"copilotAccessAllowed":false,"modelsAccessAllowed":false,"csrf_tokens":{"/keras-team/tf-keras/branches":{"post":"2W3t3xxPQwwqpC8HZC_e3RSYAtEsoYZtgrcAs938tTjyYH15H78BiZ6XmPo_ZEwYHchSA6beAYa4dBoO-LgrFw"},"/repos/preferences":{"post":"A6Il-3q6TBPGcNY0acfCdxMUtCrJYnXSz7iMZukvdSruWz5OYyTR4cQIAfkGjuk9wTDiLMk7u4l-o3pyCGoSgw"}}},"title":"tf-keras/tf_keras/losses.py at v2.18.0 · keras-team/tf-keras","appPayload":{"helpUrl":"https://docs.github.com","findFileWorkerPath":"/assets-cdn/worker/find-file-worker-7d7eb7c71814.js","findInFileWorkerPath":"/assets-cdn/worker/find-in-file-worker-96e76d5fdb2c.js","githubDevUrl":null,"enabled_features":{"code_nav_ui_events":false,"overview_shared_code_dropdown_button":false,"react_blob_overlay":false,"copilot_smell_icebreaker_ux":true,"accessible_code_button":true}}}</script> <div data-target="react-app.reactRoot"><style data-styled="true" data-styled-version="5.3.11">.hOfjFo{padding:0;}/*!sc*/ .oDGAe{max-width:100%;margin-left:auto;margin-right:auto;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;}/*!sc*/ .kowOcT{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex:1 1 100%;-ms-flex:1 1 100%;flex:1 1 100%;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;max-width:100%;}/*!sc*/ .gISSDQ{width:100%;}/*!sc*/ @media screen and (min-width:544px){.gISSDQ{width:100%;}}/*!sc*/ @media screen and (min-width:768px){.gISSDQ{width:auto;}}/*!sc*/ .cEmWSE{display:none;-webkit-order:1;-ms-flex-order:1;order:1;width:100%;margin-left:0;margin-right:0;-webkit-flex-direction:column-reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse;margin-bottom:0;min-width:0;}/*!sc*/ @media screen and (min-width:768px){.cEmWSE{width:auto;margin-top:0 !important;margin-bottom:0 !important;position:-webkit-sticky;position:sticky;top:0px;max-height:100vh !important;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;margin-right:0;height:100vh;}}/*!sc*/ @media print,screen and (max-width:1011px) and (min-width:768px){.cEmWSE{display:none;}}/*!sc*/ .hPvFuC{margin-left:0;margin-right:0;display:none;margin-top:0;}/*!sc*/ @media screen and (min-width:768px){.hPvFuC{margin-left:0 !important;margin-right:0 !important;}}/*!sc*/ .fFSoPl{--pane-min-width:256px;--pane-max-width-diff:511px;--pane-max-width:calc(100vw - var(--pane-max-width-diff));width:100%;padding:0;}/*!sc*/ @media screen and (min-width:544px){}/*!sc*/ @media screen and (min-width:768px){.fFSoPl{width:clamp(var(--pane-min-width),var(--pane-width),var(--pane-max-width));overflow:auto;}}/*!sc*/ @media screen and (min-width:1280px){.fFSoPl{--pane-max-width-diff:959px;}}/*!sc*/ .bTBnTW{height:100%;position:relative;display:none;margin-left:0;}/*!sc*/ .bHLmSv{position:absolute;inset:0 -2px;cursor:col-resize;background-color:transparent;-webkit-transition-delay:0.1s;transition-delay:0.1s;}/*!sc*/ .bHLmSv:hover{background-color:var(--bgColor-neutral-muted,var(--color-neutral-muted,rgba(175,184,193,0.2)));}/*!sc*/ .iKqMNA{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-order:2;-ms-flex-order:2;order:2;-webkit-flex-basis:0;-ms-flex-preferred-size:0;flex-basis:0;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;-webkit-flex-shrink:1;-ms-flex-negative:1;flex-shrink:1;min-width:1px;margin-right:auto;}/*!sc*/ @media print{.iKqMNA{display:-webkit-box !important;display:-webkit-flex !important;display:-ms-flexbox !important;display:flex !important;}}/*!sc*/ .FxAyp{width:100%;max-width:100%;margin-left:auto;margin-right:auto;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;padding:0;}/*!sc*/ .leYMvG{margin-left:auto;margin-right:auto;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;padding-bottom:40px;max-width:100%;margin-top:0;}/*!sc*/ .KMPzq{display:inherit;}/*!sc*/ .hfKjHv{width:100%;}/*!sc*/ .gZWyZE{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:8px;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:100%;}/*!sc*/ .dwYKDk{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:start;-webkit-box-align:start;-ms-flex-align:start;align-items:start;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;gap:8px;}/*!sc*/ .ibcGmb{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:start;-webkit-box-align:start;-ms-flex-align:start;align-items:start;min-width:0;}/*!sc*/ .hKaEJF{display:block;margin-right:8px;}/*!sc*/ @media screen and (min-width:1360px){.hKaEJF{display:block;}}/*!sc*/ .XosP{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;font-size:14px;}/*!sc*/ .bCKfWo[data-size="medium"]{color:var(--fgColor-muted,var(--color-fg-muted,#656d76));padding-left:8px;padding-right:8px;display:none;}/*!sc*/ @media screen and (max-width:768px){.bCKfWo[data-size="medium"]{display:block;}}/*!sc*/ .gUkoLg{-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}/*!sc*/ .dmxRgG[data-size="medium"]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}/*!sc*/ .dmxRgG[data-size="medium"] svg{color:var(--fgColor-muted,var(--color-fg-muted,#656d76));}/*!sc*/ .dmxRgG[data-size="medium"] > span{width:inherit;}/*!sc*/ .bZBlpz{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:100%;}/*!sc*/ .lhTYNA{margin-right:4px;color:var(--fgColor-muted,var(--color-fg-muted,#656d76));}/*!sc*/ .dbrgmi{font-size:14px;min-width:0;max-width:125px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}/*!sc*/ .dHJiml{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding-left:8px;padding-right:8px;min-width:0;}/*!sc*/ .cEytCf{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;font-size:16px;min-width:0;-webkit-flex-shrink:1;-ms-flex-negative:1;flex-shrink:1;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;max-width:100%;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}/*!sc*/ .fzFXnm{max-width:100%;}/*!sc*/ .iMnkmv{max-width:100%;list-style:none;display:inline-block;}/*!sc*/ .ghzDag{display:inline-block;max-width:100%;}/*!sc*/ .kHuKdh{font-weight:600;}/*!sc*/ .kgiVEz{font-weight:400;}/*!sc*/ .jGhzSQ{font-weight:600;display:inline-block;max-width:100%;font-size:16px;}/*!sc*/ .faNtbn{min-height:32px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:start;-webkit-box-align:start;-ms-flex-align:start;align-items:start;}/*!sc*/ .fmQaBv{margin-left:4px;margin-right:4px;}/*!sc*/ .dwNhzn[data-size="medium"][data-no-visuals]{border-top-left-radius:0;border-bottom-left-radius:0;display:none;}/*!sc*/ .fGwBZA[data-size="medium"][data-no-visuals]{color:var(--fgColor-muted,var(--color-fg-muted,#656d76));}/*!sc*/ .dJxjrT{margin-left:16px;margin-right:16px;}/*!sc*/ .eFxKDQ{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}/*!sc*/ .dzCJzi{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:8px;min-width:273px;padding:8px;}/*!sc*/ @media screen and (min-width:544px){.dzCJzi{-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;}}/*!sc*/ .ldRxiI{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;}/*!sc*/ .fVkfyA{width:100%;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;min-width:0;margin-right:0;}/*!sc*/ .gNAmSV{height:40px;padding-left:4px;padding-bottom:16px;}/*!sc*/ .jNEwzY{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}/*!sc*/ .bsDwxw{font-size:12px;-webkit-flex:auto;-ms-flex:auto;flex:auto;padding-right:16px;color:var(--fgColor-muted,var(--color-fg-muted,#656d76));min-width:0;}/*!sc*/ .jdLMhu{top:0px;z-index:4;background:var(--bgColor-default,var(--color-canvas-default));position:-webkit-sticky;position:sticky;}/*!sc*/ .tOISc{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:100%;position:absolute;}/*!sc*/ .hqwSEx{display:none;min-width:0;padding-top:8px;padding-bottom:8px;}/*!sc*/ .bDVoEr{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;overflow:hidden;margin-left:8px;margin-right:8px;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;width:100%;}/*!sc*/ .kYLlPM{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}/*!sc*/ .gYjEmn{margin-left:4px;margin-right:8px;}/*!sc*/ .kGqOLL{text-overflow:ellipsis;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}/*!sc*/ .fHind{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;font-size:14px;min-width:0;-webkit-flex-shrink:1;-ms-flex-negative:1;flex-shrink:1;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;max-width:100%;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}/*!sc*/ .dnZoUW{font-weight:600;display:inline-block;max-width:100%;font-size:14px;}/*!sc*/ .jRZWlf[data-size="small"]{color:var(--fgColor-default,var(--color-fg-default,#1F2328));margin-left:8px;}/*!sc*/ .kTvpNk{padding-left:8px;padding-top:8px;padding-bottom:8px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex:1;-ms-flex:1;flex:1;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;background-color:var(--bgColor-muted,var(--color-canvas-subtle,#f6f8fa));border:1px solid var(--borderColor-default,var(--color-border-default));border-radius:6px 6px 0px 0px;}/*!sc*/ .iNMjfP{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:8px;min-width:0;}/*!sc*/ .fefCSX{display:block;position:relative;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;margin-top:-1px;margin-bottom:-1px;--separator-color:transparent;}/*!sc*/ .fefCSX:not(:last-child){margin-right:1px;}/*!sc*/ .fefCSX:not(:last-child):after{background-color:var(--separator-color);content:"";position:absolute;right:-2px;top:8px;bottom:8px;width:1px;}/*!sc*/ .fefCSX:focus-within:has(:focus-visible){--separator-color:transparent;}/*!sc*/ .fefCSX:first-child{margin-left:-1px;}/*!sc*/ .fefCSX:last-child{margin-right:-1px;}/*!sc*/ .idgUkN{display:block;position:relative;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;margin-top:-1px;margin-bottom:-1px;--separator-color:var(--borderColor-default,var(--color-border-default,#d0d7de));}/*!sc*/ .idgUkN:not(:last-child){margin-right:1px;}/*!sc*/ .idgUkN:not(:last-child):after{background-color:var(--separator-color);content:"";position:absolute;right:-2px;top:8px;bottom:8px;width:1px;}/*!sc*/ .idgUkN:focus-within:has(:focus-visible){--separator-color:transparent;}/*!sc*/ .idgUkN:first-child{margin-left:-1px;}/*!sc*/ .idgUkN:last-child{margin-right:-1px;}/*!sc*/ .kcLCKF{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:8px;margin-right:8px;}/*!sc*/ .kVWtTz{gap:8px;}/*!sc*/ .gWqxTd{padding-left:8px;padding-right:8px;}/*!sc*/ .gWqxTd linkButtonSx:hover:not([disabled]){-webkit-text-decoration:none;text-decoration:none;}/*!sc*/ .gWqxTd linkButtonSx:focus:not([disabled]){-webkit-text-decoration:none;text-decoration:none;}/*!sc*/ .gWqxTd linkButtonSx:active:not([disabled]){-webkit-text-decoration:none;text-decoration:none;}/*!sc*/ .ivobqY[data-size="small"][data-no-visuals]{border-top-left-radius:0;border-bottom-left-radius:0;}/*!sc*/ .heuRGy[data-size="small"][data-no-visuals]{color:var(--fgColor-muted,var(--color-fg-muted,#656d76));position:relative;}/*!sc*/ .ffkqe[data-size="small"][data-no-visuals]{color:var(--fgColor-muted,var(--color-fg-muted,#656d76));}/*!sc*/ .hGyMdv{border:1px solid;border-top:none;border-color:var(--borderColor-default,var(--color-border-default,#d0d7de));border-radius:0px 0px 6px 6px;min-width:273px;}/*!sc*/ .dceWRL{background-color:var(--bgColor-default,var(--color-canvas-default));border:0px;border-width:0;border-radius:0px 0px 6px 6px;padding:0;min-width:0;margin-top:46px;}/*!sc*/ .dGXHv{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex:1;-ms-flex:1;flex:1;padding-top:8px;padding-bottom:8px;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;min-width:0;position:relative;}/*!sc*/ .bpDFns{position:relative;}/*!sc*/ .iJOeCH{-webkit-flex:1;-ms-flex:1;flex:1;position:relative;min-width:0;}/*!sc*/ .jewUnv{tab-size:8;isolation:isolate;position:relative;overflow:auto;max-width:unset;}/*!sc*/ .cJGaMs{margin:1px 8px;position:absolute;z-index:1;}/*!sc*/ .iGLarr{position:absolute;}/*!sc*/ .gkZUDI{-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}/*!sc*/ .cCoXib{position:fixed;top:0;right:0;height:100%;width:15px;-webkit-transition:-webkit-transform 0.3s;-webkit-transition:transform 0.3s;transition:transform 0.3s;z-index:1;}/*!sc*/ .cCoXib:hover{-webkit-transform:scaleX(1.5);-ms-transform:scaleX(1.5);transform:scaleX(1.5);}/*!sc*/ data-styled.g1[id="Box-sc-g0xbh4-0"]{content:"hOfjFo,oDGAe,kowOcT,gISSDQ,cEmWSE,hPvFuC,fFSoPl,bTBnTW,bHLmSv,iKqMNA,FxAyp,leYMvG,KMPzq,hfKjHv,gZWyZE,dwYKDk,ibcGmb,hKaEJF,XosP,bCKfWo,gUkoLg,dmxRgG,bZBlpz,lhTYNA,dbrgmi,dHJiml,cEytCf,fzFXnm,iMnkmv,ghzDag,kHuKdh,kgiVEz,jGhzSQ,faNtbn,fmQaBv,dwNhzn,fGwBZA,dJxjrT,eFxKDQ,dzCJzi,ldRxiI,fVkfyA,gNAmSV,jNEwzY,bsDwxw,jdLMhu,tOISc,hqwSEx,bDVoEr,kYLlPM,gYjEmn,kGqOLL,fHind,dnZoUW,jRZWlf,kTvpNk,iNMjfP,fefCSX,idgUkN,kcLCKF,kVWtTz,gWqxTd,ivobqY,heuRGy,ffkqe,hGyMdv,dceWRL,dGXHv,bpDFns,iJOeCH,jewUnv,cJGaMs,iGLarr,gkZUDI,cCoXib,"}/*!sc*/ .eMMFM{min-width:0;}/*!sc*/ .eMMFM:where([data-size='small']){font-size:var(--text-body-size-small,0.75rem);line-height:var(--text-body-lineHeight-small,1.6666);}/*!sc*/ .eMMFM:where([data-size='medium']){font-size:var(--text-body-size-medium,0.875rem);line-height:var(--text-body-lineHeight-medium,1.4285);}/*!sc*/ .eMMFM:where([data-size='large']){font-size:var(--text-body-size-large,1rem);line-height:var(--text-body-lineHeight-large,1.5);}/*!sc*/ .eMMFM:where([data-weight='light']){font-weight:var(--base-text-weight-light,300);}/*!sc*/ .eMMFM:where([data-weight='normal']){font-weight:var(--base-text-weight-normal,400);}/*!sc*/ .eMMFM:where([data-weight='medium']){font-weight:var(--base-text-weight-medium,500);}/*!sc*/ .eMMFM:where([data-weight='semibold']){font-weight:var(--base-text-weight-semibold,600);}/*!sc*/ .HlHVj{padding-left:4px;padding-right:4px;font-weight:400;color:var(--fgColor-muted,var(--color-fg-muted,#656d76));font-size:16px;}/*!sc*/ .HlHVj:where([data-size='small']){font-size:var(--text-body-size-small,0.75rem);line-height:var(--text-body-lineHeight-small,1.6666);}/*!sc*/ .HlHVj:where([data-size='medium']){font-size:var(--text-body-size-medium,0.875rem);line-height:var(--text-body-lineHeight-medium,1.4285);}/*!sc*/ .HlHVj:where([data-size='large']){font-size:var(--text-body-size-large,1rem);line-height:var(--text-body-lineHeight-large,1.5);}/*!sc*/ .HlHVj:where([data-weight='light']){font-weight:var(--base-text-weight-light,300);}/*!sc*/ .HlHVj:where([data-weight='normal']){font-weight:var(--base-text-weight-normal,400);}/*!sc*/ .HlHVj:where([data-weight='medium']){font-weight:var(--base-text-weight-medium,500);}/*!sc*/ .HlHVj:where([data-weight='semibold']){font-weight:var(--base-text-weight-semibold,600);}/*!sc*/ .lauzFl{padding-left:4px;padding-right:4px;font-weight:400;color:var(--fgColor-muted,var(--color-fg-muted,#656d76));font-size:14px;}/*!sc*/ .lauzFl:where([data-size='small']){font-size:var(--text-body-size-small,0.75rem);line-height:var(--text-body-lineHeight-small,1.6666);}/*!sc*/ .lauzFl:where([data-size='medium']){font-size:var(--text-body-size-medium,0.875rem);line-height:var(--text-body-lineHeight-medium,1.4285);}/*!sc*/ .lauzFl:where([data-size='large']){font-size:var(--text-body-size-large,1rem);line-height:var(--text-body-lineHeight-large,1.5);}/*!sc*/ .lauzFl:where([data-weight='light']){font-weight:var(--base-text-weight-light,300);}/*!sc*/ .lauzFl:where([data-weight='normal']){font-weight:var(--base-text-weight-normal,400);}/*!sc*/ .lauzFl:where([data-weight='medium']){font-weight:var(--base-text-weight-medium,500);}/*!sc*/ .lauzFl:where([data-weight='semibold']){font-weight:var(--base-text-weight-semibold,600);}/*!sc*/ data-styled.g5[id="Text__StyledText-sc-17v1xeu-0"]{content:"eMMFM,HlHVj,lauzFl,"}/*!sc*/ .jkNcAv{border:0;font-size:inherit;font-family:inherit;background-color:transparent;-webkit-appearance:none;color:inherit;width:100%;}/*!sc*/ .jkNcAv:focus{outline:0;}/*!sc*/ data-styled.g13[id="UnstyledTextInput__ToggledUnstyledTextInput-sc-14ypya-0"]{content:"jkNcAv,"}/*!sc*/ .hLzFvi{font-size:14px;line-height:var(--base-size-20);color:var(--fgColor-default,var(--color-fg-default,#1F2328));vertical-align:middle;background-color:var(--bgColor-default,var(--color-canvas-default,#ffffff));border:1px solid var(--control-borderColor-rest,var(--borderColor-default,var(--color-border-default,#d0d7de)));border-radius:6px;outline:none;box-shadow:var(--shadow-inset,var(--color-primer-shadow-inset,inset 0 1px 0 rgba(208,215,222,0.2)));display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:stretch;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;min-height:var(--base-size-32);overflow:hidden;--inner-action-size:var(--base-size-24);}/*!sc*/ .hLzFvi input,.hLzFvi textarea{cursor:text;}/*!sc*/ .hLzFvi select{cursor:pointer;}/*!sc*/ .hLzFvi input::-webkit-input-placeholder,.hLzFvi textarea::-webkit-input-placeholder,.hLzFvi select::-webkit-input-placeholder{color:var(---control-fgColor-placeholder,var(--fgColor-muted,var(--color-fg-muted,#656d76)));}/*!sc*/ .hLzFvi input::-moz-placeholder,.hLzFvi textarea::-moz-placeholder,.hLzFvi select::-moz-placeholder{color:var(---control-fgColor-placeholder,var(--fgColor-muted,var(--color-fg-muted,#656d76)));}/*!sc*/ .hLzFvi input:-ms-input-placeholder,.hLzFvi textarea:-ms-input-placeholder,.hLzFvi select:-ms-input-placeholder{color:var(---control-fgColor-placeholder,var(--fgColor-muted,var(--color-fg-muted,#656d76)));}/*!sc*/ .hLzFvi input::placeholder,.hLzFvi textarea::placeholder,.hLzFvi select::placeholder{color:var(---control-fgColor-placeholder,var(--fgColor-muted,var(--color-fg-muted,#656d76)));}/*!sc*/ .hLzFvi:where([data-trailing-action][data-focused]),.hLzFvi:where(:not([data-trailing-action]):focus-within){border-color:var(--fgColor-accent,var(--color-accent-fg,#0969da));outline:2px solid var(--fgColor-accent,var(--color-accent-fg,#0969da));outline-offset:-1px;}/*!sc*/ .hLzFvi > textarea{padding:var(--base-size-12);}/*!sc*/ .hLzFvi:where([data-contrast]){background-color:var(--bgColor-inset,var(--color-canvas-inset,#f6f8fa));}/*!sc*/ .hLzFvi:where([data-disabled]){color:var(--fgColor-disabled,var(--color-primer-fg-disabled,#8c959f));background-color:var(--control-bgColor-disabled,var(--color-input-disabled-bg,rgba(175,184,193,0.2)));box-shadow:none;border-color:var(--control-borderColor-disabled,var(--borderColor-default,var(--color-border-default,#d0d7de)));}/*!sc*/ .hLzFvi:where([data-disabled]) input,.hLzFvi:where([data-disabled]) textarea,.hLzFvi:where([data-disabled]) select{cursor:not-allowed;}/*!sc*/ .hLzFvi:where([data-monospace]){font-family:var(--fontStack-monospace,SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace);}/*!sc*/ .hLzFvi:where([data-validation='error']){border-color:var(--borderColor-danger-emphasis,var(--color-danger-emphasis,#cf222e));}/*!sc*/ .hLzFvi:where([data-validation='error']):where([data-trailing-action][data-focused]),.hLzFvi:where([data-validation='error']):where(:not([data-trailing-action])):focus-within{border-color:var(--fgColor-accent,var(--color-accent-fg,#0969da));outline:2px solid var(--fgColor-accent,var(--color-accent-fg,#0969da));outline-offset:-1px;}/*!sc*/ .hLzFvi:where([data-validation='success']){border-color:var(--bgColor-success-emphasis,var(--color-success-emphasis,#1f883d));}/*!sc*/ .hLzFvi:where([data-block]){width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-self:stretch;-ms-flex-item-align:stretch;align-self:stretch;}/*!sc*/ @media (min-width:768px){.hLzFvi{font-size:var(--text-body-size-medium);}}/*!sc*/ .hLzFvi:where([data-size='small']){--inner-action-size:var(--base-size-20);min-height:var(--base-size-28);padding-top:3px;padding-right:var(--base-size-8);padding-bottom:3px;padding-left:var(--base-size-8);font-size:var(--text-body-size-small);line-height:var(--base-size-20);}/*!sc*/ .hLzFvi:where([data-size='large']){--inner-action-size:var(--base-size-28);height:var(--base-size-40);padding-top:10px;padding-right:var(--base-size-8);padding-bottom:10px;padding-left:var(--base-size-8);}/*!sc*/ .hLzFvi:where([data-variant='small']){min-height:28px;padding-top:3px;padding-right:var(--base-size-8);padding-bottom:3px;padding-left:var(--base-size-8);font-size:(--text-body-size-small);line-height:var(--base-size-20);}/*!sc*/ .hLzFvi:where([data-variant='large']){padding-top:10px;padding-right:var(--base-size-8);padding-bottom:10px;padding-left:var(--base-size-8);font-size:var(--text-title-size-medium);}/*!sc*/ .hLzFvi{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;min-width:160px;}/*!sc*/ data-styled.g14[id="TextInputWrapper__StyledTextInputBaseWrapper-sc-1mqhpbi-0"]{content:"hLzFvi,"}/*!sc*/ .iHYdQq{background-repeat:no-repeat;background-position:right 8px center;padding-right:0;padding-left:0;}/*!sc*/ .iHYdQq > :not(:last-child){margin-right:8px;}/*!sc*/ .iHYdQq .TextInput-icon,.iHYdQq .TextInput-action{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;color:var(--fgColor-muted,var(--color-fg-muted,#656d76));-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;}/*!sc*/ .iHYdQq > input,.iHYdQq > select{padding-right:0;padding-left:0;}/*!sc*/ .iHYdQq:where([data-leading-visual]){padding-left:var(--base-size-12);}/*!sc*/ .iHYdQq:where([data-trailing-visual]:not([data-trailing-action])){padding-right:var(--base-size-12);}/*!sc*/ .iHYdQq:where(:not([data-leading-visual])) > input,.iHYdQq:where(:not([data-leading-visual])) > select{padding-left:var(--base-size-12);}/*!sc*/ .iHYdQq:where(:not([data-trailing-visual]):not([data-trailing-action])) > input,.iHYdQq:where(:not([data-trailing-visual]):not([data-trailing-action])) > select{padding-right:var(--base-size-12);}/*!sc*/ .iHYdQq{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;min-width:160px;}/*!sc*/ data-styled.g15[id="TextInputWrapper__StyledTextInputWrapper-sc-1mqhpbi-1"]{content:"iHYdQq,"}/*!sc*/ .jOyaRH{display:none;}/*!sc*/ .jOyaRH[popover]{position:absolute;padding:0.5em 0.75em;width:-webkit-max-content;width:-moz-max-content;width:max-content;margin:auto;-webkit-clip:auto;clip:auto;white-space:normal;font:normal normal 11px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";-webkit-font-smoothing:subpixel-antialiased;color:var(--tooltip-fgColor,var(--fgColor-onEmphasis,var(--color-fg-on-emphasis,#ffffff)));text-align:center;word-wrap:break-word;background:var(--tooltip-bgColor,var(--bgColor-emphasis,var(--color-neutral-emphasis-plus,#24292f)));border-radius:6px;border:0;opacity:0;max-width:250px;inset:auto;overflow:visible;}/*!sc*/ .jOyaRH[popover]:popover-open{display:block;}/*!sc*/ .jOyaRH[popover].\:popover-open{display:block;}/*!sc*/ @media (forced-colors:active){.jOyaRH{outline:1px solid transparent;}}/*!sc*/ .jOyaRH::after{position:absolute;display:block;right:0;left:0;height:var(--overlay-offset,0.25rem);content:'';}/*!sc*/ .jOyaRH[data-direction='n']::after,.jOyaRH[data-direction='ne']::after,.jOyaRH[data-direction='nw']::after{top:100%;}/*!sc*/ .jOyaRH[data-direction='s']::after,.jOyaRH[data-direction='se']::after,.jOyaRH[data-direction='sw']::after{bottom:100%;}/*!sc*/ .jOyaRH[data-direction='w']::after{position:absolute;display:block;height:100%;width:8px;content:'';bottom:0;left:100%;}/*!sc*/ .jOyaRH[data-direction='e']::after{position:absolute;display:block;height:100%;width:8px;content:'';bottom:0;right:100%;margin-left:-8px;}/*!sc*/ @-webkit-keyframes tooltip-appear{from{opacity:0;}to{opacity:1;}}/*!sc*/ @keyframes tooltip-appear{from{opacity:0;}to{opacity:1;}}/*!sc*/ .jOyaRH:popover-open,.jOyaRH:popover-open::before{-webkit-animation-name:tooltip-appear;animation-name:tooltip-appear;-webkit-animation-duration:0.1s;animation-duration:0.1s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;-webkit-animation-delay:0s;animation-delay:0s;}/*!sc*/ .jOyaRH.\:popover-open,.jOyaRH.\:popover-open::before{-webkit-animation-name:tooltip-appear;animation-name:tooltip-appear;-webkit-animation-duration:0.1s;animation-duration:0.1s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;-webkit-animation-delay:0s;animation-delay:0s;}/*!sc*/ data-styled.g16[id="Tooltip__StyledTooltip-sc-e45c7z-0"]{content:"jOyaRH,"}/*!sc*/ .hWlpPn{position:relative;display:inline-block;}/*!sc*/ .hWlpPn::after{position:absolute;z-index:1000000;display:none;padding:0.5em 0.75em;font:normal normal 11px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";-webkit-font-smoothing:subpixel-antialiased;color:var(--tooltip-fgColor,var(--fgColor-onEmphasis,var(--color-fg-on-emphasis,#ffffff)));text-align:center;-webkit-text-decoration:none;text-decoration:none;text-shadow:none;text-transform:none;-webkit-letter-spacing:normal;-moz-letter-spacing:normal;-ms-letter-spacing:normal;letter-spacing:normal;word-wrap:break-word;white-space:pre;pointer-events:none;content:attr(aria-label);background:var(--tooltip-bgColor,var(--bgColor-emphasis,var(--color-neutral-emphasis-plus,#24292f)));border-radius:6px;opacity:0;}/*!sc*/ @-webkit-keyframes tooltip-appear{from{opacity:0;}to{opacity:1;}}/*!sc*/ @keyframes tooltip-appear{from{opacity:0;}to{opacity:1;}}/*!sc*/ .hWlpPn:hover::after,.hWlpPn:active::after,.hWlpPn:focus::after,.hWlpPn:focus-within::after{display:inline-block;-webkit-text-decoration:none;text-decoration:none;-webkit-animation-name:tooltip-appear;animation-name:tooltip-appear;-webkit-animation-duration:0.1s;animation-duration:0.1s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;-webkit-animation-delay:0s;animation-delay:0s;}/*!sc*/ .hWlpPn.tooltipped-no-delay:hover::after,.hWlpPn.tooltipped-no-delay:active::after,.hWlpPn.tooltipped-no-delay:focus::after,.hWlpPn.tooltipped-no-delay:focus-within::after{-webkit-animation-delay:0s;animation-delay:0s;}/*!sc*/ .hWlpPn.tooltipped-multiline:hover::after,.hWlpPn.tooltipped-multiline:active::after,.hWlpPn.tooltipped-multiline:focus::after,.hWlpPn.tooltipped-multiline:focus-within::after{display:table-cell;}/*!sc*/ .hWlpPn.tooltipped-s::after,.hWlpPn.tooltipped-se::after,.hWlpPn.tooltipped-sw::after{top:100%;right:50%;margin-top:6px;}/*!sc*/ .hWlpPn.tooltipped-se::after{right:auto;left:50%;margin-left:-16px;}/*!sc*/ .hWlpPn.tooltipped-sw::after{margin-right:-16px;}/*!sc*/ .hWlpPn.tooltipped-n::after,.hWlpPn.tooltipped-ne::after,.hWlpPn.tooltipped-nw::after{right:50%;bottom:100%;margin-bottom:6px;}/*!sc*/ .hWlpPn.tooltipped-ne::after{right:auto;left:50%;margin-left:-16px;}/*!sc*/ .hWlpPn.tooltipped-nw::after{margin-right:-16px;}/*!sc*/ .hWlpPn.tooltipped-s::after,.hWlpPn.tooltipped-n::after{-webkit-transform:translateX(50%);-ms-transform:translateX(50%);transform:translateX(50%);}/*!sc*/ .hWlpPn.tooltipped-w::after{right:100%;bottom:50%;margin-right:6px;-webkit-transform:translateY(50%);-ms-transform:translateY(50%);transform:translateY(50%);}/*!sc*/ .hWlpPn.tooltipped-e::after{bottom:50%;left:100%;margin-left:6px;-webkit-transform:translateY(50%);-ms-transform:translateY(50%);transform:translateY(50%);}/*!sc*/ .hWlpPn.tooltipped-multiline::after{width:-webkit-max-content;width:-moz-max-content;width:max-content;max-width:250px;word-wrap:break-word;white-space:pre-line;border-collapse:separate;}/*!sc*/ .hWlpPn.tooltipped-multiline.tooltipped-s::after,.hWlpPn.tooltipped-multiline.tooltipped-n::after{right:auto;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);}/*!sc*/ .hWlpPn.tooltipped-multiline.tooltipped-w::after,.hWlpPn.tooltipped-multiline.tooltipped-e::after{right:100%;}/*!sc*/ .hWlpPn.tooltipped-align-right-2::after{right:0;margin-right:0;}/*!sc*/ .hWlpPn.tooltipped-align-left-2::after{left:0;margin-left:0;}/*!sc*/ data-styled.g17[id="Tooltip__TooltipBase-sc-17tf59c-0"]{content:"hWlpPn,"}/*!sc*/ .eAtkQz{display:inline-block;overflow:hidden;text-overflow:ellipsis;vertical-align:top;white-space:nowrap;max-width:125px;max-width:100%;}/*!sc*/ data-styled.g19[id="Truncate__StyledTruncate-sc-23o1d2-0"]{content:"eAtkQz,"}/*!sc*/ .dbGjOi{--segmented-control-button-inner-padding:12px;--segmented-control-button-bg-inset:4px;--segmented-control-outer-radius:6px;background-color:transparent;border-color:transparent;border-radius:var(--segmented-control-outer-radius);border-width:0;color:currentColor;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:600;padding:0;height:100%;width:100%;}/*!sc*/ .dbGjOi:focus:not(:disabled){box-shadow:none;outline:2px solid var(--fgColor-accent,var(--color-accent-fg,#0969da));outline-offset:-1px;}/*!sc*/ .dbGjOi:focus:not(:disabled):not(:focus-visible){outline:solid 1px transparent;}/*!sc*/ .dbGjOi:focus-visible:not(:disabled){box-shadow:none;outline:2px solid var(--fgColor-accent,var(--color-accent-fg,#0969da));outline-offset:-1px;}/*!sc*/ .dbGjOi .segmentedControl-content{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:var(--controlKnob-bgColor-rest,var(--color-segmented-control-button-bg,#ffffff));border-color:var(--controlKnob-borderColor-rest,var(--color-segmented-control-button-hover-active-selected-border,#8c959f));border-style:solid;border-width:1px;border-radius:var(--segmented-control-outer-radius);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:100%;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;padding-left:var(--segmented-control-button-inner-padding);padding-right:var(--segmented-control-button-inner-padding);}/*!sc*/ .dbGjOi svg{fill:var(--fgColor-muted,var(--color-fg-muted,#656d76));}/*!sc*/ .dbGjOi:focus:focus-visible:not(:last-child):after{width:0;}/*!sc*/ .dbGjOi .segmentedControl-text:after{content:"Code";display:block;font-weight:600;height:0;overflow:hidden;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;visibility:hidden;}/*!sc*/ @media (pointer:coarse){.dbGjOi:before{content:"";position:absolute;left:0;right:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);top:50%;min-height:44px;}}/*!sc*/ .bHmvop{--segmented-control-button-inner-padding:12px;--segmented-control-button-bg-inset:4px;--segmented-control-outer-radius:6px;background-color:transparent;border-color:transparent;border-radius:var(--segmented-control-outer-radius);border-width:0;color:currentColor;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:400;padding:var(--segmented-control-button-bg-inset);height:100%;width:100%;}/*!sc*/ .bHmvop:focus:not(:disabled){box-shadow:none;outline:2px solid var(--fgColor-accent,var(--color-accent-fg,#0969da));outline-offset:-1px;}/*!sc*/ .bHmvop:focus:not(:disabled):not(:focus-visible){outline:solid 1px transparent;}/*!sc*/ .bHmvop:focus-visible:not(:disabled){box-shadow:none;outline:2px solid var(--fgColor-accent,var(--color-accent-fg,#0969da));outline-offset:-1px;}/*!sc*/ .bHmvop .segmentedControl-content{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:transparent;border-color:transparent;border-style:solid;border-width:1px;border-radius:calc(var(--segmented-control-outer-radius) - var(--segmented-control-button-bg-inset) / 2);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:100%;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;padding-left:calc(var(--segmented-control-button-inner-padding) - var(--segmented-control-button-bg-inset));padding-right:calc(var(--segmented-control-button-inner-padding) - var(--segmented-control-button-bg-inset));}/*!sc*/ .bHmvop svg{fill:var(--fgColor-muted,var(--color-fg-muted,#656d76));}/*!sc*/ .bHmvop:hover .segmentedControl-content{background-color:var(--controlTrack-bgColor-hover,var(--color-segmented-control-button-hover-bg,rgba(175,184,193,0.2)));}/*!sc*/ .bHmvop:active .segmentedControl-content{background-color:var(--controlTrack-bgColor-active,var(--color-segmented-control-button-hover-active-bg,rgba(175,184,193,0.4)));}/*!sc*/ .bHmvop:focus:focus-visible:not(:last-child):after{width:0;}/*!sc*/ .bHmvop .segmentedControl-text:after{content:"Blame";display:block;font-weight:600;height:0;overflow:hidden;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;visibility:hidden;}/*!sc*/ @media (pointer:coarse){.bHmvop:before{content:"";position:absolute;left:0;right:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);top:50%;min-height:44px;}}/*!sc*/ data-styled.g105[id="SegmentedControlButton__SegmentedControlButtonStyled-sc-8lkgxl-0"]{content:"dbGjOi,bHmvop,"}/*!sc*/ .lawgDG{background-color:var(--controlTrack-bgColor-rest,var(--color-segmented-control-bg,#eaeef2));border-radius:6px;border:1px solid;border-color:var(--controlTrack-borderColor-rest,transparent);display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;font-size:14px;height:28px;margin:0;padding:0;}/*!sc*/ data-styled.g107[id="SegmentedControl__SegmentedControlList-sc-1rzig82-0"]{content:"lawgDG,"}/*!sc*/ body[data-page-layout-dragging="true"]{cursor:col-resize;}/*!sc*/ body[data-page-layout-dragging="true"] *{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}/*!sc*/ data-styled.g108[id="sc-global-gbKrvU1"]{content:"sc-global-gbKrvU1,"}/*!sc*/ </style><meta data-hydrostats="publish"/> <!-- --> <!-- --> <button hidden="" data-testid="header-permalink-button" data-hotkey-scope="read-only-cursor-text-area"></button><button hidden=""></button><div><div style="--sticky-pane-height:100vh;--spacing:var(--spacing-none)" class="Box-sc-g0xbh4-0 hOfjFo"><div class="Box-sc-g0xbh4-0 oDGAe"><div class="Box-sc-g0xbh4-0 kowOcT"><div tabindex="0" class="Box-sc-g0xbh4-0 gISSDQ"><div class="Box-sc-g0xbh4-0 cEmWSE"><div class="Box-sc-g0xbh4-0 hPvFuC"></div><div style="--pane-width:320px" class="Box-sc-g0xbh4-0 fFSoPl"></div><div class="Box-sc-g0xbh4-0 bTBnTW"><div role="slider" aria-label="Draggable pane splitter" aria-valuemin="0" aria-valuemax="0" aria-valuenow="0" aria-valuetext="Pane width 0 pixels" tabindex="0" class="Box-sc-g0xbh4-0 bHLmSv"></div></div></div></div><div class="Box-sc-g0xbh4-0 iKqMNA"><div class="Box-sc-g0xbh4-0"></div><div class="Box-sc-g0xbh4-0 FxAyp"><div data-selector="repos-split-pane-content" tabindex="0" class="Box-sc-g0xbh4-0 leYMvG"><div class="Box-sc-g0xbh4-0 KMPzq"><div class="Box-sc-g0xbh4-0 hfKjHv container"><div class="px-3 pt-3 pb-0" id="StickyHeader"><div class="Box-sc-g0xbh4-0 gZWyZE"><div class="Box-sc-g0xbh4-0 dwYKDk"><div class="Box-sc-g0xbh4-0 ibcGmb react-code-view-header-wrap--narrow"><div class="Box-sc-g0xbh4-0 hKaEJF"><h2 class="Box-sc-g0xbh4-0 XosP prc-Heading-Heading-6CmGO"><button style="--button-color:fg.muted" type="button" aria-label="Expand file tree" data-testid="expand-file-tree-button-mobile" class="Box-sc-g0xbh4-0 bCKfWo prc-Button-ButtonBase-c50BI" data-loading="false" data-size="medium" data-variant="invisible" aria-describedby=":Rld9lab:-loading-announcement"><span data-component="buttonContent" class="Box-sc-g0xbh4-0 gUkoLg prc-Button-ButtonContent-HKbr-"><span data-component="leadingVisual" class="prc-Button-Visual-2epfX prc-Button-VisualWrap-Db-eB"><svg aria-hidden="true" focusable="false" class="octicon octicon-arrow-left" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path d="M7.78 12.53a.75.75 0 0 1-1.06 0L2.47 8.28a.75.75 0 0 1 0-1.06l4.25-4.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042L4.81 7h7.44a.75.75 0 0 1 0 1.5H4.81l2.97 2.97a.75.75 0 0 1 0 1.06Z"></path></svg></span><span data-component="text" class="prc-Button-Label-pTQ3x">Files</span></span></button><span role="tooltip" aria-label="Expand file tree" id="expand-button-file-tree-button" class="Tooltip__TooltipBase-sc-17tf59c-0 hWlpPn tooltipped-se"><button data-component="IconButton" type="button" data-testid="expand-file-tree-button" aria-controls="repos-file-tree" class="prc-Button-ButtonBase-c50BI position-relative ExpandFileTreeButton-module__expandButton--gL4is ExpandFileTreeButton-module__filesButtonBreakpoint--WfX9t fgColor-muted prc-Button-IconButton-szpyj" data-loading="false" data-no-visuals="true" data-size="medium" data-variant="invisible" aria-describedby=":R35d9lab:-loading-announcement" aria-labelledby="expand-button-file-tree-button"><svg aria-hidden="true" focusable="false" class="octicon octicon-sidebar-collapse" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path d="M6.823 7.823a.25.25 0 0 1 0 .354l-2.396 2.396A.25.25 0 0 1 4 10.396V5.604a.25.25 0 0 1 .427-.177Z"></path><path d="M1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0 1 14.25 16H1.75A1.75 1.75 0 0 1 0 14.25V1.75C0 .784.784 0 1.75 0ZM1.5 1.75v12.5c0 .138.112.25.25.25H9.5v-13H1.75a.25.25 0 0 0-.25.25ZM11 14.5h3.25a.25.25 0 0 0 .25-.25V1.75a.25.25 0 0 0-.25-.25H11Z"></path></svg></button></span><button hidden="" data-testid="" data-hotkey-scope="read-only-cursor-text-area"></button></h2></div><div class="react-code-view-header-mb--narrow mr-2"><button type="button" aria-haspopup="true" aria-expanded="false" tabindex="0" aria-label="v2.18.0 tag" data-testid="anchor-button" class="Box-sc-g0xbh4-0 dmxRgG prc-Button-ButtonBase-c50BI ref-selector-class" data-loading="false" data-size="medium" data-variant="default" aria-describedby="branch-picker-repos-header-ref-selector-wide-loading-announcement" id="branch-picker-repos-header-ref-selector-wide"><span data-component="buttonContent" class="Box-sc-g0xbh4-0 gUkoLg prc-Button-ButtonContent-HKbr-"><span data-component="text" class="prc-Button-Label-pTQ3x"><div class="Box-sc-g0xbh4-0 bZBlpz"><div class="Box-sc-g0xbh4-0 lhTYNA"><svg aria-hidden="true" focusable="false" class="octicon octicon-tag" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path d="M1 7.775V2.75C1 1.784 1.784 1 2.75 1h5.025c.464 0 .91.184 1.238.513l6.25 6.25a1.75 1.75 0 0 1 0 2.474l-5.026 5.026a1.75 1.75 0 0 1-2.474 0l-6.25-6.25A1.752 1.752 0 0 1 1 7.775Zm1.5 0c0 .066.026.13.073.177l6.25 6.25a.25.25 0 0 0 .354 0l5.025-5.025a.25.25 0 0 0 0-.354l-6.25-6.25a.25.25 0 0 0-.177-.073H2.75a.25.25 0 0 0-.25.25ZM6 5a1 1 0 1 1 0 2 1 1 0 0 1 0-2Z"></path></svg></div><div class="Box-sc-g0xbh4-0 dbrgmi ref-selector-button-text-container"><span class="Text__StyledText-sc-17v1xeu-0 eMMFM"> <!-- -->v2.18.0</span></div></div></span><span data-component="trailingVisual" class="prc-Button-Visual-2epfX prc-Button-VisualWrap-Db-eB"><svg aria-hidden="true" focusable="false" class="octicon octicon-triangle-down" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path d="m4.427 7.427 3.396 3.396a.25.25 0 0 0 .354 0l3.396-3.396A.25.25 0 0 0 11.396 7H4.604a.25.25 0 0 0-.177.427Z"></path></svg></span></span></button><button hidden="" data-hotkey-scope="read-only-cursor-text-area"></button></div><div class="Box-sc-g0xbh4-0 dHJiml react-code-view-header-mb--narrow"><div class="Box-sc-g0xbh4-0 cEytCf"><nav data-testid="breadcrumbs" aria-labelledby="repos-header-breadcrumb-heading" id="repos-header-breadcrumb" class="Box-sc-g0xbh4-0 fzFXnm"><h2 class="sr-only ScreenReaderHeading-module__userSelectNone--vW4Cq prc-Heading-Heading-6CmGO" data-testid="screen-reader-heading" id="repos-header-breadcrumb-heading">Breadcrumbs</h2><ol class="Box-sc-g0xbh4-0 iMnkmv"><li class="Box-sc-g0xbh4-0 ghzDag"><a class="Box-sc-g0xbh4-0 kHuKdh prc-Link-Link-85e08" sx="[object Object]" data-testid="breadcrumbs-repo-link" href="/keras-team/tf-keras/tree/v2.18.0">tf-keras</a></li><li class="Box-sc-g0xbh4-0 ghzDag"><span class="Text__StyledText-sc-17v1xeu-0 HlHVj" aria-hidden="true">/</span><a class="Box-sc-g0xbh4-0 kgiVEz prc-Link-Link-85e08" sx="[object Object]" href="/keras-team/tf-keras/tree/v2.18.0/tf_keras">tf_keras</a></li></ol></nav><div data-testid="breadcrumbs-filename" class="Box-sc-g0xbh4-0 ghzDag"><span class="Text__StyledText-sc-17v1xeu-0 HlHVj" aria-hidden="true">/</span><h1 class="Box-sc-g0xbh4-0 jGhzSQ prc-Heading-Heading-6CmGO" tabindex="-1" id="file-name-id">losses.py</h1></div><button data-component="IconButton" type="button" class="prc-Button-ButtonBase-c50BI ml-2 prc-Button-IconButton-szpyj" data-loading="false" data-no-visuals="true" data-size="small" data-variant="invisible" aria-describedby=":Rftd9lab:-loading-announcement" aria-labelledby=":R1td9lab:"><svg aria-hidden="true" focusable="false" class="octicon octicon-copy" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z"></path><path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z"></path></svg></button><span class="Tooltip__StyledTooltip-sc-e45c7z-0 jOyaRH CopyToClipboardButton-module__tooltip--Dq1IB" data-direction="nw" aria-label="Copy path" aria-hidden="true" id=":R1td9lab:">Copy path</span></div></div></div><div class="react-code-view-header-element--wide"><div class="Box-sc-g0xbh4-0 faNtbn"><div class="d-flex gap-2"> <div><div class="Box-sc-g0xbh4-0 fmQaBv"><span class="TextInputWrapper__StyledTextInputBaseWrapper-sc-1mqhpbi-0 hLzFvi TextInputWrapper__StyledTextInputWrapper-sc-1mqhpbi-1 iHYdQq TextInput-wrapper" data-leading-visual="true" data-trailing-visual="true" aria-busy="false"><span class="TextInput-icon" id=":R5j6d9lab:" aria-hidden="true"><svg aria-hidden="true" focusable="false" class="octicon octicon-search" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path d="M10.68 11.74a6 6 0 0 1-7.922-8.982 6 6 0 0 1 8.982 7.922l3.04 3.04a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215ZM11.5 7a4.499 4.499 0 1 0-8.997 0A4.499 4.499 0 0 0 11.5 7Z"></path></svg></span><input type="text" aria-label="Go to file" role="combobox" aria-controls="file-results-list" aria-expanded="false" aria-haspopup="dialog" autoCorrect="off" spellcheck="false" placeholder="Go to file" aria-describedby=":R5j6d9lab: :R5j6d9labH1:" data-component="input" class="UnstyledTextInput__ToggledUnstyledTextInput-sc-14ypya-0 jkNcAv" value=""/><span class="TextInput-icon" id=":R5j6d9labH1:" aria-hidden="true"></span></span></div><button hidden="" data-testid="" data-hotkey-scope="read-only-cursor-text-area"></button><button hidden=""></button></div><button hidden="" data-testid="" data-hotkey-scope="read-only-cursor-text-area"></button><button hidden=""></button><button hidden="" data-testid="" data-hotkey-scope="read-only-cursor-text-area"></button><button hidden=""></button><button type="button" class="Box-sc-g0xbh4-0 dwNhzn prc-Button-ButtonBase-c50BI" data-loading="false" data-no-visuals="true" data-size="medium" data-variant="default" aria-describedby=":R2l6d9lab:-loading-announcement"><span data-component="buttonContent" class="Box-sc-g0xbh4-0 gUkoLg prc-Button-ButtonContent-HKbr-"><span data-component="text" class="prc-Button-Label-pTQ3x">Blame</span></span></button><button hidden="" data-testid="" data-hotkey-scope="read-only-cursor-text-area"></button><button data-component="IconButton" type="button" aria-label="More file actions" title="More file actions" data-testid="more-file-actions-button-nav-menu-wide" aria-haspopup="true" aria-expanded="false" tabindex="0" class="Box-sc-g0xbh4-0 fGwBZA prc-Button-ButtonBase-c50BI js-blob-dropdown-click prc-Button-IconButton-szpyj" data-loading="false" data-no-visuals="true" data-size="medium" data-variant="default" aria-describedby=":R156d9lab:-loading-announcement" id=":R156d9lab:"><svg aria-hidden="true" focusable="false" class="octicon octicon-kebab-horizontal" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path d="M8 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM1.5 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm13 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"></path></svg></button> </div></div></div><div class="react-code-view-header-element--narrow"><div class="Box-sc-g0xbh4-0 faNtbn"><div class="d-flex gap-2"> <button hidden="" data-testid="" data-hotkey-scope="read-only-cursor-text-area"></button><button hidden=""></button><button hidden="" data-testid="" data-hotkey-scope="read-only-cursor-text-area"></button><button hidden=""></button><button type="button" class="Box-sc-g0xbh4-0 dwNhzn prc-Button-ButtonBase-c50BI" data-loading="false" data-no-visuals="true" data-size="medium" data-variant="default" aria-describedby=":R2l7d9lab:-loading-announcement"><span data-component="buttonContent" class="Box-sc-g0xbh4-0 gUkoLg prc-Button-ButtonContent-HKbr-"><span data-component="text" class="prc-Button-Label-pTQ3x">Blame</span></span></button><button hidden="" data-testid="" data-hotkey-scope="read-only-cursor-text-area"></button><button data-component="IconButton" type="button" aria-label="More file actions" title="More file actions" data-testid="more-file-actions-button-nav-menu-narrow" aria-haspopup="true" aria-expanded="false" tabindex="0" class="Box-sc-g0xbh4-0 fGwBZA prc-Button-ButtonBase-c50BI js-blob-dropdown-click prc-Button-IconButton-szpyj" data-loading="false" data-no-visuals="true" data-size="medium" data-variant="default" aria-describedby=":R157d9lab:-loading-announcement" id=":R157d9lab:"><svg aria-hidden="true" focusable="false" class="octicon octicon-kebab-horizontal" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path d="M8 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM1.5 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm13 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"></path></svg></button> </div></div></div></div></div></div></div></div><div class="Box-sc-g0xbh4-0 dJxjrT react-code-view-bottom-padding"> <div class="Box-sc-g0xbh4-0 eFxKDQ"></div> <!-- --> <!-- --> </div><div class="Box-sc-g0xbh4-0 dJxjrT"> <!-- --> <!-- --> <button hidden="" data-testid="" data-hotkey-scope="read-only-cursor-text-area"></button><button hidden=""></button><div class="d-flex flex-column border rounded-2 mb-3 pl-1"><div class="Box-sc-g0xbh4-0 dzCJzi"><h2 class="sr-only ScreenReaderHeading-module__userSelectNone--vW4Cq prc-Heading-Heading-6CmGO" data-testid="screen-reader-heading">Latest commit</h2><div style="width:120px" class="Skeleton Skeleton--text" data-testid="loading"> </div><div class="d-flex flex-shrink-0 gap-2"><div data-testid="latest-commit-details" class="d-none d-sm-flex flex-items-center"></div><div class="d-flex gap-2"><h2 class="sr-only ScreenReaderHeading-module__userSelectNone--vW4Cq prc-Heading-Heading-6CmGO" data-testid="screen-reader-heading">History</h2><a href="/keras-team/tf-keras/commits/v2.18.0/tf_keras/losses.py" class="prc-Button-ButtonBase-c50BI d-none d-lg-flex LinkButton-module__code-view-link-button--xvCGA flex-items-center fgColor-default" data-loading="false" data-size="small" data-variant="invisible" aria-describedby=":R5dlal9lab:-loading-announcement"><span data-component="buttonContent" data-align="center" class="prc-Button-ButtonContent-HKbr-"><span data-component="leadingVisual" class="prc-Button-Visual-2epfX prc-Button-VisualWrap-Db-eB"><svg aria-hidden="true" focusable="false" class="octicon octicon-history" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path d="m.427 1.927 1.215 1.215a8.002 8.002 0 1 1-1.6 5.685.75.75 0 1 1 1.493-.154 6.5 6.5 0 1 0 1.18-4.458l1.358 1.358A.25.25 0 0 1 3.896 6H.25A.25.25 0 0 1 0 5.75V2.104a.25.25 0 0 1 .427-.177ZM7.75 4a.75.75 0 0 1 .75.75v2.992l2.028.812a.75.75 0 0 1-.557 1.392l-2.5-1A.751.751 0 0 1 7 8.25v-3.5A.75.75 0 0 1 7.75 4Z"></path></svg></span><span data-component="text" class="prc-Button-Label-pTQ3x"><span class="fgColor-default">History</span></span></span></a><div class="d-sm-none"></div><div class="d-flex d-lg-none"><span role="tooltip" aria-label="History" id="history-icon-button-tooltip" class="Tooltip__TooltipBase-sc-17tf59c-0 hWlpPn tooltipped-n"><a href="/keras-team/tf-keras/commits/v2.18.0/tf_keras/losses.py" class="prc-Button-ButtonBase-c50BI LinkButton-module__code-view-link-button--xvCGA flex-items-center fgColor-default" data-loading="false" data-size="small" data-variant="invisible" aria-describedby=":Rpdlal9lab:-loading-announcement history-icon-button-tooltip"><span data-component="buttonContent" data-align="center" class="prc-Button-ButtonContent-HKbr-"><span data-component="leadingVisual" class="prc-Button-Visual-2epfX prc-Button-VisualWrap-Db-eB"><svg aria-hidden="true" focusable="false" class="octicon octicon-history" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path d="m.427 1.927 1.215 1.215a8.002 8.002 0 1 1-1.6 5.685.75.75 0 1 1 1.493-.154 6.5 6.5 0 1 0 1.18-4.458l1.358 1.358A.25.25 0 0 1 3.896 6H.25A.25.25 0 0 1 0 5.75V2.104a.25.25 0 0 1 .427-.177ZM7.75 4a.75.75 0 0 1 .75.75v2.992l2.028.812a.75.75 0 0 1-.557 1.392l-2.5-1A.751.751 0 0 1 7 8.25v-3.5A.75.75 0 0 1 7.75 4Z"></path></svg></span></span></a></span></div></div></div></div></div><div class="Box-sc-g0xbh4-0 ldRxiI"><div class="Box-sc-g0xbh4-0 fVkfyA container"><div class="Box-sc-g0xbh4-0 gNAmSV react-code-size-details-banner"><div class="Box-sc-g0xbh4-0 jNEwzY react-code-size-details-banner"><div class="Box-sc-g0xbh4-0 bsDwxw text-mono"><div title="108 KB" data-testid="blob-size" class="Truncate__StyledTruncate-sc-23o1d2-0 eAtkQz"><span>2978 lines (2473 loc) · 108 KB</span></div></div></div></div><div class="Box-sc-g0xbh4-0 jdLMhu react-blob-view-header-sticky" id="repos-sticky-header"><div class="Box-sc-g0xbh4-0 tOISc"><div class="react-blob-sticky-header"><div class="Box-sc-g0xbh4-0 hqwSEx"><div class="Box-sc-g0xbh4-0 bDVoEr"><div class="Box-sc-g0xbh4-0 kYLlPM"><div class="Box-sc-g0xbh4-0 gYjEmn"><button type="button" aria-haspopup="true" aria-expanded="false" tabindex="0" aria-label="v2.18.0 tag" data-testid="anchor-button" class="Box-sc-g0xbh4-0 dmxRgG prc-Button-ButtonBase-c50BI ref-selector-class" data-loading="false" data-size="medium" data-variant="default" aria-describedby="branch-picker-repos-header-ref-selector-loading-announcement" id="branch-picker-repos-header-ref-selector"><span data-component="buttonContent" class="Box-sc-g0xbh4-0 gUkoLg prc-Button-ButtonContent-HKbr-"><span data-component="text" class="prc-Button-Label-pTQ3x"><div class="Box-sc-g0xbh4-0 bZBlpz"><div class="Box-sc-g0xbh4-0 lhTYNA"><svg aria-hidden="true" focusable="false" class="octicon octicon-tag" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path d="M1 7.775V2.75C1 1.784 1.784 1 2.75 1h5.025c.464 0 .91.184 1.238.513l6.25 6.25a1.75 1.75 0 0 1 0 2.474l-5.026 5.026a1.75 1.75 0 0 1-2.474 0l-6.25-6.25A1.752 1.752 0 0 1 1 7.775Zm1.5 0c0 .066.026.13.073.177l6.25 6.25a.25.25 0 0 0 .354 0l5.025-5.025a.25.25 0 0 0 0-.354l-6.25-6.25a.25.25 0 0 0-.177-.073H2.75a.25.25 0 0 0-.25.25ZM6 5a1 1 0 1 1 0 2 1 1 0 0 1 0-2Z"></path></svg></div><div class="Box-sc-g0xbh4-0 dbrgmi ref-selector-button-text-container"><span class="Text__StyledText-sc-17v1xeu-0 eMMFM"> <!-- -->v2.18.0</span></div></div></span><span data-component="trailingVisual" class="prc-Button-Visual-2epfX prc-Button-VisualWrap-Db-eB"><svg aria-hidden="true" focusable="false" class="octicon octicon-triangle-down" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path d="m4.427 7.427 3.396 3.396a.25.25 0 0 0 .354 0l3.396-3.396A.25.25 0 0 0 11.396 7H4.604a.25.25 0 0 0-.177.427Z"></path></svg></span></span></button><button hidden="" data-hotkey-scope="read-only-cursor-text-area"></button></div><div class="Box-sc-g0xbh4-0 kGqOLL"><div class="Box-sc-g0xbh4-0 fHind"><nav data-testid="breadcrumbs" aria-labelledby="sticky-breadcrumb-heading" id="sticky-breadcrumb" class="Box-sc-g0xbh4-0 fzFXnm"><h2 class="sr-only ScreenReaderHeading-module__userSelectNone--vW4Cq prc-Heading-Heading-6CmGO" data-testid="screen-reader-heading" id="sticky-breadcrumb-heading">Breadcrumbs</h2><ol class="Box-sc-g0xbh4-0 iMnkmv"><li class="Box-sc-g0xbh4-0 ghzDag"><a class="Box-sc-g0xbh4-0 kHuKdh prc-Link-Link-85e08" sx="[object Object]" data-testid="breadcrumbs-repo-link" href="/keras-team/tf-keras/tree/v2.18.0">tf-keras</a></li><li class="Box-sc-g0xbh4-0 ghzDag"><span class="Text__StyledText-sc-17v1xeu-0 lauzFl" aria-hidden="true">/</span><a class="Box-sc-g0xbh4-0 kgiVEz prc-Link-Link-85e08" sx="[object Object]" href="/keras-team/tf-keras/tree/v2.18.0/tf_keras">tf_keras</a></li></ol></nav><div data-testid="breadcrumbs-filename" class="Box-sc-g0xbh4-0 ghzDag"><span class="Text__StyledText-sc-17v1xeu-0 lauzFl" aria-hidden="true">/</span><h1 class="Box-sc-g0xbh4-0 dnZoUW prc-Heading-Heading-6CmGO" tabindex="-1" id="sticky-file-name-id">losses.py</h1></div></div></div></div><button style="--button-color:fg.default" type="button" class="Box-sc-g0xbh4-0 jRZWlf prc-Button-ButtonBase-c50BI" data-loading="false" data-size="small" data-variant="invisible" aria-describedby=":Riptal9lab:-loading-announcement"><span data-component="buttonContent" class="Box-sc-g0xbh4-0 gUkoLg prc-Button-ButtonContent-HKbr-"><span data-component="leadingVisual" class="prc-Button-Visual-2epfX prc-Button-VisualWrap-Db-eB"><svg aria-hidden="true" focusable="false" class="octicon octicon-arrow-up" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path d="M3.47 7.78a.75.75 0 0 1 0-1.06l4.25-4.25a.75.75 0 0 1 1.06 0l4.25 4.25a.751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018L9 4.81v7.44a.75.75 0 0 1-1.5 0V4.81L4.53 7.78a.75.75 0 0 1-1.06 0Z"></path></svg></span><span data-component="text" class="prc-Button-Label-pTQ3x">Top</span></span></button></div></div></div><div class="Box-sc-g0xbh4-0 kTvpNk"><h2 class="sr-only ScreenReaderHeading-module__userSelectNone--vW4Cq prc-Heading-Heading-6CmGO" data-testid="screen-reader-heading">File metadata and controls</h2><div class="Box-sc-g0xbh4-0 iNMjfP"><ul aria-label="File view" class="SegmentedControl__SegmentedControlList-sc-1rzig82-0 lawgDG" data-size="small"><li class="Box-sc-g0xbh4-0 fefCSX" data-selected="true"><button aria-current="true" class="SegmentedControlButton__SegmentedControlButtonStyled-sc-8lkgxl-0 dbGjOi" type="button"><span class="segmentedControl-content"><div class="Box-sc-g0xbh4-0 segmentedControl-text" data-text="Code">Code</div></span></button></li><li class="Box-sc-g0xbh4-0 idgUkN"><button aria-current="false" class="SegmentedControlButton__SegmentedControlButtonStyled-sc-8lkgxl-0 bHmvop" type="button"><span class="segmentedControl-content"><div class="Box-sc-g0xbh4-0 segmentedControl-text" data-text="Blame">Blame</div></span></button></li></ul><button hidden="" data-testid="" data-hotkey-scope="read-only-cursor-text-area"></button><button hidden="" data-testid="" data-hotkey-scope="read-only-cursor-text-area"></button><div class="Box-sc-g0xbh4-0 jNEwzY react-code-size-details-in-header"><div class="Box-sc-g0xbh4-0 bsDwxw text-mono"><div title="108 KB" data-testid="blob-size" class="Truncate__StyledTruncate-sc-23o1d2-0 eAtkQz"><span>2978 lines (2473 loc) · 108 KB</span></div></div></div></div><div class="Box-sc-g0xbh4-0 kcLCKF"><div class="Box-sc-g0xbh4-0 kVWtTz react-blob-header-edit-and-raw-actions"><div class="Box-sc-g0xbh4-0 prc-ButtonGroup-ButtonGroup-vcMeG"><div><a href="https://github.com/keras-team/tf-keras/raw/refs/tags/v2.18.0/tf_keras/losses.py" data-testid="raw-button" class="Box-sc-g0xbh4-0 gWqxTd prc-Button-ButtonBase-c50BI" data-loading="false" data-no-visuals="true" data-size="small" data-variant="default" aria-describedby=":R5csptal9lab:-loading-announcement"><span data-component="buttonContent" class="Box-sc-g0xbh4-0 gUkoLg prc-Button-ButtonContent-HKbr-"><span data-component="text" class="prc-Button-Label-pTQ3x">Raw</span></span></a></div><div><button data-component="IconButton" type="button" aria-label="Copy raw content" data-testid="copy-raw-button" class="prc-Button-ButtonBase-c50BI prc-Button-IconButton-szpyj" data-loading="false" data-no-visuals="true" data-size="small" data-variant="default" aria-describedby=":Rpcsptal9lab:-loading-announcement"><svg aria-hidden="true" focusable="false" class="octicon octicon-copy" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z"></path><path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z"></path></svg></button></div><div><span role="tooltip" aria-label="Download raw file" id=":Rdcsptal9lab:" class="Tooltip__TooltipBase-sc-17tf59c-0 hWlpPn tooltipped-n"><button data-component="IconButton" type="button" aria-label="Download raw content" data-testid="download-raw-button" class="Box-sc-g0xbh4-0 ivobqY prc-Button-ButtonBase-c50BI prc-Button-IconButton-szpyj" data-loading="false" data-no-visuals="true" data-size="small" data-variant="default" aria-describedby=":Rtcsptal9lab:-loading-announcement"><svg aria-hidden="true" focusable="false" class="octicon octicon-download" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path d="M2.75 14A1.75 1.75 0 0 1 1 12.25v-2.5a.75.75 0 0 1 1.5 0v2.5c0 .138.112.25.25.25h10.5a.25.25 0 0 0 .25-.25v-2.5a.75.75 0 0 1 1.5 0v2.5A1.75 1.75 0 0 1 13.25 14Z"></path><path d="M7.25 7.689V2a.75.75 0 0 1 1.5 0v5.689l1.97-1.969a.749.749 0 1 1 1.06 1.06l-3.25 3.25a.749.749 0 0 1-1.06 0L4.22 6.78a.749.749 0 1 1 1.06-1.06l1.97 1.969Z"></path></svg></button></span></div></div><button hidden="" data-testid="raw-button-shortcut" data-hotkey-scope="read-only-cursor-text-area"></button><button hidden="" data-testid="copy-raw-button-shortcut" data-hotkey-scope="read-only-cursor-text-area"></button><button hidden="" data-testid="download-raw-button-shortcut" data-hotkey-scope="read-only-cursor-text-area"></button></div><span role="tooltip" aria-label="Open symbols panel" id=":R5sptal9lab:" class="Tooltip__TooltipBase-sc-17tf59c-0 hWlpPn tooltipped-nw"><button data-component="IconButton" type="button" aria-label="Symbols" aria-pressed="false" aria-expanded="false" aria-controls="symbols-pane" data-testid="symbols-button" class="Box-sc-g0xbh4-0 heuRGy prc-Button-ButtonBase-c50BI prc-Button-IconButton-szpyj" data-loading="false" data-no-visuals="true" data-size="small" data-variant="invisible" aria-describedby="symbols-button-loading-announcement" id="symbols-button"><svg aria-hidden="true" focusable="false" class="octicon octicon-code-square" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path d="M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0 1 14.25 16H1.75A1.75 1.75 0 0 1 0 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25V1.75a.25.25 0 0 0-.25-.25Zm7.47 3.97a.75.75 0 0 1 1.06 0l2 2a.75.75 0 0 1 0 1.06l-2 2a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L10.69 8 9.22 6.53a.75.75 0 0 1 0-1.06ZM6.78 6.53 5.31 8l1.47 1.47a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215l-2-2a.75.75 0 0 1 0-1.06l2-2a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Z"></path></svg></button></span><div class="react-blob-header-edit-and-raw-actions-combined"><button data-component="IconButton" type="button" aria-label="Edit and raw actions" title="More file actions" data-testid="more-file-actions-button" aria-haspopup="true" aria-expanded="false" tabindex="0" class="Box-sc-g0xbh4-0 ffkqe prc-Button-ButtonBase-c50BI js-blob-dropdown-click prc-Button-IconButton-szpyj" data-loading="false" data-no-visuals="true" data-size="small" data-variant="invisible" aria-describedby=":Rnsptal9lab:-loading-announcement" id=":Rnsptal9lab:"><svg aria-hidden="true" focusable="false" class="octicon octicon-kebab-horizontal" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path d="M8 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM1.5 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm13 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"></path></svg></button></div></div></div></div><div></div></div><div class="Box-sc-g0xbh4-0 hGyMdv"><section aria-labelledby="file-name-id-wide file-name-id-mobile" class="Box-sc-g0xbh4-0 dceWRL"><div class="Box-sc-g0xbh4-0 dGXHv"><div id="highlighted-line-menu-positioner" class="position-relative"><div id="copilot-button-positioner" class="Box-sc-g0xbh4-0 bpDFns"><div class="Box-sc-g0xbh4-0 iJOeCH"><div class="Box-sc-g0xbh4-0 jewUnv react-code-file-contents" role="presentation" aria-hidden="true" data-tab-size="8" data-paste-markdown-skip="true" data-hpc="true"><div class="react-line-numbers" style="pointer-events:auto"><div data-line-number="1" class="react-line-number react-code-text" style="padding-right:16px">1</div><div data-line-number="2" class="react-line-number react-code-text" style="padding-right:16px">2</div><div data-line-number="3" class="react-line-number react-code-text" style="padding-right:16px">3</div><div data-line-number="4" class="react-line-number react-code-text" style="padding-right:16px">4</div><div data-line-number="5" class="react-line-number react-code-text" style="padding-right:16px">5</div><div data-line-number="6" class="react-line-number react-code-text" style="padding-right:16px">6</div><div data-line-number="7" class="react-line-number react-code-text" style="padding-right:16px">7</div><div data-line-number="8" class="react-line-number react-code-text" style="padding-right:16px">8</div><div data-line-number="9" class="react-line-number react-code-text" style="padding-right:16px">9</div><div data-line-number="10" class="react-line-number react-code-text" style="padding-right:16px">10</div><div data-line-number="11" class="react-line-number react-code-text" style="padding-right:16px">11</div><div data-line-number="12" class="react-line-number react-code-text" style="padding-right:16px">12</div><div data-line-number="13" class="react-line-number react-code-text" style="padding-right:16px">13</div><div data-line-number="14" class="react-line-number react-code-text" style="padding-right:16px">14</div><div data-line-number="15" class="react-line-number react-code-text" style="padding-right:16px">15</div><div data-line-number="16" class="react-line-number react-code-text" style="padding-right:16px">16</div><div data-line-number="17" class="react-line-number react-code-text" style="padding-right:16px">17</div><div data-line-number="18" class="react-line-number react-code-text" style="padding-right:16px">18</div><div data-line-number="19" class="react-line-number react-code-text" style="padding-right:16px">19</div><div data-line-number="20" class="react-line-number react-code-text" style="padding-right:16px">20</div><div data-line-number="21" class="react-line-number react-code-text" style="padding-right:16px">21</div><div data-line-number="22" class="react-line-number react-code-text" style="padding-right:16px">22</div><div data-line-number="23" class="react-line-number react-code-text" style="padding-right:16px">23</div><div data-line-number="24" class="react-line-number react-code-text" style="padding-right:16px">24</div><div data-line-number="25" class="react-line-number react-code-text" style="padding-right:16px">25</div><div data-line-number="26" class="react-line-number react-code-text" style="padding-right:16px">26</div><div data-line-number="27" class="react-line-number react-code-text" style="padding-right:16px">27</div><div data-line-number="28" class="react-line-number react-code-text" style="padding-right:16px">28</div><div data-line-number="29" class="react-line-number react-code-text" style="padding-right:16px">29</div><div data-line-number="30" class="react-line-number react-code-text" style="padding-right:16px">30</div><div data-line-number="31" class="react-line-number react-code-text" style="padding-right:16px">31</div><div data-line-number="32" class="react-line-number react-code-text" style="padding-right:16px">32</div><div data-line-number="33" class="react-line-number react-code-text" style="padding-right:16px">33</div><div data-line-number="34" class="react-line-number react-code-text" style="padding-right:16px">34</div><div data-line-number="35" class="react-line-number react-code-text" style="padding-right:16px">35</div><div data-line-number="36" class="react-line-number react-code-text" style="padding-right:16px">36</div><div data-line-number="37" class="react-line-number react-code-text" style="padding-right:16px">37</div><div data-line-number="38" class="react-line-number react-code-text" style="padding-right:16px">38</div><div data-line-number="39" class="react-line-number react-code-text" style="padding-right:16px">39</div><div data-line-number="40" class="react-line-number react-code-text" style="padding-right:16px">40</div><div data-line-number="41" class="react-line-number react-code-text" style="padding-right:16px">41</div><div data-line-number="42" class="react-line-number react-code-text" style="padding-right:16px">42<span class="Box-sc-g0xbh4-0 cJGaMs"><div aria-label="Collapse code section" role="button" class="Box-sc-g0xbh4-0 iGLarr"><svg aria-hidden="true" focusable="false" class="Octicon-sc-9kayk9-0" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path d="M12.78 5.22a.749.749 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.06 0L3.22 6.28a.749.749 0 1 1 1.06-1.06L8 8.939l3.72-3.719a.749.749 0 0 1 1.06 0Z"></path></svg></div></span></div><div data-line-number="43" class="child-of-line-41 react-line-number react-code-text" style="padding-right:16px">43</div><div data-line-number="44" class="child-of-line-41 react-line-number react-code-text" style="padding-right:16px">44</div><div data-line-number="45" class="child-of-line-41 react-line-number react-code-text" style="padding-right:16px">45</div><div data-line-number="46" class="child-of-line-41 react-line-number react-code-text" style="padding-right:16px">46</div><div data-line-number="47" class="child-of-line-41 react-line-number react-code-text" style="padding-right:16px">47</div><div data-line-number="48" class="child-of-line-41 react-line-number react-code-text" style="padding-right:16px">48</div><div data-line-number="49" class="child-of-line-41 react-line-number react-code-text" style="padding-right:16px">49</div><div data-line-number="50" class="child-of-line-41 react-line-number react-code-text" style="padding-right:16px">50</div><div data-line-number="51" class="child-of-line-41 react-line-number react-code-text" style="padding-right:16px">51</div><div data-line-number="52" class="child-of-line-41 react-line-number react-code-text" style="padding-right:16px">52</div><div data-line-number="53" class="child-of-line-41 react-line-number react-code-text" style="padding-right:16px">53</div><div data-line-number="54" class="child-of-line-41 react-line-number react-code-text" style="padding-right:16px">54</div><div data-line-number="55" class="child-of-line-41 react-line-number react-code-text" style="padding-right:16px">55</div><div data-line-number="56" class="child-of-line-41 react-line-number react-code-text" style="padding-right:16px">56</div><div data-line-number="57" class="child-of-line-41 react-line-number react-code-text" style="padding-right:16px">57</div><div data-line-number="58" class="child-of-line-41 react-line-number react-code-text" style="padding-right:16px">58</div><div data-line-number="59" class="child-of-line-41 react-line-number react-code-text" style="padding-right:16px">59</div><div data-line-number="60" class="child-of-line-41 react-line-number react-code-text" style="padding-right:16px">60</div><div data-line-number="61" class="child-of-line-41 react-line-number react-code-text" style="padding-right:16px">61</div><div data-line-number="62" class="child-of-line-41 react-line-number react-code-text" style="padding-right:16px">62</div><div data-line-number="63" class="child-of-line-41 react-line-number react-code-text" style="padding-right:16px">63</div><div data-line-number="64" class="child-of-line-41 react-line-number react-code-text" style="padding-right:16px">64</div><div data-line-number="65" class="child-of-line-41 react-line-number react-code-text" style="padding-right:16px">65</div><div data-line-number="66" class="child-of-line-41 react-line-number react-code-text" style="padding-right:16px">66</div><div data-line-number="67" class="child-of-line-41 react-line-number react-code-text" style="padding-right:16px">67</div><div data-line-number="68" class="child-of-line-41 react-line-number react-code-text" style="padding-right:16px">68<span class="Box-sc-g0xbh4-0 cJGaMs"><div aria-label="Collapse code section" role="button" class="Box-sc-g0xbh4-0 iGLarr"><svg aria-hidden="true" focusable="false" class="Octicon-sc-9kayk9-0" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path d="M12.78 5.22a.749.749 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.06 0L3.22 6.28a.749.749 0 1 1 1.06-1.06L8 8.939l3.72-3.719a.749.749 0 0 1 1.06 0Z"></path></svg></div></span></div><div data-line-number="69" class="child-of-line-41 child-of-line-67 react-line-number react-code-text" style="padding-right:16px">69</div><div data-line-number="70" class="child-of-line-41 child-of-line-67 react-line-number react-code-text" style="padding-right:16px">70</div><div data-line-number="71" class="child-of-line-41 child-of-line-67 react-line-number react-code-text" style="padding-right:16px">71</div><div data-line-number="72" class="child-of-line-41 child-of-line-67 react-line-number react-code-text" style="padding-right:16px">72</div><div data-line-number="73" class="child-of-line-41 child-of-line-67 react-line-number react-code-text" style="padding-right:16px">73</div><div data-line-number="74" class="child-of-line-41 child-of-line-67 react-line-number react-code-text" style="padding-right:16px">74</div><div data-line-number="75" class="child-of-line-41 child-of-line-67 react-line-number react-code-text" style="padding-right:16px">75</div><div data-line-number="76" class="child-of-line-41 child-of-line-67 react-line-number react-code-text" style="padding-right:16px">76</div><div data-line-number="77" class="child-of-line-41 child-of-line-67 react-line-number react-code-text" style="padding-right:16px">77</div><div data-line-number="78" class="child-of-line-41 child-of-line-67 react-line-number react-code-text" style="padding-right:16px">78</div><div data-line-number="79" class="child-of-line-41 child-of-line-67 react-line-number react-code-text" style="padding-right:16px">79</div><div data-line-number="80" class="child-of-line-41 child-of-line-67 react-line-number react-code-text" style="padding-right:16px">80</div><div data-line-number="81" class="child-of-line-41 child-of-line-67 react-line-number react-code-text" style="padding-right:16px">81</div><div data-line-number="82" class="child-of-line-41 child-of-line-67 react-line-number react-code-text" style="padding-right:16px">82</div><div data-line-number="83" class="child-of-line-41 child-of-line-67 react-line-number react-code-text" style="padding-right:16px">83</div><div data-line-number="84" class="child-of-line-41 child-of-line-67 react-line-number react-code-text" style="padding-right:16px">84</div><div data-line-number="85" class="child-of-line-41 child-of-line-67 react-line-number react-code-text" style="padding-right:16px">85</div><div data-line-number="86" class="child-of-line-41 child-of-line-67 react-line-number react-code-text" style="padding-right:16px">86</div><div data-line-number="87" class="child-of-line-41 child-of-line-67 react-line-number react-code-text" style="padding-right:16px">87</div><div data-line-number="88" class="child-of-line-41 child-of-line-67 react-line-number react-code-text" style="padding-right:16px">88</div><div data-line-number="89" class="child-of-line-41 child-of-line-67 react-line-number react-code-text" style="padding-right:16px">89</div><div data-line-number="90" class="child-of-line-41 react-line-number react-code-text" style="padding-right:16px">90</div><div data-line-number="91" class="child-of-line-41 react-line-number react-code-text" style="padding-right:16px">91</div><div data-line-number="92" class="child-of-line-41 react-line-number react-code-text" style="padding-right:16px">92<span class="Box-sc-g0xbh4-0 cJGaMs"><div aria-label="Collapse code section" role="button" class="Box-sc-g0xbh4-0 iGLarr"><svg aria-hidden="true" focusable="false" class="Octicon-sc-9kayk9-0" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path d="M12.78 5.22a.749.749 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.06 0L3.22 6.28a.749.749 0 1 1 1.06-1.06L8 8.939l3.72-3.719a.749.749 0 0 1 1.06 0Z"></path></svg></div></span></div><div data-line-number="93" class="child-of-line-41 child-of-line-91 react-line-number react-code-text" style="padding-right:16px">93</div><div data-line-number="94" class="child-of-line-41 child-of-line-91 react-line-number react-code-text" style="padding-right:16px">94</div><div data-line-number="95" class="child-of-line-41 child-of-line-91 react-line-number react-code-text" style="padding-right:16px">95</div><div data-line-number="96" class="child-of-line-41 child-of-line-91 react-line-number react-code-text" style="padding-right:16px">96</div><div data-line-number="97" class="child-of-line-41 child-of-line-91 react-line-number react-code-text" style="padding-right:16px">97</div><div data-line-number="98" class="child-of-line-41 child-of-line-91 react-line-number react-code-text" style="padding-right:16px">98</div><div data-line-number="99" class="child-of-line-41 child-of-line-91 react-line-number react-code-text" style="padding-right:16px">99</div><div data-line-number="100" class="child-of-line-41 react-line-number react-code-text" style="padding-right:16px">100</div><div data-line-number="101" class="child-of-line-41 react-line-number react-code-text" style="padding-right:16px">101</div><div data-line-number="102" class="child-of-line-41 react-line-number react-code-text" style="padding-right:16px">102<span class="Box-sc-g0xbh4-0 cJGaMs"><div aria-label="Collapse code section" role="button" class="Box-sc-g0xbh4-0 iGLarr"><svg aria-hidden="true" focusable="false" class="Octicon-sc-9kayk9-0" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path d="M12.78 5.22a.749.749 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.06 0L3.22 6.28a.749.749 0 1 1 1.06-1.06L8 8.939l3.72-3.719a.749.749 0 0 1 1.06 0Z"></path></svg></div></span></div><div data-line-number="103" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">103</div><div data-line-number="104" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">104</div><div data-line-number="105" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">105</div><div data-line-number="106" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">106</div><div data-line-number="107" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">107</div><div data-line-number="108" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">108</div><div data-line-number="109" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">109</div><div data-line-number="110" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">110</div><div data-line-number="111" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">111</div><div data-line-number="112" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">112</div><div data-line-number="113" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">113</div><div data-line-number="114" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">114</div><div data-line-number="115" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">115</div><div data-line-number="116" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">116</div><div data-line-number="117" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">117</div><div data-line-number="118" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">118</div><div data-line-number="119" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">119</div><div data-line-number="120" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">120</div><div data-line-number="121" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">121</div><div data-line-number="122" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">122</div><div data-line-number="123" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">123</div><div data-line-number="124" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">124</div><div data-line-number="125" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">125</div><div data-line-number="126" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">126</div><div data-line-number="127" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">127</div><div data-line-number="128" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">128</div><div data-line-number="129" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">129</div><div data-line-number="130" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">130</div><div data-line-number="131" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">131</div><div data-line-number="132" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">132</div><div data-line-number="133" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">133</div><div data-line-number="134" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">134</div><div data-line-number="135" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">135</div><div data-line-number="136" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">136</div><div data-line-number="137" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">137</div><div data-line-number="138" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">138</div><div data-line-number="139" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">139</div><div data-line-number="140" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">140</div><div data-line-number="141" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">141</div><div data-line-number="142" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">142</div><div data-line-number="143" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">143</div><div data-line-number="144" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">144</div><div data-line-number="145" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">145</div><div data-line-number="146" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">146</div><div data-line-number="147" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">147</div><div data-line-number="148" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">148</div><div data-line-number="149" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">149</div><div data-line-number="150" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">150</div><div data-line-number="151" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">151</div><div data-line-number="152" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">152</div><div data-line-number="153" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">153</div><div data-line-number="154" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">154</div><div data-line-number="155" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">155</div><div data-line-number="156" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">156</div><div data-line-number="157" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">157</div><div data-line-number="158" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">158</div><div data-line-number="159" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">159</div><div data-line-number="160" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">160</div><div data-line-number="161" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">161</div><div data-line-number="162" class="child-of-line-41 child-of-line-101 react-line-number react-code-text" style="padding-right:16px">162</div><div data-line-number="163" class="child-of-line-41 react-line-number react-code-text" style="padding-right:16px">163</div><div data-line-number="164" class="child-of-line-41 react-line-number react-code-text" style="padding-right:16px">164</div><div data-line-number="165" class="child-of-line-41 react-line-number react-code-text" style="padding-right:16px">165</div><div data-line-number="166" class="child-of-line-41 react-line-number react-code-text" style="padding-right:16px">166<span class="Box-sc-g0xbh4-0 cJGaMs"><div aria-label="Collapse code section" role="button" class="Box-sc-g0xbh4-0 iGLarr"><svg aria-hidden="true" focusable="false" class="Octicon-sc-9kayk9-0" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path d="M12.78 5.22a.749.749 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.06 0L3.22 6.28a.749.749 0 1 1 1.06-1.06L8 8.939l3.72-3.719a.749.749 0 0 1 1.06 0Z"></path></svg></div></span></div><div data-line-number="167" class="child-of-line-41 child-of-line-165 react-line-number react-code-text" style="padding-right:16px">167</div><div data-line-number="168" class="child-of-line-41 child-of-line-165 react-line-number react-code-text" style="padding-right:16px">168</div><div data-line-number="169" class="child-of-line-41 child-of-line-165 react-line-number react-code-text" style="padding-right:16px">169</div><div data-line-number="170" class="child-of-line-41 child-of-line-165 react-line-number react-code-text" style="padding-right:16px">170</div><div data-line-number="171" class="child-of-line-41 child-of-line-165 react-line-number react-code-text" style="padding-right:16px">171</div><div data-line-number="172" class="child-of-line-41 child-of-line-165 react-line-number react-code-text" style="padding-right:16px">172</div><div data-line-number="173" class="child-of-line-41 child-of-line-165 react-line-number react-code-text" style="padding-right:16px">173</div><div data-line-number="174" class="child-of-line-41 child-of-line-165 react-line-number react-code-text" style="padding-right:16px">174</div><div data-line-number="175" class="child-of-line-41 react-line-number react-code-text" style="padding-right:16px">175</div><div data-line-number="176" class="child-of-line-41 react-line-number react-code-text" style="padding-right:16px">176</div><div data-line-number="177" class="child-of-line-41 react-line-number react-code-text" style="padding-right:16px">177</div><div data-line-number="178" class="child-of-line-41 react-line-number react-code-text" style="padding-right:16px">178</div><div data-line-number="179" class="child-of-line-41 react-line-number react-code-text" style="padding-right:16px">179</div><div data-line-number="180" class="child-of-line-41 react-line-number react-code-text" style="padding-right:16px">180</div><div data-line-number="181" class="child-of-line-41 react-line-number react-code-text" style="padding-right:16px">181</div><div data-line-number="182" class="child-of-line-41 react-line-number react-code-text" style="padding-right:16px">182</div><div data-line-number="183" class="child-of-line-41 react-line-number react-code-text" style="padding-right:16px">183<span class="Box-sc-g0xbh4-0 cJGaMs"><div aria-label="Collapse code section" role="button" class="Box-sc-g0xbh4-0 iGLarr"><svg aria-hidden="true" focusable="false" class="Octicon-sc-9kayk9-0" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path d="M12.78 5.22a.749.749 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.06 0L3.22 6.28a.749.749 0 1 1 1.06-1.06L8 8.939l3.72-3.719a.749.749 0 0 1 1.06 0Z"></path></svg></div></span></div><div data-line-number="184" class="child-of-line-41 child-of-line-182 react-line-number react-code-text" style="padding-right:16px">184</div><div data-line-number="185" class="child-of-line-41 child-of-line-182 react-line-number react-code-text" style="padding-right:16px">185</div><div data-line-number="186" class="child-of-line-41 child-of-line-182 react-line-number react-code-text" style="padding-right:16px">186</div><div data-line-number="187" class="child-of-line-41 child-of-line-182 react-line-number react-code-text" style="padding-right:16px">187</div><div data-line-number="188" class="child-of-line-41 child-of-line-182 react-line-number react-code-text" style="padding-right:16px">188</div><div data-line-number="189" class="child-of-line-41 child-of-line-182 react-line-number react-code-text" style="padding-right:16px">189</div><div data-line-number="190" class="child-of-line-41 child-of-line-182 react-line-number react-code-text" style="padding-right:16px">190</div><div data-line-number="191" class="child-of-line-41 child-of-line-182 react-line-number react-code-text" style="padding-right:16px">191</div><div data-line-number="192" class="child-of-line-41 child-of-line-182 react-line-number react-code-text" style="padding-right:16px">192</div><div data-line-number="193" class="child-of-line-41 child-of-line-182 react-line-number react-code-text" style="padding-right:16px">193</div><div data-line-number="194" class="child-of-line-41 child-of-line-182 react-line-number react-code-text" style="padding-right:16px">194</div><div data-line-number="195" class="child-of-line-41 react-line-number react-code-text" style="padding-right:16px">195</div><div data-line-number="196" class="child-of-line-41 react-line-number react-code-text" style="padding-right:16px">196</div><div data-line-number="197" class="child-of-line-41 react-line-number react-code-text" style="padding-right:16px">197<span class="Box-sc-g0xbh4-0 cJGaMs"><div aria-label="Collapse code section" role="button" class="Box-sc-g0xbh4-0 iGLarr"><svg aria-hidden="true" focusable="false" class="Octicon-sc-9kayk9-0" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path d="M12.78 5.22a.749.749 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.06 0L3.22 6.28a.749.749 0 1 1 1.06-1.06L8 8.939l3.72-3.719a.749.749 0 0 1 1.06 0Z"></path></svg></div></span></div><div data-line-number="198" class="child-of-line-41 child-of-line-196 react-line-number react-code-text" style="padding-right:16px">198</div><div data-line-number="199" class="child-of-line-41 child-of-line-196 react-line-number react-code-text" style="padding-right:16px">199</div><div data-line-number="200" class="child-of-line-41 child-of-line-196 react-line-number react-code-text" style="padding-right:16px">200</div><div data-line-number="201" class="child-of-line-41 child-of-line-196 react-line-number react-code-text" style="padding-right:16px">201</div><div data-line-number="202" class="child-of-line-41 child-of-line-196 react-line-number react-code-text" style="padding-right:16px">202</div><div data-line-number="203" class="child-of-line-41 child-of-line-196 react-line-number react-code-text" style="padding-right:16px">203</div><div data-line-number="204" class="child-of-line-41 child-of-line-196 react-line-number react-code-text" style="padding-right:16px">204</div><div data-line-number="205" class="child-of-line-41 child-of-line-196 react-line-number react-code-text" style="padding-right:16px">205</div><div data-line-number="206" class="child-of-line-41 child-of-line-196 react-line-number react-code-text" style="padding-right:16px">206</div><div data-line-number="207" class="child-of-line-41 child-of-line-196 react-line-number react-code-text" style="padding-right:16px">207</div><div data-line-number="208" class="child-of-line-41 child-of-line-196 react-line-number react-code-text" style="padding-right:16px">208</div><div data-line-number="209" class="child-of-line-41 child-of-line-196 react-line-number react-code-text" style="padding-right:16px">209</div><div data-line-number="210" class="child-of-line-41 child-of-line-196 react-line-number react-code-text" style="padding-right:16px">210</div><div data-line-number="211" class="child-of-line-41 child-of-line-196 react-line-number react-code-text" style="padding-right:16px">211</div><div data-line-number="212" class="child-of-line-41 child-of-line-196 react-line-number react-code-text" style="padding-right:16px">212</div><div data-line-number="213" class="child-of-line-41 child-of-line-196 react-line-number react-code-text" style="padding-right:16px">213</div><div data-line-number="214" class="child-of-line-41 child-of-line-196 react-line-number react-code-text" style="padding-right:16px">214</div><div data-line-number="215" class="child-of-line-41 child-of-line-196 react-line-number react-code-text" style="padding-right:16px">215</div><div data-line-number="216" class="child-of-line-41 child-of-line-196 react-line-number react-code-text" style="padding-right:16px">216</div><div data-line-number="217" class="child-of-line-41 child-of-line-196 react-line-number react-code-text" style="padding-right:16px">217</div><div data-line-number="218" class="child-of-line-41 child-of-line-196 react-line-number react-code-text" style="padding-right:16px">218</div><div data-line-number="219" class="child-of-line-41 child-of-line-196 react-line-number react-code-text" style="padding-right:16px">219</div><div data-line-number="220" class="react-line-number react-code-text" style="padding-right:16px">220</div><div data-line-number="221" class="react-line-number react-code-text" style="padding-right:16px">221</div><div data-line-number="222" class="react-line-number react-code-text" style="padding-right:16px">222</div><div data-line-number="223" class="react-line-number react-code-text" style="padding-right:16px">223</div><div data-line-number="224" class="react-line-number react-code-text" style="padding-right:16px">224<span class="Box-sc-g0xbh4-0 cJGaMs"><div aria-label="Collapse code section" role="button" class="Box-sc-g0xbh4-0 iGLarr"><svg aria-hidden="true" focusable="false" class="Octicon-sc-9kayk9-0" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path d="M12.78 5.22a.749.749 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.06 0L3.22 6.28a.749.749 0 1 1 1.06-1.06L8 8.939l3.72-3.719a.749.749 0 0 1 1.06 0Z"></path></svg></div></span></div><div data-line-number="225" class="child-of-line-223 react-line-number react-code-text" style="padding-right:16px">225</div><div data-line-number="226" class="child-of-line-223 react-line-number react-code-text" style="padding-right:16px">226</div><div data-line-number="227" class="child-of-line-223 react-line-number react-code-text" style="padding-right:16px">227<span class="Box-sc-g0xbh4-0 cJGaMs"><div aria-label="Collapse code section" role="button" class="Box-sc-g0xbh4-0 iGLarr"><svg aria-hidden="true" focusable="false" class="Octicon-sc-9kayk9-0" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path d="M12.78 5.22a.749.749 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.06 0L3.22 6.28a.749.749 0 1 1 1.06-1.06L8 8.939l3.72-3.719a.749.749 0 0 1 1.06 0Z"></path></svg></div></span></div><div data-line-number="228" class="child-of-line-223 child-of-line-226 react-line-number react-code-text" style="padding-right:16px">228</div><div data-line-number="229" class="child-of-line-223 child-of-line-226 react-line-number react-code-text" style="padding-right:16px">229</div><div data-line-number="230" class="child-of-line-223 child-of-line-226 react-line-number react-code-text" style="padding-right:16px">230</div><div data-line-number="231" class="child-of-line-223 child-of-line-226 react-line-number react-code-text" style="padding-right:16px">231</div><div data-line-number="232" class="child-of-line-223 child-of-line-226 react-line-number react-code-text" style="padding-right:16px">232</div><div data-line-number="233" class="child-of-line-223 child-of-line-226 react-line-number react-code-text" style="padding-right:16px">233</div><div data-line-number="234" class="child-of-line-223 child-of-line-226 react-line-number react-code-text" style="padding-right:16px">234</div><div data-line-number="235" class="child-of-line-223 child-of-line-226 react-line-number react-code-text" style="padding-right:16px">235</div><div data-line-number="236" class="child-of-line-223 child-of-line-226 react-line-number react-code-text" style="padding-right:16px">236</div><div data-line-number="237" class="child-of-line-223 child-of-line-226 react-line-number react-code-text" style="padding-right:16px">237</div><div data-line-number="238" class="child-of-line-223 child-of-line-226 react-line-number react-code-text" style="padding-right:16px">238</div><div data-line-number="239" class="child-of-line-223 child-of-line-226 react-line-number react-code-text" style="padding-right:16px">239</div><div data-line-number="240" class="child-of-line-223 child-of-line-226 react-line-number react-code-text" style="padding-right:16px">240</div><div data-line-number="241" class="child-of-line-223 child-of-line-226 react-line-number react-code-text" style="padding-right:16px">241</div><div data-line-number="242" class="child-of-line-223 child-of-line-226 react-line-number react-code-text" style="padding-right:16px">242</div><div data-line-number="243" class="child-of-line-223 child-of-line-226 react-line-number react-code-text" style="padding-right:16px">243</div><div data-line-number="244" class="child-of-line-223 child-of-line-226 react-line-number react-code-text" style="padding-right:16px">244</div><div data-line-number="245" class="child-of-line-223 child-of-line-226 react-line-number react-code-text" style="padding-right:16px">245</div><div data-line-number="246" class="child-of-line-223 child-of-line-226 react-line-number react-code-text" style="padding-right:16px">246</div><div data-line-number="247" class="child-of-line-223 child-of-line-226 react-line-number react-code-text" style="padding-right:16px">247</div><div data-line-number="248" class="child-of-line-223 child-of-line-226 react-line-number react-code-text" style="padding-right:16px">248</div><div data-line-number="249" class="child-of-line-223 child-of-line-226 react-line-number react-code-text" style="padding-right:16px">249</div><div data-line-number="250" class="child-of-line-223 react-line-number react-code-text" style="padding-right:16px">250</div><div data-line-number="251" class="child-of-line-223 react-line-number react-code-text" style="padding-right:16px">251</div><div data-line-number="252" class="child-of-line-223 react-line-number react-code-text" style="padding-right:16px">252<span class="Box-sc-g0xbh4-0 cJGaMs"><div aria-label="Collapse code section" role="button" class="Box-sc-g0xbh4-0 iGLarr"><svg aria-hidden="true" focusable="false" class="Octicon-sc-9kayk9-0" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path d="M12.78 5.22a.749.749 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.06 0L3.22 6.28a.749.749 0 1 1 1.06-1.06L8 8.939l3.72-3.719a.749.749 0 0 1 1.06 0Z"></path></svg></div></span></div><div data-line-number="253" class="child-of-line-223 child-of-line-251 react-line-number react-code-text" style="padding-right:16px">253</div><div data-line-number="254" class="child-of-line-223 child-of-line-251 react-line-number react-code-text" style="padding-right:16px">254</div><div data-line-number="255" class="child-of-line-223 child-of-line-251 react-line-number react-code-text" style="padding-right:16px">255</div><div data-line-number="256" class="child-of-line-223 child-of-line-251 react-line-number react-code-text" style="padding-right:16px">256</div><div data-line-number="257" class="child-of-line-223 child-of-line-251 react-line-number react-code-text" style="padding-right:16px">257</div><div data-line-number="258" class="child-of-line-223 child-of-line-251 react-line-number react-code-text" style="padding-right:16px">258</div><div data-line-number="259" class="child-of-line-223 child-of-line-251 react-line-number react-code-text" style="padding-right:16px">259</div><div data-line-number="260" class="child-of-line-223 child-of-line-251 react-line-number react-code-text" style="padding-right:16px">260</div><div data-line-number="261" class="child-of-line-223 child-of-line-251 react-line-number react-code-text" style="padding-right:16px">261</div><div data-line-number="262" class="child-of-line-223 child-of-line-251 react-line-number react-code-text" style="padding-right:16px">262</div><div data-line-number="263" class="child-of-line-223 child-of-line-251 react-line-number react-code-text" style="padding-right:16px">263</div><div data-line-number="264" class="child-of-line-223 child-of-line-251 react-line-number react-code-text" style="padding-right:16px">264</div><div data-line-number="265" class="child-of-line-223 child-of-line-251 react-line-number react-code-text" style="padding-right:16px">265</div><div data-line-number="266" class="child-of-line-223 child-of-line-251 react-line-number react-code-text" style="padding-right:16px">266</div><div data-line-number="267" class="child-of-line-223 child-of-line-251 react-line-number react-code-text" style="padding-right:16px">267</div><div data-line-number="268" class="child-of-line-223 child-of-line-251 react-line-number react-code-text" style="padding-right:16px">268</div><div data-line-number="269" class="child-of-line-223 child-of-line-251 react-line-number react-code-text" style="padding-right:16px">269</div><div data-line-number="270" class="child-of-line-223 react-line-number react-code-text" style="padding-right:16px">270</div><div data-line-number="271" class="child-of-line-223 react-line-number react-code-text" style="padding-right:16px">271</div><div data-line-number="272" class="child-of-line-223 react-line-number react-code-text" style="padding-right:16px">272<span class="Box-sc-g0xbh4-0 cJGaMs"><div aria-label="Collapse code section" role="button" class="Box-sc-g0xbh4-0 iGLarr"><svg aria-hidden="true" focusable="false" class="Octicon-sc-9kayk9-0" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path d="M12.78 5.22a.749.749 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.06 0L3.22 6.28a.749.749 0 1 1 1.06-1.06L8 8.939l3.72-3.719a.749.749 0 0 1 1.06 0Z"></path></svg></div></span></div><div data-line-number="273" class="child-of-line-223 child-of-line-271 react-line-number react-code-text" style="padding-right:16px">273</div><div data-line-number="274" class="child-of-line-223 child-of-line-271 react-line-number react-code-text" style="padding-right:16px">274</div><div data-line-number="275" class="child-of-line-223 child-of-line-271 react-line-number react-code-text" style="padding-right:16px">275</div><div data-line-number="276" class="child-of-line-223 child-of-line-271 react-line-number react-code-text" style="padding-right:16px">276</div><div data-line-number="277" class="child-of-line-223 child-of-line-271 react-line-number react-code-text" style="padding-right:16px">277</div><div data-line-number="278" class="child-of-line-223 child-of-line-271 react-line-number react-code-text" style="padding-right:16px">278</div><div data-line-number="279" class="child-of-line-223 child-of-line-271 react-line-number react-code-text" style="padding-right:16px">279</div><div data-line-number="280" class="child-of-line-223 child-of-line-271 react-line-number react-code-text" style="padding-right:16px">280</div><div data-line-number="281" class="child-of-line-223 child-of-line-271 react-line-number react-code-text" style="padding-right:16px">281</div><div data-line-number="282" class="child-of-line-223 child-of-line-271 react-line-number react-code-text" style="padding-right:16px">282</div><div data-line-number="283" class="child-of-line-223 child-of-line-271 react-line-number react-code-text" style="padding-right:16px">283</div><div data-line-number="284" class="child-of-line-223 child-of-line-271 react-line-number react-code-text" style="padding-right:16px">284</div><div data-line-number="285" class="child-of-line-223 react-line-number react-code-text" style="padding-right:16px">285</div><div data-line-number="286" class="child-of-line-223 react-line-number react-code-text" style="padding-right:16px">286</div><div data-line-number="287" class="child-of-line-223 react-line-number react-code-text" style="padding-right:16px">287</div><div data-line-number="288" class="child-of-line-223 react-line-number react-code-text" style="padding-right:16px">288<span class="Box-sc-g0xbh4-0 cJGaMs"><div aria-label="Collapse code section" role="button" class="Box-sc-g0xbh4-0 iGLarr"><svg aria-hidden="true" focusable="false" class="Octicon-sc-9kayk9-0" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path d="M12.78 5.22a.749.749 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.06 0L3.22 6.28a.749.749 0 1 1 1.06-1.06L8 8.939l3.72-3.719a.749.749 0 0 1 1.06 0Z"></path></svg></div></span></div><div data-line-number="289" class="child-of-line-223 child-of-line-287 react-line-number react-code-text" style="padding-right:16px">289</div><div data-line-number="290" class="child-of-line-223 child-of-line-287 react-line-number react-code-text" style="padding-right:16px">290</div><div data-line-number="291" class="child-of-line-223 child-of-line-287 react-line-number react-code-text" style="padding-right:16px">291</div><div data-line-number="292" class="child-of-line-223 child-of-line-287 react-line-number react-code-text" style="padding-right:16px">292</div><div data-line-number="293" class="child-of-line-223 child-of-line-287 react-line-number react-code-text" style="padding-right:16px">293</div><div data-line-number="294" class="child-of-line-223 child-of-line-287 react-line-number react-code-text" style="padding-right:16px">294</div><div data-line-number="295" class="child-of-line-223 child-of-line-287 react-line-number react-code-text" style="padding-right:16px">295</div><div data-line-number="296" class="child-of-line-223 child-of-line-287 react-line-number react-code-text" style="padding-right:16px">296</div><div data-line-number="297" class="child-of-line-223 child-of-line-287 react-line-number react-code-text" style="padding-right:16px">297</div><div data-line-number="298" class="child-of-line-223 child-of-line-287 react-line-number react-code-text" style="padding-right:16px">298</div><div data-line-number="299" class="child-of-line-223 child-of-line-287 react-line-number react-code-text" style="padding-right:16px">299</div><div data-line-number="300" class="child-of-line-223 child-of-line-287 react-line-number react-code-text" style="padding-right:16px">300</div><div data-line-number="301" class="react-line-number react-code-text" style="padding-right:16px">301</div><div data-line-number="302" class="react-line-number react-code-text" style="padding-right:16px">302</div><div data-line-number="303" class="react-line-number react-code-text" style="padding-right:16px">303</div><div data-line-number="304" class="react-line-number react-code-text" style="padding-right:16px">304</div><div data-line-number="305" class="react-line-number react-code-text" style="padding-right:16px">305<span class="Box-sc-g0xbh4-0 cJGaMs"><div aria-label="Collapse code section" role="button" class="Box-sc-g0xbh4-0 iGLarr"><svg aria-hidden="true" focusable="false" class="Octicon-sc-9kayk9-0" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path d="M12.78 5.22a.749.749 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.06 0L3.22 6.28a.749.749 0 1 1 1.06-1.06L8 8.939l3.72-3.719a.749.749 0 0 1 1.06 0Z"></path></svg></div></span></div><div data-line-number="306" class="child-of-line-304 react-line-number react-code-text" style="padding-right:16px">306</div><div data-line-number="307" class="child-of-line-304 react-line-number react-code-text" style="padding-right:16px">307</div><div data-line-number="308" class="child-of-line-304 react-line-number react-code-text" style="padding-right:16px">308</div><div data-line-number="309" class="child-of-line-304 react-line-number react-code-text" style="padding-right:16px">309</div><div data-line-number="310" class="child-of-line-304 react-line-number react-code-text" style="padding-right:16px">310</div><div data-line-number="311" class="child-of-line-304 react-line-number react-code-text" style="padding-right:16px">311</div><div data-line-number="312" class="child-of-line-304 react-line-number react-code-text" style="padding-right:16px">312</div><div data-line-number="313" class="child-of-line-304 react-line-number react-code-text" style="padding-right:16px">313</div><div data-line-number="314" class="child-of-line-304 react-line-number react-code-text" style="padding-right:16px">314</div><div data-line-number="315" class="child-of-line-304 react-line-number react-code-text" style="padding-right:16px">315</div><div data-line-number="316" class="child-of-line-304 react-line-number react-code-text" style="padding-right:16px">316</div><div data-line-number="317" class="child-of-line-304 react-line-number react-code-text" style="padding-right:16px">317</div><div data-line-number="318" class="child-of-line-304 react-line-number react-code-text" style="padding-right:16px">318</div><div data-line-number="319" class="child-of-line-304 react-line-number react-code-text" style="padding-right:16px">319</div><div data-line-number="320" class="child-of-line-304 react-line-number react-code-text" style="padding-right:16px">320</div><div data-line-number="321" class="child-of-line-304 react-line-number react-code-text" style="padding-right:16px">321</div><div data-line-number="322" class="child-of-line-304 react-line-number react-code-text" style="padding-right:16px">322</div><div data-line-number="323" class="child-of-line-304 react-line-number react-code-text" style="padding-right:16px">323</div><div data-line-number="324" class="child-of-line-304 react-line-number react-code-text" style="padding-right:16px">324</div><div data-line-number="325" class="child-of-line-304 react-line-number react-code-text" style="padding-right:16px">325</div><div data-line-number="326" class="child-of-line-304 react-line-number react-code-text" style="padding-right:16px">326</div><div data-line-number="327" class="child-of-line-304 react-line-number react-code-text" style="padding-right:16px">327</div><div data-line-number="328" class="child-of-line-304 react-line-number react-code-text" style="padding-right:16px">328</div><div data-line-number="329" class="child-of-line-304 react-line-number react-code-text" style="padding-right:16px">329</div><div data-line-number="330" class="child-of-line-304 react-line-number react-code-text" style="padding-right:16px">330</div><div data-line-number="331" class="child-of-line-304 react-line-number react-code-text" style="padding-right:16px">331</div><div data-line-number="332" class="child-of-line-304 react-line-number react-code-text" style="padding-right:16px">332</div><div data-line-number="333" class="child-of-line-304 react-line-number react-code-text" style="padding-right:16px">333</div><div data-line-number="334" class="child-of-line-304 react-line-number react-code-text" style="padding-right:16px">334</div><div data-line-number="335" class="child-of-line-304 react-line-number react-code-text" style="padding-right:16px">335</div><div data-line-number="336" class="child-of-line-304 react-line-number react-code-text" style="padding-right:16px">336</div><div data-line-number="337" class="child-of-line-304 react-line-number react-code-text" style="padding-right:16px">337</div><div data-line-number="338" class="child-of-line-304 react-line-number react-code-text" style="padding-right:16px">338</div><div data-line-number="339" class="child-of-line-304 react-line-number react-code-text" style="padding-right:16px">339</div><div data-line-number="340" class="child-of-line-304 react-line-number react-code-text" style="padding-right:16px">340</div><div data-line-number="341" class="child-of-line-304 react-line-number react-code-text" style="padding-right:16px">341</div><div data-line-number="342" class="child-of-line-304 react-line-number react-code-text" style="padding-right:16px">342<span class="Box-sc-g0xbh4-0 cJGaMs"><div aria-label="Collapse code section" role="button" class="Box-sc-g0xbh4-0 iGLarr"><svg aria-hidden="true" focusable="false" class="Octicon-sc-9kayk9-0" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path d="M12.78 5.22a.749.749 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.06 0L3.22 6.28a.749.749 0 1 1 1.06-1.06L8 8.939l3.72-3.719a.749.749 0 0 1 1.06 0Z"></path></svg></div></span></div><div data-line-number="343" class="child-of-line-304 child-of-line-341 react-line-number react-code-text" style="padding-right:16px">343</div><div data-line-number="344" class="child-of-line-304 child-of-line-341 react-line-number react-code-text" style="padding-right:16px">344</div><div data-line-number="345" class="child-of-line-304 child-of-line-341 react-line-number react-code-text" style="padding-right:16px">345</div><div data-line-number="346" class="child-of-line-304 child-of-line-341 react-line-number react-code-text" style="padding-right:16px">346</div><div data-line-number="347" class="child-of-line-304 child-of-line-341 react-line-number react-code-text" style="padding-right:16px">347</div><div data-line-number="348" class="child-of-line-304 child-of-line-341 react-line-number react-code-text" style="padding-right:16px">348</div><div data-line-number="349" class="child-of-line-304 child-of-line-341 react-line-number react-code-text" style="padding-right:16px">349</div><div data-line-number="350" class="child-of-line-304 child-of-line-341 react-line-number react-code-text" style="padding-right:16px">350</div><div data-line-number="351" class="child-of-line-304 child-of-line-341 react-line-number react-code-text" style="padding-right:16px">351</div><div data-line-number="352" class="child-of-line-304 child-of-line-341 react-line-number react-code-text" style="padding-right:16px">352</div><div data-line-number="353" class="child-of-line-304 child-of-line-341 react-line-number react-code-text" style="padding-right:16px">353</div><div data-line-number="354" class="child-of-line-304 child-of-line-341 react-line-number react-code-text" style="padding-right:16px">354</div><div data-line-number="355" class="child-of-line-304 child-of-line-341 react-line-number react-code-text" style="padding-right:16px">355</div><div data-line-number="356" class="child-of-line-304 child-of-line-341 react-line-number react-code-text" style="padding-right:16px">356</div><div data-line-number="357" class="child-of-line-304 child-of-line-341 react-line-number react-code-text" style="padding-right:16px">357</div><div data-line-number="358" class="child-of-line-304 child-of-line-341 react-line-number react-code-text" style="padding-right:16px">358</div><div data-line-number="359" class="child-of-line-304 child-of-line-341 react-line-number react-code-text" style="padding-right:16px">359</div><div data-line-number="360" class="child-of-line-304 child-of-line-341 react-line-number react-code-text" style="padding-right:16px">360</div><div data-line-number="361" class="react-line-number react-code-text" style="padding-right:16px">361</div><div data-line-number="362" class="react-line-number react-code-text" style="padding-right:16px">362</div><div data-line-number="363" class="react-line-number react-code-text" style="padding-right:16px">363</div><div data-line-number="364" class="react-line-number react-code-text" style="padding-right:16px">364</div><div data-line-number="365" class="react-line-number react-code-text" style="padding-right:16px">365<span class="Box-sc-g0xbh4-0 cJGaMs"><div aria-label="Collapse code section" role="button" class="Box-sc-g0xbh4-0 iGLarr"><svg aria-hidden="true" focusable="false" class="Octicon-sc-9kayk9-0" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path d="M12.78 5.22a.749.749 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.06 0L3.22 6.28a.749.749 0 1 1 1.06-1.06L8 8.939l3.72-3.719a.749.749 0 0 1 1.06 0Z"></path></svg></div></span></div><div data-line-number="366" class="child-of-line-364 react-line-number react-code-text" style="padding-right:16px">366</div><div data-line-number="367" class="child-of-line-364 react-line-number react-code-text" style="padding-right:16px">367</div><div data-line-number="368" class="child-of-line-364 react-line-number react-code-text" style="padding-right:16px">368</div><div data-line-number="369" class="child-of-line-364 react-line-number react-code-text" style="padding-right:16px">369</div><div data-line-number="370" class="child-of-line-364 react-line-number react-code-text" style="padding-right:16px">370</div><div data-line-number="371" class="child-of-line-364 react-line-number react-code-text" style="padding-right:16px">371</div><div data-line-number="372" class="child-of-line-364 react-line-number react-code-text" style="padding-right:16px">372</div><div data-line-number="373" class="child-of-line-364 react-line-number react-code-text" style="padding-right:16px">373</div><div data-line-number="374" class="child-of-line-364 react-line-number react-code-text" style="padding-right:16px">374</div><div data-line-number="375" class="child-of-line-364 react-line-number react-code-text" style="padding-right:16px">375</div><div data-line-number="376" class="child-of-line-364 react-line-number react-code-text" style="padding-right:16px">376</div><div data-line-number="377" class="child-of-line-364 react-line-number react-code-text" style="padding-right:16px">377</div><div data-line-number="378" class="child-of-line-364 react-line-number react-code-text" style="padding-right:16px">378</div><div data-line-number="379" class="child-of-line-364 react-line-number react-code-text" style="padding-right:16px">379</div><div data-line-number="380" class="child-of-line-364 react-line-number react-code-text" style="padding-right:16px">380</div><div data-line-number="381" class="child-of-line-364 react-line-number react-code-text" style="padding-right:16px">381</div><div data-line-number="382" class="child-of-line-364 react-line-number react-code-text" style="padding-right:16px">382</div><div data-line-number="383" class="child-of-line-364 react-line-number react-code-text" style="padding-right:16px">383</div><div data-line-number="384" class="child-of-line-364 react-line-number react-code-text" style="padding-right:16px">384</div><div data-line-number="385" class="child-of-line-364 react-line-number react-code-text" style="padding-right:16px">385</div><div data-line-number="386" class="child-of-line-364 react-line-number react-code-text" style="padding-right:16px">386</div><div data-line-number="387" class="child-of-line-364 react-line-number react-code-text" style="padding-right:16px">387</div><div data-line-number="388" class="child-of-line-364 react-line-number react-code-text" style="padding-right:16px">388</div><div data-line-number="389" class="child-of-line-364 react-line-number react-code-text" style="padding-right:16px">389</div><div data-line-number="390" class="child-of-line-364 react-line-number react-code-text" style="padding-right:16px">390</div><div data-line-number="391" class="child-of-line-364 react-line-number react-code-text" style="padding-right:16px">391</div><div data-line-number="392" class="child-of-line-364 react-line-number react-code-text" style="padding-right:16px">392</div><div data-line-number="393" class="child-of-line-364 react-line-number react-code-text" style="padding-right:16px">393</div><div data-line-number="394" class="child-of-line-364 react-line-number react-code-text" style="padding-right:16px">394</div><div data-line-number="395" class="child-of-line-364 react-line-number react-code-text" style="padding-right:16px">395</div><div data-line-number="396" class="child-of-line-364 react-line-number react-code-text" style="padding-right:16px">396</div><div data-line-number="397" class="child-of-line-364 react-line-number react-code-text" style="padding-right:16px">397</div><div data-line-number="398" class="child-of-line-364 react-line-number react-code-text" style="padding-right:16px">398</div><div data-line-number="399" class="child-of-line-364 react-line-number react-code-text" style="padding-right:16px">399</div><div data-line-number="400" class="child-of-line-364 react-line-number react-code-text" style="padding-right:16px">400</div><div data-line-number="401" class="child-of-line-364 react-line-number react-code-text" style="padding-right:16px">401</div><div data-line-number="402" class="child-of-line-364 react-line-number react-code-text" style="padding-right:16px">402<span class="Box-sc-g0xbh4-0 cJGaMs"><div aria-label="Collapse code section" role="button" class="Box-sc-g0xbh4-0 iGLarr"><svg aria-hidden="true" focusable="false" class="Octicon-sc-9kayk9-0" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path d="M12.78 5.22a.749.749 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.06 0L3.22 6.28a.749.749 0 1 1 1.06-1.06L8 8.939l3.72-3.719a.749.749 0 0 1 1.06 0Z"></path></svg></div></span></div><div data-line-number="403" class="child-of-line-364 child-of-line-401 react-line-number react-code-text" style="padding-right:16px">403</div><div data-line-number="404" class="child-of-line-364 child-of-line-401 react-line-number react-code-text" style="padding-right:16px">404</div><div data-line-number="405" class="child-of-line-364 child-of-line-401 react-line-number react-code-text" style="padding-right:16px">405</div><div data-line-number="406" class="child-of-line-364 child-of-line-401 react-line-number react-code-text" style="padding-right:16px">406</div><div data-line-number="407" class="child-of-line-364 child-of-line-401 react-line-number react-code-text" style="padding-right:16px">407</div><div data-line-number="408" class="child-of-line-364 child-of-line-401 react-line-number react-code-text" style="padding-right:16px">408</div><div data-line-number="409" class="child-of-line-364 child-of-line-401 react-line-number react-code-text" style="padding-right:16px">409</div><div data-line-number="410" class="child-of-line-364 child-of-line-401 react-line-number react-code-text" style="padding-right:16px">410</div><div data-line-number="411" class="child-of-line-364 child-of-line-401 react-line-number react-code-text" style="padding-right:16px">411</div><div data-line-number="412" class="child-of-line-364 child-of-line-401 react-line-number react-code-text" style="padding-right:16px">412</div><div data-line-number="413" class="child-of-line-364 child-of-line-401 react-line-number react-code-text" style="padding-right:16px">413</div><div data-line-number="414" class="child-of-line-364 child-of-line-401 react-line-number react-code-text" style="padding-right:16px">414</div><div data-line-number="415" class="child-of-line-364 child-of-line-401 react-line-number react-code-text" style="padding-right:16px">415</div><div data-line-number="416" class="child-of-line-364 child-of-line-401 react-line-number react-code-text" style="padding-right:16px">416</div><div data-line-number="417" class="child-of-line-364 child-of-line-401 react-line-number react-code-text" style="padding-right:16px">417</div><div data-line-number="418" class="child-of-line-364 child-of-line-401 react-line-number react-code-text" style="padding-right:16px">418</div><div data-line-number="419" class="child-of-line-364 child-of-line-401 react-line-number react-code-text" style="padding-right:16px">419</div><div data-line-number="420" class="child-of-line-364 child-of-line-401 react-line-number react-code-text" style="padding-right:16px">420</div><div data-line-number="421" class="child-of-line-364 child-of-line-401 react-line-number react-code-text" style="padding-right:16px">421</div><div data-line-number="422" class="child-of-line-364 child-of-line-401 react-line-number react-code-text" style="padding-right:16px">422</div><div data-line-number="423" class="react-line-number react-code-text" style="padding-right:16px">423</div><div data-line-number="424" class="react-line-number react-code-text" style="padding-right:16px">424</div><div data-line-number="425" class="react-line-number react-code-text" style="padding-right:16px">425</div><div data-line-number="426" class="react-line-number react-code-text" style="padding-right:16px">426</div><div data-line-number="427" class="react-line-number react-code-text" style="padding-right:16px">427<span class="Box-sc-g0xbh4-0 cJGaMs"><div aria-label="Collapse code section" role="button" class="Box-sc-g0xbh4-0 iGLarr"><svg aria-hidden="true" focusable="false" class="Octicon-sc-9kayk9-0" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path d="M12.78 5.22a.749.749 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.06 0L3.22 6.28a.749.749 0 1 1 1.06-1.06L8 8.939l3.72-3.719a.749.749 0 0 1 1.06 0Z"></path></svg></div></span></div><div data-line-number="428" class="child-of-line-426 react-line-number react-code-text" style="padding-right:16px">428</div><div data-line-number="429" class="child-of-line-426 react-line-number react-code-text" style="padding-right:16px">429</div><div data-line-number="430" class="child-of-line-426 react-line-number react-code-text" style="padding-right:16px">430</div><div data-line-number="431" class="child-of-line-426 react-line-number react-code-text" style="padding-right:16px">431</div><div data-line-number="432" class="child-of-line-426 react-line-number react-code-text" style="padding-right:16px">432</div><div data-line-number="433" class="child-of-line-426 react-line-number react-code-text" style="padding-right:16px">433</div><div data-line-number="434" class="child-of-line-426 react-line-number react-code-text" style="padding-right:16px">434</div><div data-line-number="435" class="child-of-line-426 react-line-number react-code-text" style="padding-right:16px">435</div><div data-line-number="436" class="child-of-line-426 react-line-number react-code-text" style="padding-right:16px">436</div><div data-line-number="437" class="child-of-line-426 react-line-number react-code-text" style="padding-right:16px">437</div><div data-line-number="438" class="child-of-line-426 react-line-number react-code-text" style="padding-right:16px">438</div><div data-line-number="439" class="child-of-line-426 react-line-number react-code-text" style="padding-right:16px">439</div><div data-line-number="440" class="child-of-line-426 react-line-number react-code-text" style="padding-right:16px">440</div><div data-line-number="441" class="child-of-line-426 react-line-number react-code-text" style="padding-right:16px">441</div><div data-line-number="442" class="child-of-line-426 react-line-number react-code-text" style="padding-right:16px">442</div><div data-line-number="443" class="child-of-line-426 react-line-number react-code-text" style="padding-right:16px">443</div><div data-line-number="444" class="child-of-line-426 react-line-number react-code-text" style="padding-right:16px">444</div><div data-line-number="445" class="child-of-line-426 react-line-number react-code-text" style="padding-right:16px">445</div><div data-line-number="446" class="child-of-line-426 react-line-number react-code-text" style="padding-right:16px">446</div><div data-line-number="447" class="child-of-line-426 react-line-number react-code-text" style="padding-right:16px">447</div><div data-line-number="448" class="child-of-line-426 react-line-number react-code-text" style="padding-right:16px">448</div><div data-line-number="449" class="child-of-line-426 react-line-number react-code-text" style="padding-right:16px">449</div><div data-line-number="450" class="child-of-line-426 react-line-number react-code-text" style="padding-right:16px">450</div><div data-line-number="451" class="child-of-line-426 react-line-number react-code-text" style="padding-right:16px">451</div><div data-line-number="452" class="child-of-line-426 react-line-number react-code-text" style="padding-right:16px">452</div><div data-line-number="453" class="child-of-line-426 react-line-number react-code-text" style="padding-right:16px">453</div><div data-line-number="454" class="child-of-line-426 react-line-number react-code-text" style="padding-right:16px">454</div><div data-line-number="455" class="child-of-line-426 react-line-number react-code-text" style="padding-right:16px">455</div><div data-line-number="456" class="child-of-line-426 react-line-number react-code-text" style="padding-right:16px">456</div><div data-line-number="457" class="child-of-line-426 react-line-number react-code-text" style="padding-right:16px">457</div><div data-line-number="458" class="child-of-line-426 react-line-number react-code-text" style="padding-right:16px">458</div><div data-line-number="459" class="child-of-line-426 react-line-number react-code-text" style="padding-right:16px">459</div><div data-line-number="460" class="child-of-line-426 react-line-number react-code-text" style="padding-right:16px">460</div><div data-line-number="461" class="child-of-line-426 react-line-number react-code-text" style="padding-right:16px">461</div><div data-line-number="462" class="child-of-line-426 react-line-number react-code-text" style="padding-right:16px">462</div><div data-line-number="463" class="child-of-line-426 react-line-number react-code-text" style="padding-right:16px">463</div><div data-line-number="464" class="child-of-line-426 react-line-number react-code-text" style="padding-right:16px">464</div><div data-line-number="465" class="child-of-line-426 react-line-number react-code-text" style="padding-right:16px">465</div><div data-line-number="466" class="child-of-line-426 react-line-number react-code-text" style="padding-right:16px">466</div><div data-line-number="467" class="child-of-line-426 react-line-number react-code-text" style="padding-right:16px">467</div><div data-line-number="468" class="child-of-line-426 react-line-number react-code-text" style="padding-right:16px">468</div><div data-line-number="469" class="child-of-line-426 react-line-number react-code-text" style="padding-right:16px">469</div><div data-line-number="470" class="child-of-line-426 react-line-number react-code-text" style="padding-right:16px">470<span class="Box-sc-g0xbh4-0 cJGaMs"><div aria-label="Collapse code section" role="button" class="Box-sc-g0xbh4-0 iGLarr"><svg aria-hidden="true" focusable="false" class="Octicon-sc-9kayk9-0" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path d="M12.78 5.22a.749.749 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.06 0L3.22 6.28a.749.749 0 1 1 1.06-1.06L8 8.939l3.72-3.719a.749.749 0 0 1 1.06 0Z"></path></svg></div></span></div><div data-line-number="471" class="child-of-line-426 child-of-line-469 react-line-number react-code-text" style="padding-right:16px">471</div><div data-line-number="472" class="child-of-line-426 child-of-line-469 react-line-number react-code-text" style="padding-right:16px">472</div><div data-line-number="473" class="child-of-line-426 child-of-line-469 react-line-number react-code-text" style="padding-right:16px">473</div><div data-line-number="474" class="child-of-line-426 child-of-line-469 react-line-number react-code-text" style="padding-right:16px">474</div><div data-line-number="475" class="child-of-line-426 child-of-line-469 react-line-number react-code-text" style="padding-right:16px">475</div><div data-line-number="476" class="child-of-line-426 child-of-line-469 react-line-number react-code-text" style="padding-right:16px">476</div><div data-line-number="477" class="child-of-line-426 child-of-line-469 react-line-number react-code-text" style="padding-right:16px">477</div><div data-line-number="478" class="child-of-line-426 child-of-line-469 react-line-number react-code-text" style="padding-right:16px">478</div><div data-line-number="479" class="child-of-line-426 child-of-line-469 react-line-number react-code-text" style="padding-right:16px">479</div><div data-line-number="480" class="child-of-line-426 child-of-line-469 react-line-number react-code-text" style="padding-right:16px">480</div><div data-line-number="481" class="child-of-line-426 child-of-line-469 react-line-number react-code-text" style="padding-right:16px">481</div><div data-line-number="482" class="child-of-line-426 child-of-line-469 react-line-number react-code-text" style="padding-right:16px">482</div><div data-line-number="483" class="child-of-line-426 child-of-line-469 react-line-number react-code-text" style="padding-right:16px">483</div><div data-line-number="484" class="child-of-line-426 child-of-line-469 react-line-number react-code-text" style="padding-right:16px">484</div><div data-line-number="485" class="child-of-line-426 child-of-line-469 react-line-number react-code-text" style="padding-right:16px">485</div><div data-line-number="486" class="child-of-line-426 child-of-line-469 react-line-number react-code-text" style="padding-right:16px">486</div><div data-line-number="487" class="child-of-line-426 child-of-line-469 react-line-number react-code-text" style="padding-right:16px">487</div><div data-line-number="488" class="child-of-line-426 child-of-line-469 react-line-number react-code-text" style="padding-right:16px">488</div><div data-line-number="489" class="child-of-line-426 child-of-line-469 react-line-number react-code-text" style="padding-right:16px">489</div><div data-line-number="490" class="child-of-line-426 child-of-line-469 react-line-number react-code-text" style="padding-right:16px">490</div><div data-line-number="491" class="child-of-line-426 child-of-line-469 react-line-number react-code-text" style="padding-right:16px">491</div><div data-line-number="492" class="child-of-line-426 child-of-line-469 react-line-number react-code-text" style="padding-right:16px">492</div><div data-line-number="493" class="react-line-number react-code-text" style="padding-right:16px">493</div><div data-line-number="494" class="react-line-number react-code-text" style="padding-right:16px">494</div><div data-line-number="495" class="react-line-number react-code-text" style="padding-right:16px">495</div><div data-line-number="496" class="react-line-number react-code-text" style="padding-right:16px">496</div><div data-line-number="497" class="react-line-number react-code-text" style="padding-right:16px">497<span class="Box-sc-g0xbh4-0 cJGaMs"><div aria-label="Collapse code section" role="button" class="Box-sc-g0xbh4-0 iGLarr"><svg aria-hidden="true" focusable="false" class="Octicon-sc-9kayk9-0" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path d="M12.78 5.22a.749.749 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.06 0L3.22 6.28a.749.749 0 1 1 1.06-1.06L8 8.939l3.72-3.719a.749.749 0 0 1 1.06 0Z"></path></svg></div></span></div><div data-line-number="498" class="child-of-line-496 react-line-number react-code-text" style="padding-right:16px">498</div><div data-line-number="499" class="child-of-line-496 react-line-number react-code-text" style="padding-right:16px">499</div><div data-line-number="500" class="child-of-line-496 react-line-number react-code-text" style="padding-right:16px">500</div><div data-line-number="501" class="child-of-line-496 react-line-number react-code-text" style="padding-right:16px">501</div><div data-line-number="502" class="child-of-line-496 react-line-number react-code-text" style="padding-right:16px">502</div><div data-line-number="503" class="child-of-line-496 react-line-number react-code-text" style="padding-right:16px">503</div><div data-line-number="504" class="child-of-line-496 react-line-number react-code-text" style="padding-right:16px">504</div><div data-line-number="505" class="child-of-line-496 react-line-number react-code-text" style="padding-right:16px">505</div><div data-line-number="506" class="child-of-line-496 react-line-number react-code-text" style="padding-right:16px">506</div><div data-line-number="507" class="child-of-line-496 react-line-number react-code-text" style="padding-right:16px">507</div><div data-line-number="508" class="child-of-line-496 react-line-number react-code-text" style="padding-right:16px">508</div><div data-line-number="509" class="child-of-line-496 react-line-number react-code-text" style="padding-right:16px">509</div><div data-line-number="510" class="child-of-line-496 react-line-number react-code-text" style="padding-right:16px">510</div><div data-line-number="511" class="child-of-line-496 react-line-number react-code-text" style="padding-right:16px">511</div><div data-line-number="512" class="child-of-line-496 react-line-number react-code-text" style="padding-right:16px">512</div><div data-line-number="513" class="child-of-line-496 react-line-number react-code-text" style="padding-right:16px">513</div><div data-line-number="514" class="child-of-line-496 react-line-number react-code-text" style="padding-right:16px">514</div><div data-line-number="515" class="child-of-line-496 react-line-number react-code-text" style="padding-right:16px">515</div><div data-line-number="516" class="child-of-line-496 react-line-number react-code-text" style="padding-right:16px">516</div><div data-line-number="517" class="child-of-line-496 react-line-number react-code-text" style="padding-right:16px">517</div><div data-line-number="518" class="child-of-line-496 react-line-number react-code-text" style="padding-right:16px">518</div><div data-line-number="519" class="child-of-line-496 react-line-number react-code-text" style="padding-right:16px">519</div><div data-line-number="520" class="child-of-line-496 react-line-number react-code-text" style="padding-right:16px">520</div><div data-line-number="521" class="child-of-line-496 react-line-number react-code-text" style="padding-right:16px">521</div><div data-line-number="522" class="child-of-line-496 react-line-number react-code-text" style="padding-right:16px">522</div><div data-line-number="523" class="child-of-line-496 react-line-number react-code-text" style="padding-right:16px">523</div><div data-line-number="524" class="child-of-line-496 react-line-number react-code-text" style="padding-right:16px">524</div><div data-line-number="525" class="child-of-line-496 react-line-number react-code-text" style="padding-right:16px">525</div><div data-line-number="526" class="child-of-line-496 react-line-number react-code-text" style="padding-right:16px">526</div><div data-line-number="527" class="child-of-line-496 react-line-number react-code-text" style="padding-right:16px">527</div><div data-line-number="528" class="child-of-line-496 react-line-number react-code-text" style="padding-right:16px">528</div><div data-line-number="529" class="child-of-line-496 react-line-number react-code-text" style="padding-right:16px">529</div><div data-line-number="530" class="child-of-line-496 react-line-number react-code-text" style="padding-right:16px">530</div><div data-line-number="531" class="child-of-line-496 react-line-number react-code-text" style="padding-right:16px">531</div><div data-line-number="532" class="child-of-line-496 react-line-number react-code-text" style="padding-right:16px">532</div><div data-line-number="533" class="child-of-line-496 react-line-number react-code-text" style="padding-right:16px">533</div><div data-line-number="534" class="child-of-line-496 react-line-number react-code-text" style="padding-right:16px">534</div><div data-line-number="535" class="child-of-line-496 react-line-number react-code-text" style="padding-right:16px">535<span class="Box-sc-g0xbh4-0 cJGaMs"><div aria-label="Collapse code section" role="button" class="Box-sc-g0xbh4-0 iGLarr"><svg aria-hidden="true" focusable="false" class="Octicon-sc-9kayk9-0" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path d="M12.78 5.22a.749.749 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.06 0L3.22 6.28a.749.749 0 1 1 1.06-1.06L8 8.939l3.72-3.719a.749.749 0 0 1 1.06 0Z"></path></svg></div></span></div><div data-line-number="536" class="child-of-line-496 child-of-line-534 react-line-number react-code-text" style="padding-right:16px">536</div><div data-line-number="537" class="child-of-line-496 child-of-line-534 react-line-number react-code-text" style="padding-right:16px">537</div><div data-line-number="538" class="child-of-line-496 child-of-line-534 react-line-number react-code-text" style="padding-right:16px">538</div><div data-line-number="539" class="child-of-line-496 child-of-line-534 react-line-number react-code-text" style="padding-right:16px">539</div><div data-line-number="540" class="child-of-line-496 child-of-line-534 react-line-number react-code-text" style="padding-right:16px">540</div><div data-line-number="541" class="child-of-line-496 child-of-line-534 react-line-number react-code-text" style="padding-right:16px">541</div><div data-line-number="542" class="child-of-line-496 child-of-line-534 react-line-number react-code-text" style="padding-right:16px">542</div><div data-line-number="543" class="child-of-line-496 child-of-line-534 react-line-number react-code-text" style="padding-right:16px">543</div><div data-line-number="544" class="child-of-line-496 child-of-line-534 react-line-number react-code-text" style="padding-right:16px">544</div><div data-line-number="545" class="child-of-line-496 child-of-line-534 react-line-number react-code-text" style="padding-right:16px">545</div><div data-line-number="546" class="child-of-line-496 child-of-line-534 react-line-number react-code-text" style="padding-right:16px">546</div><div data-line-number="547" class="child-of-line-496 child-of-line-534 react-line-number react-code-text" style="padding-right:16px">547</div><div data-line-number="548" class="child-of-line-496 child-of-line-534 react-line-number react-code-text" style="padding-right:16px">548</div><div data-line-number="549" class="child-of-line-496 child-of-line-534 react-line-number react-code-text" style="padding-right:16px">549</div><div data-line-number="550" class="child-of-line-496 child-of-line-534 react-line-number react-code-text" style="padding-right:16px">550</div><div data-line-number="551" class="child-of-line-496 child-of-line-534 react-line-number react-code-text" style="padding-right:16px">551</div><div data-line-number="552" class="child-of-line-496 child-of-line-534 react-line-number react-code-text" style="padding-right:16px">552</div><div data-line-number="553" class="child-of-line-496 child-of-line-534 react-line-number react-code-text" style="padding-right:16px">553</div><div data-line-number="554" class="child-of-line-496 child-of-line-534 react-line-number react-code-text" style="padding-right:16px">554</div><div data-line-number="555" class="child-of-line-496 child-of-line-534 react-line-number react-code-text" style="padding-right:16px">555</div><div data-line-number="556" class="child-of-line-496 child-of-line-534 react-line-number react-code-text" style="padding-right:16px">556</div><div data-line-number="557" class="child-of-line-496 child-of-line-534 react-line-number react-code-text" style="padding-right:16px">557</div><div data-line-number="558" class="react-line-number react-code-text" style="padding-right:16px">558</div><div data-line-number="559" class="react-line-number react-code-text" style="padding-right:16px">559</div><div data-line-number="560" class="react-line-number react-code-text" style="padding-right:16px">560</div><div data-line-number="561" class="react-line-number react-code-text" style="padding-right:16px">561</div><div data-line-number="562" class="react-line-number react-code-text" style="padding-right:16px">562<span class="Box-sc-g0xbh4-0 cJGaMs"><div aria-label="Collapse code section" role="button" class="Box-sc-g0xbh4-0 iGLarr"><svg aria-hidden="true" focusable="false" class="Octicon-sc-9kayk9-0" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path d="M12.78 5.22a.749.749 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.06 0L3.22 6.28a.749.749 0 1 1 1.06-1.06L8 8.939l3.72-3.719a.749.749 0 0 1 1.06 0Z"></path></svg></div></span></div><div data-line-number="563" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">563</div><div data-line-number="564" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">564</div><div data-line-number="565" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">565</div><div data-line-number="566" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">566</div><div data-line-number="567" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">567</div><div data-line-number="568" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">568</div><div data-line-number="569" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">569</div><div data-line-number="570" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">570</div><div data-line-number="571" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">571</div><div data-line-number="572" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">572</div><div data-line-number="573" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">573</div><div data-line-number="574" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">574</div><div data-line-number="575" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">575</div><div data-line-number="576" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">576</div><div data-line-number="577" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">577</div><div data-line-number="578" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">578</div><div data-line-number="579" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">579</div><div data-line-number="580" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">580</div><div data-line-number="581" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">581</div><div data-line-number="582" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">582</div><div data-line-number="583" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">583</div><div data-line-number="584" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">584</div><div data-line-number="585" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">585</div><div data-line-number="586" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">586</div><div data-line-number="587" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">587</div><div data-line-number="588" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">588</div><div data-line-number="589" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">589</div><div data-line-number="590" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">590</div><div data-line-number="591" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">591</div><div data-line-number="592" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">592</div><div data-line-number="593" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">593</div><div data-line-number="594" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">594</div><div data-line-number="595" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">595</div><div data-line-number="596" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">596</div><div data-line-number="597" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">597</div><div data-line-number="598" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">598</div><div data-line-number="599" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">599</div><div data-line-number="600" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">600</div><div data-line-number="601" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">601</div><div data-line-number="602" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">602</div><div data-line-number="603" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">603</div><div data-line-number="604" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">604</div><div data-line-number="605" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">605</div><div data-line-number="606" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">606</div><div data-line-number="607" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">607</div><div data-line-number="608" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">608</div><div data-line-number="609" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">609</div><div data-line-number="610" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">610</div><div data-line-number="611" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">611</div><div data-line-number="612" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">612</div><div data-line-number="613" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">613</div><div data-line-number="614" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">614</div><div data-line-number="615" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">615</div><div data-line-number="616" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">616</div><div data-line-number="617" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">617</div><div data-line-number="618" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">618</div><div data-line-number="619" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">619</div><div data-line-number="620" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">620</div><div data-line-number="621" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">621</div><div data-line-number="622" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">622</div><div data-line-number="623" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">623</div><div data-line-number="624" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">624</div><div data-line-number="625" class="child-of-line-561 react-line-number react-code-text" style="padding-right:16px">625<span class="Box-sc-g0xbh4-0 cJGaMs"><div aria-label="Collapse code section" role="button" class="Box-sc-g0xbh4-0 iGLarr"><svg aria-hidden="true" focusable="false" class="Octicon-sc-9kayk9-0" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path d="M12.78 5.22a.749.749 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.06 0L3.22 6.28a.749.749 0 1 1 1.06-1.06L8 8.939l3.72-3.719a.749.749 0 0 1 1.06 0Z"></path></svg></div></span></div><div data-line-number="626" class="child-of-line-561 child-of-line-624 react-line-number react-code-text" style="padding-right:16px">626</div><div data-line-number="627" class="child-of-line-561 child-of-line-624 react-line-number react-code-text" style="padding-right:16px">627</div><div data-line-number="628" class="child-of-line-561 child-of-line-624 react-line-number react-code-text" style="padding-right:16px">628</div><div data-line-number="629" class="child-of-line-561 child-of-line-624 react-line-number react-code-text" style="padding-right:16px">629</div><div data-line-number="630" class="child-of-line-561 child-of-line-624 react-line-number react-code-text" style="padding-right:16px">630</div><div data-line-number="631" class="child-of-line-561 child-of-line-624 react-line-number react-code-text" style="padding-right:16px">631</div><div data-line-number="632" class="child-of-line-561 child-of-line-624 react-line-number react-code-text" style="padding-right:16px">632</div><div data-line-number="633" class="child-of-line-561 child-of-line-624 react-line-number react-code-text" style="padding-right:16px">633</div><div data-line-number="634" class="child-of-line-561 child-of-line-624 react-line-number react-code-text" style="padding-right:16px">634</div><div data-line-number="635" class="child-of-line-561 child-of-line-624 react-line-number react-code-text" style="padding-right:16px">635</div><div data-line-number="636" class="child-of-line-561 child-of-line-624 react-line-number react-code-text" style="padding-right:16px">636</div><div data-line-number="637" class="child-of-line-561 child-of-line-624 react-line-number react-code-text" style="padding-right:16px">637</div><div data-line-number="638" class="child-of-line-561 child-of-line-624 react-line-number react-code-text" style="padding-right:16px">638</div><div data-line-number="639" class="child-of-line-561 child-of-line-624 react-line-number react-code-text" style="padding-right:16px">639</div><div data-line-number="640" class="child-of-line-561 child-of-line-624 react-line-number react-code-text" style="padding-right:16px">640</div><div data-line-number="641" class="child-of-line-561 child-of-line-624 react-line-number react-code-text" style="padding-right:16px">641</div><div data-line-number="642" class="child-of-line-561 child-of-line-624 react-line-number react-code-text" style="padding-right:16px">642</div><div data-line-number="643" class="child-of-line-561 child-of-line-624 react-line-number react-code-text" style="padding-right:16px">643</div><div data-line-number="644" class="child-of-line-561 child-of-line-624 react-line-number react-code-text" style="padding-right:16px">644</div><div data-line-number="645" class="child-of-line-561 child-of-line-624 react-line-number react-code-text" style="padding-right:16px">645</div><div data-line-number="646" class="child-of-line-561 child-of-line-624 react-line-number react-code-text" style="padding-right:16px">646</div><div data-line-number="647" class="child-of-line-561 child-of-line-624 react-line-number react-code-text" style="padding-right:16px">647</div><div data-line-number="648" class="child-of-line-561 child-of-line-624 react-line-number react-code-text" style="padding-right:16px">648</div><div data-line-number="649" class="child-of-line-561 child-of-line-624 react-line-number react-code-text" style="padding-right:16px">649</div><div data-line-number="650" class="child-of-line-561 child-of-line-624 react-line-number react-code-text" style="padding-right:16px">650</div><div data-line-number="651" class="child-of-line-561 child-of-line-624 react-line-number react-code-text" style="padding-right:16px">651</div><div data-line-number="652" class="child-of-line-561 child-of-line-624 react-line-number react-code-text" style="padding-right:16px">652</div><div data-line-number="653" class="child-of-line-561 child-of-line-624 react-line-number react-code-text" style="padding-right:16px">653</div><div data-line-number="654" class="child-of-line-561 child-of-line-624 react-line-number react-code-text" style="padding-right:16px">654</div><div data-line-number="655" class="child-of-line-561 child-of-line-624 react-line-number react-code-text" style="padding-right:16px">655</div><div data-line-number="656" class="child-of-line-561 child-of-line-624 react-line-number react-code-text" style="padding-right:16px">656</div><div data-line-number="657" class="child-of-line-561 child-of-line-624 react-line-number react-code-text" style="padding-right:16px">657</div><div data-line-number="658" class="child-of-line-561 child-of-line-624 react-line-number react-code-text" style="padding-right:16px">658</div><div data-line-number="659" class="child-of-line-561 child-of-line-624 react-line-number react-code-text" style="padding-right:16px">659</div><div data-line-number="660" class="child-of-line-561 child-of-line-624 react-line-number react-code-text" style="padding-right:16px">660</div><div data-line-number="661" class="child-of-line-561 child-of-line-624 react-line-number react-code-text" style="padding-right:16px">661</div><div data-line-number="662" class="child-of-line-561 child-of-line-624 react-line-number react-code-text" style="padding-right:16px">662</div><div data-line-number="663" class="child-of-line-561 child-of-line-624 react-line-number react-code-text" style="padding-right:16px">663</div><div data-line-number="664" class="child-of-line-561 child-of-line-624 react-line-number react-code-text" style="padding-right:16px">664</div><div data-line-number="665" class="child-of-line-561 child-of-line-624 react-line-number react-code-text" style="padding-right:16px">665</div><div data-line-number="666" class="child-of-line-561 child-of-line-624 react-line-number react-code-text" style="padding-right:16px">666</div><div data-line-number="667" class="react-line-number react-code-text" style="padding-right:16px">667</div><div data-line-number="668" class="react-line-number react-code-text" style="padding-right:16px">668</div><div data-line-number="669" class="react-line-number react-code-text" style="padding-right:16px">669</div><div data-line-number="670" class="react-line-number react-code-text" style="padding-right:16px">670</div><div data-line-number="671" class="react-line-number react-code-text" style="padding-right:16px">671<span class="Box-sc-g0xbh4-0 cJGaMs"><div aria-label="Collapse code section" role="button" class="Box-sc-g0xbh4-0 iGLarr"><svg aria-hidden="true" focusable="false" class="Octicon-sc-9kayk9-0" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path d="M12.78 5.22a.749.749 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.06 0L3.22 6.28a.749.749 0 1 1 1.06-1.06L8 8.939l3.72-3.719a.749.749 0 0 1 1.06 0Z"></path></svg></div></span></div><div data-line-number="672" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">672</div><div data-line-number="673" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">673</div><div data-line-number="674" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">674</div><div data-line-number="675" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">675</div><div data-line-number="676" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">676</div><div data-line-number="677" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">677</div><div data-line-number="678" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">678</div><div data-line-number="679" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">679</div><div data-line-number="680" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">680</div><div data-line-number="681" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">681</div><div data-line-number="682" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">682</div><div data-line-number="683" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">683</div><div data-line-number="684" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">684</div><div data-line-number="685" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">685</div><div data-line-number="686" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">686</div><div data-line-number="687" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">687</div><div data-line-number="688" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">688</div><div data-line-number="689" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">689</div><div data-line-number="690" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">690</div><div data-line-number="691" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">691</div><div data-line-number="692" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">692</div><div data-line-number="693" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">693</div><div data-line-number="694" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">694</div><div data-line-number="695" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">695</div><div data-line-number="696" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">696</div><div data-line-number="697" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">697</div><div data-line-number="698" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">698</div><div data-line-number="699" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">699</div><div data-line-number="700" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">700</div><div data-line-number="701" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">701</div><div data-line-number="702" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">702</div><div data-line-number="703" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">703</div><div data-line-number="704" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">704</div><div data-line-number="705" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">705</div><div data-line-number="706" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">706</div><div data-line-number="707" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">707</div><div data-line-number="708" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">708</div><div data-line-number="709" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">709</div><div data-line-number="710" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">710</div><div data-line-number="711" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">711</div><div data-line-number="712" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">712</div><div data-line-number="713" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">713</div><div data-line-number="714" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">714</div><div data-line-number="715" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">715</div><div data-line-number="716" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">716</div><div data-line-number="717" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">717</div><div data-line-number="718" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">718</div><div data-line-number="719" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">719</div><div data-line-number="720" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">720</div><div data-line-number="721" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">721</div><div data-line-number="722" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">722</div><div data-line-number="723" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">723</div><div data-line-number="724" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">724</div><div data-line-number="725" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">725</div><div data-line-number="726" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">726</div><div data-line-number="727" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">727</div><div data-line-number="728" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">728</div><div data-line-number="729" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">729</div><div data-line-number="730" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">730</div><div data-line-number="731" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">731</div><div data-line-number="732" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">732</div><div data-line-number="733" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">733</div><div data-line-number="734" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">734</div><div data-line-number="735" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">735</div><div data-line-number="736" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">736</div><div data-line-number="737" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">737</div><div data-line-number="738" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">738</div><div data-line-number="739" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">739</div><div data-line-number="740" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">740</div><div data-line-number="741" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">741</div><div data-line-number="742" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">742</div><div data-line-number="743" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">743</div><div data-line-number="744" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">744</div><div data-line-number="745" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">745</div><div data-line-number="746" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">746</div><div data-line-number="747" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">747</div><div data-line-number="748" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">748</div><div data-line-number="749" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">749</div><div data-line-number="750" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">750</div><div data-line-number="751" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">751</div><div data-line-number="752" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">752</div><div data-line-number="753" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">753</div><div data-line-number="754" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">754</div><div data-line-number="755" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">755</div><div data-line-number="756" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">756</div><div data-line-number="757" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">757</div><div data-line-number="758" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">758</div><div data-line-number="759" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">759</div><div data-line-number="760" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">760</div><div data-line-number="761" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">761</div><div data-line-number="762" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">762</div><div data-line-number="763" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">763</div><div data-line-number="764" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">764</div><div data-line-number="765" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">765</div><div data-line-number="766" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">766</div><div data-line-number="767" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">767</div><div data-line-number="768" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">768</div><div data-line-number="769" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">769</div><div data-line-number="770" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">770</div><div data-line-number="771" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">771</div><div data-line-number="772" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">772</div><div data-line-number="773" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">773</div><div data-line-number="774" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">774</div><div data-line-number="775" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">775</div><div data-line-number="776" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">776</div><div data-line-number="777" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">777</div><div data-line-number="778" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">778</div><div data-line-number="779" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">779</div><div data-line-number="780" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">780</div><div data-line-number="781" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">781</div><div data-line-number="782" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">782</div><div data-line-number="783" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">783</div><div data-line-number="784" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">784</div><div data-line-number="785" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">785</div><div data-line-number="786" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">786</div><div data-line-number="787" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">787</div><div data-line-number="788" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">788</div><div data-line-number="789" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">789</div><div data-line-number="790" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">790</div><div data-line-number="791" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">791</div><div data-line-number="792" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">792</div><div data-line-number="793" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">793</div><div data-line-number="794" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">794</div><div data-line-number="795" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">795</div><div data-line-number="796" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">796</div><div data-line-number="797" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">797</div><div data-line-number="798" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">798</div><div data-line-number="799" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">799</div><div data-line-number="800" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">800</div><div data-line-number="801" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">801</div><div data-line-number="802" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">802</div><div data-line-number="803" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">803</div><div data-line-number="804" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">804</div><div data-line-number="805" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">805</div><div data-line-number="806" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">806<span class="Box-sc-g0xbh4-0 cJGaMs"><div aria-label="Collapse code section" role="button" class="Box-sc-g0xbh4-0 iGLarr"><svg aria-hidden="true" focusable="false" class="Octicon-sc-9kayk9-0" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path d="M12.78 5.22a.749.749 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.06 0L3.22 6.28a.749.749 0 1 1 1.06-1.06L8 8.939l3.72-3.719a.749.749 0 0 1 1.06 0Z"></path></svg></div></span></div><div data-line-number="807" class="child-of-line-670 child-of-line-805 react-line-number react-code-text" style="padding-right:16px">807</div><div data-line-number="808" class="child-of-line-670 child-of-line-805 react-line-number react-code-text" style="padding-right:16px">808</div><div data-line-number="809" class="child-of-line-670 child-of-line-805 react-line-number react-code-text" style="padding-right:16px">809</div><div data-line-number="810" class="child-of-line-670 child-of-line-805 react-line-number react-code-text" style="padding-right:16px">810</div><div data-line-number="811" class="child-of-line-670 child-of-line-805 react-line-number react-code-text" style="padding-right:16px">811</div><div data-line-number="812" class="child-of-line-670 child-of-line-805 react-line-number react-code-text" style="padding-right:16px">812</div><div data-line-number="813" class="child-of-line-670 child-of-line-805 react-line-number react-code-text" style="padding-right:16px">813</div><div data-line-number="814" class="child-of-line-670 child-of-line-805 react-line-number react-code-text" style="padding-right:16px">814</div><div data-line-number="815" class="child-of-line-670 child-of-line-805 react-line-number react-code-text" style="padding-right:16px">815</div><div data-line-number="816" class="child-of-line-670 child-of-line-805 react-line-number react-code-text" style="padding-right:16px">816</div><div data-line-number="817" class="child-of-line-670 child-of-line-805 react-line-number react-code-text" style="padding-right:16px">817</div><div data-line-number="818" class="child-of-line-670 child-of-line-805 react-line-number react-code-text" style="padding-right:16px">818</div><div data-line-number="819" class="child-of-line-670 child-of-line-805 react-line-number react-code-text" style="padding-right:16px">819</div><div data-line-number="820" class="child-of-line-670 child-of-line-805 react-line-number react-code-text" style="padding-right:16px">820</div><div data-line-number="821" class="child-of-line-670 child-of-line-805 react-line-number react-code-text" style="padding-right:16px">821</div><div data-line-number="822" class="child-of-line-670 child-of-line-805 react-line-number react-code-text" style="padding-right:16px">822</div><div data-line-number="823" class="child-of-line-670 child-of-line-805 react-line-number react-code-text" style="padding-right:16px">823</div><div data-line-number="824" class="child-of-line-670 child-of-line-805 react-line-number react-code-text" style="padding-right:16px">824</div><div data-line-number="825" class="child-of-line-670 child-of-line-805 react-line-number react-code-text" style="padding-right:16px">825</div><div data-line-number="826" class="child-of-line-670 child-of-line-805 react-line-number react-code-text" style="padding-right:16px">826</div><div data-line-number="827" class="child-of-line-670 child-of-line-805 react-line-number react-code-text" style="padding-right:16px">827</div><div data-line-number="828" class="child-of-line-670 child-of-line-805 react-line-number react-code-text" style="padding-right:16px">828</div><div data-line-number="829" class="child-of-line-670 child-of-line-805 react-line-number react-code-text" style="padding-right:16px">829</div><div data-line-number="830" class="child-of-line-670 child-of-line-805 react-line-number react-code-text" style="padding-right:16px">830</div><div data-line-number="831" class="child-of-line-670 child-of-line-805 react-line-number react-code-text" style="padding-right:16px">831</div><div data-line-number="832" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">832</div><div data-line-number="833" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">833</div><div data-line-number="834" class="child-of-line-670 react-line-number react-code-text" style="padding-right:16px">834<span class="Box-sc-g0xbh4-0 cJGaMs"><div aria-label="Collapse code section" role="button" class="Box-sc-g0xbh4-0 iGLarr"><svg aria-hidden="true" focusable="false" class="Octicon-sc-9kayk9-0" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path d="M12.78 5.22a.749.749 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.06 0L3.22 6.28a.749.749 0 1 1 1.06-1.06L8 8.939l3.72-3.719a.749.749 0 0 1 1.06 0Z"></path></svg></div></span></div><div data-line-number="835" class="child-of-line-670 child-of-line-833 react-line-number react-code-text" style="padding-right:16px">835</div><div data-line-number="836" class="child-of-line-670 child-of-line-833 react-line-number react-code-text" style="padding-right:16px">836</div><div data-line-number="837" class="child-of-line-670 child-of-line-833 react-line-number react-code-text" style="padding-right:16px">837</div><div data-line-number="838" class="child-of-line-670 child-of-line-833 react-line-number react-code-text" style="padding-right:16px">838</div><div data-line-number="839" class="child-of-line-670 child-of-line-833 react-line-number react-code-text" style="padding-right:16px">839</div><div data-line-number="840" class="child-of-line-670 child-of-line-833 react-line-number react-code-text" style="padding-right:16px">840</div><div data-line-number="841" class="react-line-number react-code-text" style="padding-right:16px">841</div><div data-line-number="842" class="react-line-number react-code-text" style="padding-right:16px">842</div><div data-line-number="843" class="react-line-number react-code-text" style="padding-right:16px">843</div><div data-line-number="844" class="react-line-number react-code-text" style="padding-right:16px">844</div><div data-line-number="845" class="react-line-number react-code-text" style="padding-right:16px">845<span class="Box-sc-g0xbh4-0 cJGaMs"><div aria-label="Collapse code section" role="button" class="Box-sc-g0xbh4-0 iGLarr"><svg aria-hidden="true" focusable="false" class="Octicon-sc-9kayk9-0" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path d="M12.78 5.22a.749.749 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.06 0L3.22 6.28a.749.749 0 1 1 1.06-1.06L8 8.939l3.72-3.719a.749.749 0 0 1 1.06 0Z"></path></svg></div></span></div><div data-line-number="846" class="child-of-line-844 react-line-number react-code-text" style="padding-right:16px">846</div><div data-line-number="847" class="child-of-line-844 react-line-number react-code-text" style="padding-right:16px">847</div><div data-line-number="848" class="child-of-line-844 react-line-number react-code-text" style="padding-right:16px">848</div><div data-line-number="849" class="child-of-line-844 react-line-number react-code-text" style="padding-right:16px">849</div><div data-line-number="850" class="child-of-line-844 react-line-number react-code-text" style="padding-right:16px">850</div><div data-line-number="851" class="child-of-line-844 react-line-number react-code-text" style="padding-right:16px">851</div><div data-line-number="852" class="child-of-line-844 react-line-number react-code-text" style="padding-right:16px">852</div><div data-line-number="853" class="child-of-line-844 react-line-number react-code-text" style="padding-right:16px">853</div><div data-line-number="854" class="child-of-line-844 react-line-number react-code-text" style="padding-right:16px">854</div><div data-line-number="855" class="child-of-line-844 react-line-number react-code-text" style="padding-right:16px">855</div><div data-line-number="856" class="child-of-line-844 react-line-number react-code-text" style="padding-right:16px">856</div><div data-line-number="857" class="child-of-line-844 react-line-number react-code-text" style="padding-right:16px">857</div><div data-line-number="858" class="child-of-line-844 react-line-number react-code-text" style="padding-right:16px">858</div><div data-line-number="859" class="child-of-line-844 react-line-number react-code-text" style="padding-right:16px">859</div><div data-line-number="860" class="child-of-line-844 react-line-number react-code-text" style="padding-right:16px">860</div><div data-line-number="861" class="child-of-line-844 react-line-number react-code-text" style="padding-right:16px">861</div><div data-line-number="862" class="child-of-line-844 react-line-number react-code-text" style="padding-right:16px">862</div><div data-line-number="863" class="child-of-line-844 react-line-number react-code-text" style="padding-right:16px">863</div><div data-line-number="864" class="child-of-line-844 react-line-number react-code-text" style="padding-right:16px">864</div><div data-line-number="865" class="child-of-line-844 react-line-number react-code-text" style="padding-right:16px">865</div><div data-line-number="866" class="child-of-line-844 react-line-number react-code-text" style="padding-right:16px">866</div><div data-line-number="867" class="child-of-line-844 react-line-number react-code-text" style="padding-right:16px">867</div><div data-line-number="868" class="child-of-line-844 react-line-number react-code-text" style="padding-right:16px">868</div><div data-line-number="869" class="child-of-line-844 react-line-number react-code-text" style="padding-right:16px">869</div><div data-line-number="870" class="child-of-line-844 react-line-number react-code-text" style="padding-right:16px">870</div><div data-line-number="871" class="child-of-line-844 react-line-number react-code-text" style="padding-right:16px">871</div><div data-line-number="872" class="child-of-line-844 react-line-number react-code-text" style="padding-right:16px">872</div><div data-line-number="873" class="child-of-line-844 react-line-number react-code-text" style="padding-right:16px">873</div><div data-line-number="874" class="child-of-line-844 react-line-number react-code-text" style="padding-right:16px">874</div><div data-line-number="875" class="child-of-line-844 react-line-number react-code-text" style="padding-right:16px">875</div><div data-line-number="876" class="child-of-line-844 react-line-number react-code-text" style="padding-right:16px">876</div><div data-line-number="877" class="child-of-line-844 react-line-number react-code-text" style="padding-right:16px">877</div><div data-line-number="878" class="child-of-line-844 react-line-number react-code-text" style="padding-right:16px">878</div><div data-line-number="879" class="child-of-line-844 react-line-number react-code-text" style="padding-right:16px">879</div><div data-line-number="880" class="child-of-line-844 react-line-number react-code-text" style="padding-right:16px">880</div><div data-line-number="881" class="child-of-line-844 react-line-number react-code-text" style="padding-right:16px">881</div><div data-line-number="882" class="child-of-line-844 react-line-number react-code-text" style="padding-right:16px">882</div><div data-line-number="883" class="child-of-line-844 react-line-number react-code-text" style="padding-right:16px">883</div><div data-line-number="884" class="child-of-line-844 react-line-number react-code-text" style="padding-right:16px">884</div><div data-line-number="885" class="child-of-line-844 react-line-number react-code-text" style="padding-right:16px">885</div><div data-line-number="886" class="child-of-line-844 react-line-number react-code-text" style="padding-right:16px">886</div><div data-line-number="887" class="child-of-line-844 react-line-number react-code-text" style="padding-right:16px">887</div><div data-line-number="888" class="child-of-line-844 react-line-number react-code-text" style="padding-right:16px">888</div><div data-line-number="889" class="child-of-line-844 react-line-number react-code-text" style="padding-right:16px">889</div><div data-line-number="890" class="child-of-line-844 react-line-number react-code-text" style="padding-right:16px">890</div><div data-line-number="891" class="child-of-line-844 react-line-number react-code-text" style="padding-right:16px">891<span class="Box-sc-g0xbh4-0 cJGaMs"><div aria-label="Collapse code section" role="button" class="Box-sc-g0xbh4-0 iGLarr"><svg aria-hidden="true" focusable="false" class="Octicon-sc-9kayk9-0" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path d="M12.78 5.22a.749.749 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.06 0L3.22 6.28a.749.749 0 1 1 1.06-1.06L8 8.939l3.72-3.719a.749.749 0 0 1 1.06 0Z"></path></svg></div></span></div><div data-line-number="892" class="child-of-line-844 child-of-line-890 react-line-number react-code-text" style="padding-right:16px">892</div><div data-line-number="893" class="child-of-line-844 child-of-line-890 react-line-number react-code-text" style="padding-right:16px">893</div><div data-line-number="894" class="child-of-line-844 child-of-line-890 react-line-number react-code-text" style="padding-right:16px">894</div><div data-line-number="895" class="child-of-line-844 child-of-line-890 react-line-number react-code-text" style="padding-right:16px">895</div><div data-line-number="896" class="child-of-line-844 child-of-line-890 react-line-number react-code-text" style="padding-right:16px">896</div><div data-line-number="897" class="child-of-line-844 child-of-line-890 react-line-number react-code-text" style="padding-right:16px">897</div><div data-line-number="898" class="child-of-line-844 child-of-line-890 react-line-number react-code-text" style="padding-right:16px">898</div><div data-line-number="899" class="child-of-line-844 child-of-line-890 react-line-number react-code-text" style="padding-right:16px">899</div><div data-line-number="900" class="child-of-line-844 child-of-line-890 react-line-number react-code-text" style="padding-right:16px">900</div><div data-line-number="901" class="child-of-line-844 child-of-line-890 react-line-number react-code-text" style="padding-right:16px">901</div><div data-line-number="902" class="child-of-line-844 child-of-line-890 react-line-number react-code-text" style="padding-right:16px">902</div><div data-line-number="903" class="child-of-line-844 child-of-line-890 react-line-number react-code-text" style="padding-right:16px">903</div><div data-line-number="904" class="child-of-line-844 child-of-line-890 react-line-number react-code-text" style="padding-right:16px">904</div><div data-line-number="905" class="child-of-line-844 child-of-line-890 react-line-number react-code-text" style="padding-right:16px">905</div><div data-line-number="906" class="child-of-line-844 child-of-line-890 react-line-number react-code-text" style="padding-right:16px">906</div><div data-line-number="907" class="child-of-line-844 child-of-line-890 react-line-number react-code-text" style="padding-right:16px">907</div><div data-line-number="908" class="child-of-line-844 child-of-line-890 react-line-number react-code-text" style="padding-right:16px">908</div><div data-line-number="909" class="child-of-line-844 child-of-line-890 react-line-number react-code-text" style="padding-right:16px">909</div><div data-line-number="910" class="child-of-line-844 child-of-line-890 react-line-number react-code-text" style="padding-right:16px">910</div><div data-line-number="911" class="child-of-line-844 child-of-line-890 react-line-number react-code-text" style="padding-right:16px">911</div><div data-line-number="912" class="child-of-line-844 child-of-line-890 react-line-number react-code-text" style="padding-right:16px">912</div><div data-line-number="913" class="child-of-line-844 child-of-line-890 react-line-number react-code-text" style="padding-right:16px">913</div><div data-line-number="914" class="child-of-line-844 child-of-line-890 react-line-number react-code-text" style="padding-right:16px">914</div><div data-line-number="915" class="child-of-line-844 child-of-line-890 react-line-number react-code-text" style="padding-right:16px">915</div><div data-line-number="916" class="child-of-line-844 child-of-line-890 react-line-number react-code-text" style="padding-right:16px">916</div><div data-line-number="917" class="child-of-line-844 child-of-line-890 react-line-number react-code-text" style="padding-right:16px">917</div><div data-line-number="918" class="child-of-line-844 child-of-line-890 react-line-number react-code-text" style="padding-right:16px">918</div><div data-line-number="919" class="child-of-line-844 child-of-line-890 react-line-number react-code-text" style="padding-right:16px">919</div><div data-line-number="920" class="child-of-line-844 child-of-line-890 react-line-number react-code-text" style="padding-right:16px">920</div><div data-line-number="921" class="child-of-line-844 child-of-line-890 react-line-number react-code-text" style="padding-right:16px">921</div><div data-line-number="922" class="child-of-line-844 child-of-line-890 react-line-number react-code-text" style="padding-right:16px">922</div><div data-line-number="923" class="child-of-line-844 child-of-line-890 react-line-number react-code-text" style="padding-right:16px">923</div><div data-line-number="924" class="child-of-line-844 child-of-line-890 react-line-number react-code-text" style="padding-right:16px">924</div><div data-line-number="925" class="child-of-line-844 child-of-line-890 react-line-number react-code-text" style="padding-right:16px">925</div><div data-line-number="926" class="child-of-line-844 child-of-line-890 react-line-number react-code-text" style="padding-right:16px">926</div><div data-line-number="927" class="child-of-line-844 child-of-line-890 react-line-number react-code-text" style="padding-right:16px">927</div><div data-line-number="928" class="child-of-line-844 child-of-line-890 react-line-number react-code-text" style="padding-right:16px">928</div><div data-line-number="929" class="child-of-line-844 child-of-line-890 react-line-number react-code-text" style="padding-right:16px">929</div><div data-line-number="930" class="react-line-number react-code-text" style="padding-right:16px">930</div><div data-line-number="931" class="react-line-number react-code-text" style="padding-right:16px">931</div><div data-line-number="932" class="react-line-number react-code-text" style="padding-right:16px">932</div><div data-line-number="933" class="react-line-number react-code-text" style="padding-right:16px">933</div><div data-line-number="934" class="react-line-number react-code-text" style="padding-right:16px">934<span class="Box-sc-g0xbh4-0 cJGaMs"><div aria-label="Collapse code section" role="button" class="Box-sc-g0xbh4-0 iGLarr"><svg aria-hidden="true" focusable="false" class="Octicon-sc-9kayk9-0" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:text-bottom;overflow:visible"><path d="M12.78 5.22a.749.749 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.06 0L3.22 6.28a.749.749 0 1 1 1.06-1.06L8 8.939l3.72-3.719a.749.749 0 0 1 1.06 0Z"></path></svg></div></span></div><div data-line-number="935" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">935</div><div data-line-number="936" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">936</div><div data-line-number="937" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">937</div><div data-line-number="938" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">938</div><div data-line-number="939" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">939</div><div data-line-number="940" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">940</div><div data-line-number="941" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">941</div><div data-line-number="942" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">942</div><div data-line-number="943" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">943</div><div data-line-number="944" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">944</div><div data-line-number="945" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">945</div><div data-line-number="946" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">946</div><div data-line-number="947" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">947</div><div data-line-number="948" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">948</div><div data-line-number="949" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">949</div><div data-line-number="950" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">950</div><div data-line-number="951" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">951</div><div data-line-number="952" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">952</div><div data-line-number="953" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">953</div><div data-line-number="954" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">954</div><div data-line-number="955" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">955</div><div data-line-number="956" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">956</div><div data-line-number="957" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">957</div><div data-line-number="958" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">958</div><div data-line-number="959" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">959</div><div data-line-number="960" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">960</div><div data-line-number="961" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">961</div><div data-line-number="962" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">962</div><div data-line-number="963" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">963</div><div data-line-number="964" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">964</div><div data-line-number="965" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">965</div><div data-line-number="966" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">966</div><div data-line-number="967" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">967</div><div data-line-number="968" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">968</div><div data-line-number="969" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">969</div><div data-line-number="970" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">970</div><div data-line-number="971" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">971</div><div data-line-number="972" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">972</div><div data-line-number="973" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">973</div><div data-line-number="974" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">974</div><div data-line-number="975" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">975</div><div data-line-number="976" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">976</div><div data-line-number="977" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">977</div><div data-line-number="978" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">978</div><div data-line-number="979" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">979</div><div data-line-number="980" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">980</div><div data-line-number="981" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">981</div><div data-line-number="982" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">982</div><div data-line-number="983" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">983</div><div data-line-number="984" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">984</div><div data-line-number="985" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">985</div><div data-line-number="986" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">986</div><div data-line-number="987" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">987</div><div data-line-number="988" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">988</div><div data-line-number="989" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">989</div><div data-line-number="990" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">990</div><div data-line-number="991" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">991</div><div data-line-number="992" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">992</div><div data-line-number="993" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">993</div><div data-line-number="994" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">994</div><div data-line-number="995" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">995</div><div data-line-number="996" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">996</div><div data-line-number="997" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">997</div><div data-line-number="998" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">998</div><div data-line-number="999" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">999</div><div data-line-number="1000" class="child-of-line-933 react-line-number react-code-text" style="padding-right:16px">1000</div></div><div class="react-code-lines"><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC1" class="react-file-line html-div" data-testid="code-cell" data-line-number="1" style="position:relative"><span class="pl-c"># Copyright 2015 The TensorFlow Authors. All Rights Reserved.</span></div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC2" class="react-file-line html-div" data-testid="code-cell" data-line-number="2" style="position:relative"><span class="pl-c">#</span></div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC3" class="react-file-line html-div" data-testid="code-cell" data-line-number="3" style="position:relative"><span class="pl-c"># Licensed under the Apache License, Version 2.0 (the "License");</span></div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC4" class="react-file-line html-div" data-testid="code-cell" data-line-number="4" style="position:relative"><span class="pl-c"># you may not use this file except in compliance with the License.</span></div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC5" class="react-file-line html-div" data-testid="code-cell" data-line-number="5" style="position:relative"><span class="pl-c"># You may obtain a copy of the License at</span></div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC6" class="react-file-line html-div" data-testid="code-cell" data-line-number="6" style="position:relative"><span class="pl-c">#</span></div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC7" class="react-file-line html-div" data-testid="code-cell" data-line-number="7" style="position:relative"><span class="pl-c"># http://www.apache.org/licenses/LICENSE-2.0</span></div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC8" class="react-file-line html-div" data-testid="code-cell" data-line-number="8" style="position:relative"><span class="pl-c">#</span></div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC9" class="react-file-line html-div" data-testid="code-cell" data-line-number="9" style="position:relative"><span class="pl-c"># Unless required by applicable law or agreed to in writing, software</span></div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC10" class="react-file-line html-div" data-testid="code-cell" data-line-number="10" style="position:relative"><span class="pl-c"># distributed under the License is distributed on an "AS IS" BASIS,</span></div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC11" class="react-file-line html-div" data-testid="code-cell" data-line-number="11" style="position:relative"><span class="pl-c"># WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC12" class="react-file-line html-div" data-testid="code-cell" data-line-number="12" style="position:relative"><span class="pl-c"># See the License for the specific language governing permissions and</span></div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC13" class="react-file-line html-div" data-testid="code-cell" data-line-number="13" style="position:relative"><span class="pl-c"># limitations under the License.</span></div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC14" class="react-file-line html-div" data-testid="code-cell" data-line-number="14" style="position:relative"><span class="pl-c"># ==============================================================================</span></div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC15" class="react-file-line html-div" data-testid="code-cell" data-line-number="15" style="position:relative"> </div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC16" class="react-file-line html-div" data-testid="code-cell" data-line-number="16" style="position:relative"><span class="pl-s">"""Built-in loss functions."""</span></div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC17" class="react-file-line html-div" data-testid="code-cell" data-line-number="17" style="position:relative"> </div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC18" class="react-file-line html-div" data-testid="code-cell" data-line-number="18" style="position:relative"> </div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC19" class="react-file-line html-div" data-testid="code-cell" data-line-number="19" style="position:relative"><span class="pl-k">import</span> <span class="pl-s1">abc</span></div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC20" class="react-file-line html-div" data-testid="code-cell" data-line-number="20" style="position:relative"><span class="pl-k">import</span> <span class="pl-s1">functools</span></div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC21" class="react-file-line html-div" data-testid="code-cell" data-line-number="21" style="position:relative"><span class="pl-k">import</span> <span class="pl-s1">warnings</span></div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC22" class="react-file-line html-div" data-testid="code-cell" data-line-number="22" style="position:relative"> </div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC23" class="react-file-line html-div" data-testid="code-cell" data-line-number="23" style="position:relative"><span class="pl-k">import</span> <span class="pl-s1">tensorflow</span>.<span class="pl-s1">compat</span>.<span class="pl-s1">v2</span> <span class="pl-k">as</span> <span class="pl-s1">tf</span></div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC24" class="react-file-line html-div" data-testid="code-cell" data-line-number="24" style="position:relative"> </div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC25" class="react-file-line html-div" data-testid="code-cell" data-line-number="25" style="position:relative"><span class="pl-k">from</span> <span class="pl-s1">tf_keras</span> <span class="pl-k">import</span> <span class="pl-s1">backend</span></div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC26" class="react-file-line html-div" data-testid="code-cell" data-line-number="26" style="position:relative"><span class="pl-k">from</span> <span class="pl-s1">tf_keras</span>.<span class="pl-s1">saving</span> <span class="pl-k">import</span> <span class="pl-s1">saving_lib</span></div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC27" class="react-file-line html-div" data-testid="code-cell" data-line-number="27" style="position:relative"><span class="pl-k">from</span> <span class="pl-s1">tf_keras</span>.<span class="pl-s1">saving</span>.<span class="pl-s1">legacy</span> <span class="pl-k">import</span> <span class="pl-s1">serialization</span> <span class="pl-k">as</span> <span class="pl-s1">legacy_serialization</span></div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC28" class="react-file-line html-div" data-testid="code-cell" data-line-number="28" style="position:relative"><span class="pl-k">from</span> <span class="pl-s1">tf_keras</span>.<span class="pl-s1">saving</span>.<span class="pl-s1">serialization_lib</span> <span class="pl-k">import</span> <span class="pl-s1">deserialize_keras_object</span></div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC29" class="react-file-line html-div" data-testid="code-cell" data-line-number="29" style="position:relative"><span class="pl-k">from</span> <span class="pl-s1">tf_keras</span>.<span class="pl-s1">saving</span>.<span class="pl-s1">serialization_lib</span> <span class="pl-k">import</span> <span class="pl-s1">serialize_keras_object</span></div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC30" class="react-file-line html-div" data-testid="code-cell" data-line-number="30" style="position:relative"><span class="pl-k">from</span> <span class="pl-s1">tf_keras</span>.<span class="pl-s1">utils</span> <span class="pl-k">import</span> <span class="pl-s1">losses_utils</span></div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC31" class="react-file-line html-div" data-testid="code-cell" data-line-number="31" style="position:relative"><span class="pl-k">from</span> <span class="pl-s1">tf_keras</span>.<span class="pl-s1">utils</span> <span class="pl-k">import</span> <span class="pl-s1">tf_utils</span></div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC32" class="react-file-line html-div" data-testid="code-cell" data-line-number="32" style="position:relative"> </div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC33" class="react-file-line html-div" data-testid="code-cell" data-line-number="33" style="position:relative"><span class="pl-c"># isort: off</span></div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC34" class="react-file-line html-div" data-testid="code-cell" data-line-number="34" style="position:relative"><span class="pl-k">from</span> <span class="pl-s1">tensorflow</span>.<span class="pl-s1">python</span>.<span class="pl-s1">ops</span>.<span class="pl-s1">ragged</span> <span class="pl-k">import</span> <span class="pl-s1">ragged_map_ops</span></div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC35" class="react-file-line html-div" data-testid="code-cell" data-line-number="35" style="position:relative"><span class="pl-k">from</span> <span class="pl-s1">tensorflow</span>.<span class="pl-s1">python</span>.<span class="pl-s1">ops</span>.<span class="pl-s1">ragged</span> <span class="pl-k">import</span> <span class="pl-s1">ragged_util</span></div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC36" class="react-file-line html-div" data-testid="code-cell" data-line-number="36" style="position:relative"><span class="pl-k">from</span> <span class="pl-s1">tensorflow</span>.<span class="pl-s1">python</span>.<span class="pl-s1">util</span> <span class="pl-k">import</span> <span class="pl-s1">dispatch</span></div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC37" class="react-file-line html-div" data-testid="code-cell" data-line-number="37" style="position:relative"><span class="pl-k">from</span> <span class="pl-s1">tensorflow</span>.<span class="pl-s1">python</span>.<span class="pl-s1">util</span>.<span class="pl-s1">tf_export</span> <span class="pl-k">import</span> <span class="pl-s1">keras_export</span></div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC38" class="react-file-line html-div" data-testid="code-cell" data-line-number="38" style="position:relative"><span class="pl-k">from</span> <span class="pl-s1">tensorflow</span>.<span class="pl-s1">tools</span>.<span class="pl-s1">docs</span> <span class="pl-k">import</span> <span class="pl-s1">doc_controls</span></div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC39" class="react-file-line html-div" data-testid="code-cell" data-line-number="39" style="position:relative"> </div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC40" class="react-file-line html-div" data-testid="code-cell" data-line-number="40" style="position:relative"> </div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC41" class="react-file-line html-div" data-testid="code-cell" data-line-number="41" style="position:relative"><span class="pl-en">@<span class="pl-en">keras_export</span>(<span class="pl-s">"keras.losses.Loss"</span>)</span></div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC42" class="react-file-line html-div" data-testid="code-cell" data-line-number="42" style="position:relative"><span class="pl-k">class</span> <span class="pl-v">Loss</span>:</div></div></div><div class="child-of-line-41 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC43" class="react-file-line html-div" data-testid="code-cell" data-line-number="43" style="position:relative"> <span class="pl-s">"""Loss base class.</span></div></div></div><div class="child-of-line-41 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC44" class="react-file-line html-div" data-testid="code-cell" data-line-number="44" style="position:relative"> </div></div></div><div class="child-of-line-41 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC45" class="react-file-line html-div" data-testid="code-cell" data-line-number="45" style="position:relative"><span class="pl-s"> To be implemented by subclasses:</span></div></div></div><div class="child-of-line-41 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC46" class="react-file-line html-div" data-testid="code-cell" data-line-number="46" style="position:relative"><span class="pl-s"> * `call()`: Contains the logic for loss calculation using `y_true`,</span></div></div></div><div class="child-of-line-41 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC47" class="react-file-line html-div" data-testid="code-cell" data-line-number="47" style="position:relative"><span class="pl-s"> `y_pred`.</span></div></div></div><div class="child-of-line-41 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC48" class="react-file-line html-div" data-testid="code-cell" data-line-number="48" style="position:relative"> </div></div></div><div class="child-of-line-41 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC49" class="react-file-line html-div" data-testid="code-cell" data-line-number="49" style="position:relative"><span class="pl-s"> Example subclass implementation:</span></div></div></div><div class="child-of-line-41 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC50" class="react-file-line html-div" data-testid="code-cell" data-line-number="50" style="position:relative"> </div></div></div><div class="child-of-line-41 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC51" class="react-file-line html-div" data-testid="code-cell" data-line-number="51" style="position:relative"><span class="pl-s"> ```python</span></div></div></div><div class="child-of-line-41 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC52" class="react-file-line html-div" data-testid="code-cell" data-line-number="52" style="position:relative"><span class="pl-s"> class MeanSquaredError(Loss):</span></div></div></div><div class="child-of-line-41 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC53" class="react-file-line html-div" data-testid="code-cell" data-line-number="53" style="position:relative"> </div></div></div><div class="child-of-line-41 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC54" class="react-file-line html-div" data-testid="code-cell" data-line-number="54" style="position:relative"><span class="pl-s"> def call(self, y_true, y_pred):</span></div></div></div><div class="child-of-line-41 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC55" class="react-file-line html-div" data-testid="code-cell" data-line-number="55" style="position:relative"><span class="pl-s"> return tf.reduce_mean(tf.math.square(y_pred - y_true), axis=-1)</span></div></div></div><div class="child-of-line-41 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC56" class="react-file-line html-div" data-testid="code-cell" data-line-number="56" style="position:relative"><span class="pl-s"> ```</span></div></div></div><div class="child-of-line-41 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC57" class="react-file-line html-div" data-testid="code-cell" data-line-number="57" style="position:relative"> </div></div></div><div class="child-of-line-41 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC58" class="react-file-line html-div" data-testid="code-cell" data-line-number="58" style="position:relative"><span class="pl-s"> When using a Loss under a `tf.distribute.Strategy`, except passing it</span></div></div></div><div class="child-of-line-41 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC59" class="react-file-line html-div" data-testid="code-cell" data-line-number="59" style="position:relative"><span class="pl-s"> to `Model.compile()` for use by `Model.fit()`, please use reduction</span></div></div></div><div class="child-of-line-41 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC60" class="react-file-line html-div" data-testid="code-cell" data-line-number="60" style="position:relative"><span class="pl-s"> types 'SUM' or 'NONE', and reduce losses explicitly. Using 'AUTO' or</span></div></div></div><div class="child-of-line-41 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC61" class="react-file-line html-div" data-testid="code-cell" data-line-number="61" style="position:relative"><span class="pl-s"> 'SUM_OVER_BATCH_SIZE' will raise an error when calling the Loss object</span></div></div></div><div class="child-of-line-41 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC62" class="react-file-line html-div" data-testid="code-cell" data-line-number="62" style="position:relative"><span class="pl-s"> from a custom training loop or from user-defined code in `Layer.call()`.</span></div></div></div><div class="child-of-line-41 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC63" class="react-file-line html-div" data-testid="code-cell" data-line-number="63" style="position:relative"><span class="pl-s"> Please see this custom training</span></div></div></div><div class="child-of-line-41 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC64" class="react-file-line html-div" data-testid="code-cell" data-line-number="64" style="position:relative"><span class="pl-s"> [tutorial](https://www.tensorflow.org/tutorials/distribute/custom_training)</span></div></div></div><div class="child-of-line-41 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC65" class="react-file-line html-div" data-testid="code-cell" data-line-number="65" style="position:relative"><span class="pl-s"> for more details on this.</span></div></div></div><div class="child-of-line-41 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC66" class="react-file-line html-div" data-testid="code-cell" data-line-number="66" style="position:relative"><span class="pl-s"> """</span></div></div></div><div class="child-of-line-41 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC67" class="react-file-line html-div" data-testid="code-cell" data-line-number="67" style="position:relative"> </div></div></div><div class="child-of-line-41 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC68" class="react-file-line html-div" data-testid="code-cell" data-line-number="68" style="position:relative"> <span class="pl-k">def</span> <span class="pl-en">__init__</span>(<span class="pl-s1">self</span>, <span class="pl-s1">reduction</span><span class="pl-c1">=</span><span class="pl-s1">losses_utils</span>.<span class="pl-c1">ReductionV2</span>.<span class="pl-c1">AUTO</span>, <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-c1">None</span>):</div></div></div><div class="child-of-line-41 child-of-line-67 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC69" class="react-file-line html-div" data-testid="code-cell" data-line-number="69" style="position:relative"> <span class="pl-s">"""Initializes `Loss` class.</span></div></div></div><div class="child-of-line-41 child-of-line-67 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC70" class="react-file-line html-div" data-testid="code-cell" data-line-number="70" style="position:relative"> </div></div></div><div class="child-of-line-41 child-of-line-67 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC71" class="react-file-line html-div" data-testid="code-cell" data-line-number="71" style="position:relative"><span class="pl-s"> Args:</span></div></div></div><div class="child-of-line-41 child-of-line-67 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC72" class="react-file-line html-div" data-testid="code-cell" data-line-number="72" style="position:relative"><span class="pl-s"> reduction: Type of `tf.keras.losses.Reduction` to apply to</span></div></div></div><div class="child-of-line-41 child-of-line-67 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC73" class="react-file-line html-div" data-testid="code-cell" data-line-number="73" style="position:relative"><span class="pl-s"> loss. Default value is `AUTO`. `AUTO` indicates that the</span></div></div></div><div class="child-of-line-41 child-of-line-67 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC74" class="react-file-line html-div" data-testid="code-cell" data-line-number="74" style="position:relative"><span class="pl-s"> reduction option will be determined by the usage context. For</span></div></div></div><div class="child-of-line-41 child-of-line-67 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC75" class="react-file-line html-div" data-testid="code-cell" data-line-number="75" style="position:relative"><span class="pl-s"> almost all cases this defaults to `SUM_OVER_BATCH_SIZE`. When</span></div></div></div><div class="child-of-line-41 child-of-line-67 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC76" class="react-file-line html-div" data-testid="code-cell" data-line-number="76" style="position:relative"><span class="pl-s"> used under a `tf.distribute.Strategy`, except via</span></div></div></div><div class="child-of-line-41 child-of-line-67 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC77" class="react-file-line html-div" data-testid="code-cell" data-line-number="77" style="position:relative"><span class="pl-s"> `Model.compile()` and `Model.fit()`, using `AUTO` or</span></div></div></div><div class="child-of-line-41 child-of-line-67 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC78" class="react-file-line html-div" data-testid="code-cell" data-line-number="78" style="position:relative"><span class="pl-s"> `SUM_OVER_BATCH_SIZE` will raise an error. Please see this</span></div></div></div><div class="child-of-line-41 child-of-line-67 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC79" class="react-file-line html-div" data-testid="code-cell" data-line-number="79" style="position:relative"><span class="pl-s"> custom training [tutorial](</span></div></div></div><div class="child-of-line-41 child-of-line-67 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC80" class="react-file-line html-div" data-testid="code-cell" data-line-number="80" style="position:relative"><span class="pl-s"> https://www.tensorflow.org/tutorials/distribute/custom_training)</span></div></div></div><div class="child-of-line-41 child-of-line-67 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC81" class="react-file-line html-div" data-testid="code-cell" data-line-number="81" style="position:relative"><span class="pl-s"> for more details.</span></div></div></div><div class="child-of-line-41 child-of-line-67 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC82" class="react-file-line html-div" data-testid="code-cell" data-line-number="82" style="position:relative"><span class="pl-s"> name: Optional name for the instance.</span></div></div></div><div class="child-of-line-41 child-of-line-67 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC83" class="react-file-line html-div" data-testid="code-cell" data-line-number="83" style="position:relative"><span class="pl-s"> """</span></div></div></div><div class="child-of-line-41 child-of-line-67 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC84" class="react-file-line html-div" data-testid="code-cell" data-line-number="84" style="position:relative"> <span class="pl-s1">losses_utils</span>.<span class="pl-c1">ReductionV2</span>.<span class="pl-c1">validate</span>(<span class="pl-s1">reduction</span>)</div></div></div><div class="child-of-line-41 child-of-line-67 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC85" class="react-file-line html-div" data-testid="code-cell" data-line-number="85" style="position:relative"> <span class="pl-s1">self</span>.<span class="pl-c1">reduction</span> <span class="pl-c1">=</span> <span class="pl-s1">reduction</span></div></div></div><div class="child-of-line-41 child-of-line-67 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC86" class="react-file-line html-div" data-testid="code-cell" data-line-number="86" style="position:relative"> <span class="pl-s1">self</span>.<span class="pl-c1">name</span> <span class="pl-c1">=</span> <span class="pl-s1">name</span></div></div></div><div class="child-of-line-41 child-of-line-67 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC87" class="react-file-line html-div" data-testid="code-cell" data-line-number="87" style="position:relative"> <span class="pl-c"># SUM_OVER_BATCH is only allowed in losses managed by `fit` or</span></div></div></div><div class="child-of-line-41 child-of-line-67 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC88" class="react-file-line html-div" data-testid="code-cell" data-line-number="88" style="position:relative"> <span class="pl-c"># CannedEstimators.</span></div></div></div><div class="child-of-line-41 child-of-line-67 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC89" class="react-file-line html-div" data-testid="code-cell" data-line-number="89" style="position:relative"> <span class="pl-s1">self</span>.<span class="pl-c1">_allow_sum_over_batch_size</span> <span class="pl-c1">=</span> <span class="pl-c1">False</span></div></div></div><div class="child-of-line-41 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC90" class="react-file-line html-div" data-testid="code-cell" data-line-number="90" style="position:relative"> <span class="pl-s1">self</span>.<span class="pl-c1">_set_name_scope</span>()</div></div></div><div class="child-of-line-41 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC91" class="react-file-line html-div" data-testid="code-cell" data-line-number="91" style="position:relative"> </div></div></div><div class="child-of-line-41 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC92" class="react-file-line html-div" data-testid="code-cell" data-line-number="92" style="position:relative"> <span class="pl-k">def</span> <span class="pl-en">_set_name_scope</span>(<span class="pl-s1">self</span>):</div></div></div><div class="child-of-line-41 child-of-line-91 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC93" class="react-file-line html-div" data-testid="code-cell" data-line-number="93" style="position:relative"> <span class="pl-s">"""Creates a valid `name_scope` name."""</span></div></div></div><div class="child-of-line-41 child-of-line-91 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC94" class="react-file-line html-div" data-testid="code-cell" data-line-number="94" style="position:relative"> <span class="pl-k">if</span> <span class="pl-s1">self</span>.<span class="pl-c1">name</span> <span class="pl-c1">is</span> <span class="pl-c1">None</span>:</div></div></div><div class="child-of-line-41 child-of-line-91 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC95" class="react-file-line html-div" data-testid="code-cell" data-line-number="95" style="position:relative"> <span class="pl-s1">self</span>.<span class="pl-c1">_name_scope</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-c1">__class__</span>.<span class="pl-c1">__name__</span>.<span class="pl-c1">strip</span>(<span class="pl-s">"_"</span>)</div></div></div><div class="child-of-line-41 child-of-line-91 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC96" class="react-file-line html-div" data-testid="code-cell" data-line-number="96" style="position:relative"> <span class="pl-k">elif</span> <span class="pl-s1">self</span>.<span class="pl-c1">name</span> <span class="pl-c1">==</span> <span class="pl-s">"<lambda>"</span>:</div></div></div><div class="child-of-line-41 child-of-line-91 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC97" class="react-file-line html-div" data-testid="code-cell" data-line-number="97" style="position:relative"> <span class="pl-s1">self</span>.<span class="pl-c1">_name_scope</span> <span class="pl-c1">=</span> <span class="pl-s">"lambda"</span></div></div></div><div class="child-of-line-41 child-of-line-91 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC98" class="react-file-line html-div" data-testid="code-cell" data-line-number="98" style="position:relative"> <span class="pl-k">else</span>:</div></div></div><div class="child-of-line-41 child-of-line-91 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC99" class="react-file-line html-div" data-testid="code-cell" data-line-number="99" style="position:relative"> <span class="pl-c"># E.g. '_my_loss' => 'my_loss'</span></div></div></div><div class="child-of-line-41 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC100" class="react-file-line html-div" data-testid="code-cell" data-line-number="100" style="position:relative"> <span class="pl-s1">self</span>.<span class="pl-c1">_name_scope</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-c1">name</span>.<span class="pl-c1">strip</span>(<span class="pl-s">"_"</span>)</div></div></div><div class="child-of-line-41 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC101" class="react-file-line html-div" data-testid="code-cell" data-line-number="101" style="position:relative"> </div></div></div><div class="child-of-line-41 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC102" class="react-file-line html-div" data-testid="code-cell" data-line-number="102" style="position:relative"> <span class="pl-k">def</span> <span class="pl-en">__call__</span>(<span class="pl-s1">self</span>, <span class="pl-s1">y_true</span>, <span class="pl-s1">y_pred</span>, <span class="pl-s1">sample_weight</span><span class="pl-c1">=</span><span class="pl-c1">None</span>):</div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC103" class="react-file-line html-div" data-testid="code-cell" data-line-number="103" style="position:relative"> <span class="pl-s">"""Invokes the `Loss` instance.</span></div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC104" class="react-file-line html-div" data-testid="code-cell" data-line-number="104" style="position:relative"> </div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC105" class="react-file-line html-div" data-testid="code-cell" data-line-number="105" style="position:relative"><span class="pl-s"> Args:</span></div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC106" class="react-file-line html-div" data-testid="code-cell" data-line-number="106" style="position:relative"><span class="pl-s"> y_true: Ground truth values. shape = `[batch_size, d0, .. dN]`,</span></div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC107" class="react-file-line html-div" data-testid="code-cell" data-line-number="107" style="position:relative"><span class="pl-s"> except sparse loss functions such as sparse categorical</span></div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC108" class="react-file-line html-div" data-testid="code-cell" data-line-number="108" style="position:relative"><span class="pl-s"> crossentropy where shape = `[batch_size, d0, .. dN-1]`</span></div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC109" class="react-file-line html-div" data-testid="code-cell" data-line-number="109" style="position:relative"><span class="pl-s"> y_pred: The predicted values. shape = `[batch_size, d0, .. dN]`</span></div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC110" class="react-file-line html-div" data-testid="code-cell" data-line-number="110" style="position:relative"><span class="pl-s"> sample_weight: Optional `sample_weight` acts as a coefficient for</span></div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC111" class="react-file-line html-div" data-testid="code-cell" data-line-number="111" style="position:relative"><span class="pl-s"> the loss. If a scalar is provided, then the loss is simply</span></div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC112" class="react-file-line html-div" data-testid="code-cell" data-line-number="112" style="position:relative"><span class="pl-s"> scaled by the given value. If `sample_weight` is a tensor of</span></div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC113" class="react-file-line html-div" data-testid="code-cell" data-line-number="113" style="position:relative"><span class="pl-s"> size `[batch_size]`, then the total loss for each sample of the</span></div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC114" class="react-file-line html-div" data-testid="code-cell" data-line-number="114" style="position:relative"><span class="pl-s"> batch is rescaled by the corresponding element in the</span></div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC115" class="react-file-line html-div" data-testid="code-cell" data-line-number="115" style="position:relative"><span class="pl-s"> `sample_weight` vector. If the shape of `sample_weight` is</span></div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC116" class="react-file-line html-div" data-testid="code-cell" data-line-number="116" style="position:relative"><span class="pl-s"> `[batch_size, d0, .. dN-1]` (or can be broadcasted to this</span></div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC117" class="react-file-line html-div" data-testid="code-cell" data-line-number="117" style="position:relative"><span class="pl-s"> shape), then each loss element of `y_pred` is scaled by the</span></div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC118" class="react-file-line html-div" data-testid="code-cell" data-line-number="118" style="position:relative"><span class="pl-s"> corresponding value of `sample_weight`. (Note on`dN-1`: all loss</span></div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC119" class="react-file-line html-div" data-testid="code-cell" data-line-number="119" style="position:relative"><span class="pl-s"> functions reduce by 1 dimension, usually axis=-1.)</span></div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC120" class="react-file-line html-div" data-testid="code-cell" data-line-number="120" style="position:relative"> </div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC121" class="react-file-line html-div" data-testid="code-cell" data-line-number="121" style="position:relative"><span class="pl-s"> Returns:</span></div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC122" class="react-file-line html-div" data-testid="code-cell" data-line-number="122" style="position:relative"><span class="pl-s"> Weighted loss float `Tensor`. If `reduction` is `NONE`, this has</span></div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC123" class="react-file-line html-div" data-testid="code-cell" data-line-number="123" style="position:relative"><span class="pl-s"> shape `[batch_size, d0, .. dN-1]`; otherwise, it is scalar.</span></div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC124" class="react-file-line html-div" data-testid="code-cell" data-line-number="124" style="position:relative"><span class="pl-s"> (Note `dN-1` because all loss functions reduce by 1 dimension,</span></div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC125" class="react-file-line html-div" data-testid="code-cell" data-line-number="125" style="position:relative"><span class="pl-s"> usually axis=-1.)</span></div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC126" class="react-file-line html-div" data-testid="code-cell" data-line-number="126" style="position:relative"> </div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC127" class="react-file-line html-div" data-testid="code-cell" data-line-number="127" style="position:relative"><span class="pl-s"> Raises:</span></div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC128" class="react-file-line html-div" data-testid="code-cell" data-line-number="128" style="position:relative"><span class="pl-s"> ValueError: If the shape of `sample_weight` is invalid.</span></div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC129" class="react-file-line html-div" data-testid="code-cell" data-line-number="129" style="position:relative"><span class="pl-s"> """</span></div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC130" class="react-file-line html-div" data-testid="code-cell" data-line-number="130" style="position:relative"> <span class="pl-c"># If we are wrapping a lambda function strip '<>' from the name as it is</span></div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC131" class="react-file-line html-div" data-testid="code-cell" data-line-number="131" style="position:relative"> <span class="pl-c"># not accepted in scope name.</span></div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC132" class="react-file-line html-div" data-testid="code-cell" data-line-number="132" style="position:relative"> <span class="pl-s1">graph_ctx</span> <span class="pl-c1">=</span> <span class="pl-s1">tf_utils</span>.<span class="pl-c1">graph_context_for_symbolic_tensors</span>(</div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC133" class="react-file-line html-div" data-testid="code-cell" data-line-number="133" style="position:relative"> <span class="pl-s1">y_true</span>, <span class="pl-s1">y_pred</span>, <span class="pl-s1">sample_weight</span></div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC134" class="react-file-line html-div" data-testid="code-cell" data-line-number="134" style="position:relative"> )</div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC135" class="react-file-line html-div" data-testid="code-cell" data-line-number="135" style="position:relative"> <span class="pl-k">with</span> <span class="pl-s1">backend</span>.<span class="pl-c1">name_scope</span>(<span class="pl-s1">self</span>.<span class="pl-c1">_name_scope</span>), <span class="pl-s1">graph_ctx</span>:</div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC136" class="react-file-line html-div" data-testid="code-cell" data-line-number="136" style="position:relative"> <span class="pl-k">if</span> <span class="pl-s1">tf</span>.<span class="pl-c1">executing_eagerly</span>():</div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC137" class="react-file-line html-div" data-testid="code-cell" data-line-number="137" style="position:relative"> <span class="pl-s1">call_fn</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-c1">call</span></div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC138" class="react-file-line html-div" data-testid="code-cell" data-line-number="138" style="position:relative"> <span class="pl-k">else</span>:</div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC139" class="react-file-line html-div" data-testid="code-cell" data-line-number="139" style="position:relative"> <span class="pl-s1">call_fn</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-c1">__internal__</span>.<span class="pl-c1">autograph</span>.<span class="pl-c1">tf_convert</span>(</div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC140" class="react-file-line html-div" data-testid="code-cell" data-line-number="140" style="position:relative"> <span class="pl-s1">self</span>.<span class="pl-c1">call</span>, <span class="pl-s1">tf</span>.<span class="pl-c1">__internal__</span>.<span class="pl-c1">autograph</span>.<span class="pl-c1">control_status_ctx</span>()</div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC141" class="react-file-line html-div" data-testid="code-cell" data-line-number="141" style="position:relative"> )</div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC142" class="react-file-line html-div" data-testid="code-cell" data-line-number="142" style="position:relative"> </div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC143" class="react-file-line html-div" data-testid="code-cell" data-line-number="143" style="position:relative"> <span class="pl-s1">losses</span> <span class="pl-c1">=</span> <span class="pl-en">call_fn</span>(<span class="pl-s1">y_true</span>, <span class="pl-s1">y_pred</span>)</div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC144" class="react-file-line html-div" data-testid="code-cell" data-line-number="144" style="position:relative"> </div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC145" class="react-file-line html-div" data-testid="code-cell" data-line-number="145" style="position:relative"> <span class="pl-s1">in_mask</span> <span class="pl-c1">=</span> <span class="pl-s1">losses_utils</span>.<span class="pl-c1">get_mask</span>(<span class="pl-s1">y_pred</span>)</div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC146" class="react-file-line html-div" data-testid="code-cell" data-line-number="146" style="position:relative"> <span class="pl-s1">out_mask</span> <span class="pl-c1">=</span> <span class="pl-s1">losses_utils</span>.<span class="pl-c1">get_mask</span>(<span class="pl-s1">losses</span>)</div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC147" class="react-file-line html-div" data-testid="code-cell" data-line-number="147" style="position:relative"> </div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC148" class="react-file-line html-div" data-testid="code-cell" data-line-number="148" style="position:relative"> <span class="pl-k">if</span> <span class="pl-s1">in_mask</span> <span class="pl-c1"><span class="pl-c1">is</span> <span class="pl-c1">not</span></span> <span class="pl-c1">None</span> <span class="pl-c1">and</span> <span class="pl-s1">out_mask</span> <span class="pl-c1"><span class="pl-c1">is</span> <span class="pl-c1">not</span></span> <span class="pl-c1">None</span>:</div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC149" class="react-file-line html-div" data-testid="code-cell" data-line-number="149" style="position:relative"> <span class="pl-s1">mask</span> <span class="pl-c1">=</span> <span class="pl-s1">in_mask</span> <span class="pl-c1">&</span> <span class="pl-s1">out_mask</span></div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC150" class="react-file-line html-div" data-testid="code-cell" data-line-number="150" style="position:relative"> <span class="pl-k">elif</span> <span class="pl-s1">in_mask</span> <span class="pl-c1"><span class="pl-c1">is</span> <span class="pl-c1">not</span></span> <span class="pl-c1">None</span>:</div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC151" class="react-file-line html-div" data-testid="code-cell" data-line-number="151" style="position:relative"> <span class="pl-s1">mask</span> <span class="pl-c1">=</span> <span class="pl-s1">in_mask</span></div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC152" class="react-file-line html-div" data-testid="code-cell" data-line-number="152" style="position:relative"> <span class="pl-k">elif</span> <span class="pl-s1">out_mask</span> <span class="pl-c1"><span class="pl-c1">is</span> <span class="pl-c1">not</span></span> <span class="pl-c1">None</span>:</div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC153" class="react-file-line html-div" data-testid="code-cell" data-line-number="153" style="position:relative"> <span class="pl-s1">mask</span> <span class="pl-c1">=</span> <span class="pl-s1">out_mask</span></div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC154" class="react-file-line html-div" data-testid="code-cell" data-line-number="154" style="position:relative"> <span class="pl-k">else</span>:</div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC155" class="react-file-line html-div" data-testid="code-cell" data-line-number="155" style="position:relative"> <span class="pl-s1">mask</span> <span class="pl-c1">=</span> <span class="pl-c1">None</span></div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC156" class="react-file-line html-div" data-testid="code-cell" data-line-number="156" style="position:relative"> </div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC157" class="react-file-line html-div" data-testid="code-cell" data-line-number="157" style="position:relative"> <span class="pl-s1">reduction</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-c1">_get_reduction</span>()</div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC158" class="react-file-line html-div" data-testid="code-cell" data-line-number="158" style="position:relative"> <span class="pl-s1">sample_weight</span> <span class="pl-c1">=</span> <span class="pl-s1">losses_utils</span>.<span class="pl-c1">apply_valid_mask</span>(</div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC159" class="react-file-line html-div" data-testid="code-cell" data-line-number="159" style="position:relative"> <span class="pl-s1">losses</span>, <span class="pl-s1">sample_weight</span>, <span class="pl-s1">mask</span>, <span class="pl-s1">reduction</span></div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC160" class="react-file-line html-div" data-testid="code-cell" data-line-number="160" style="position:relative"> )</div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC161" class="react-file-line html-div" data-testid="code-cell" data-line-number="161" style="position:relative"> <span class="pl-k">return</span> <span class="pl-s1">losses_utils</span>.<span class="pl-c1">compute_weighted_loss</span>(</div></div></div><div class="child-of-line-41 child-of-line-101 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC162" class="react-file-line html-div" data-testid="code-cell" data-line-number="162" style="position:relative"> <span class="pl-s1">losses</span>, <span class="pl-s1">sample_weight</span>, <span class="pl-s1">reduction</span><span class="pl-c1">=</span><span class="pl-s1">reduction</span></div></div></div><div class="child-of-line-41 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC163" class="react-file-line html-div" data-testid="code-cell" data-line-number="163" style="position:relative"> )</div></div></div><div class="child-of-line-41 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC164" class="react-file-line html-div" data-testid="code-cell" data-line-number="164" style="position:relative"> </div></div></div><div class="child-of-line-41 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC165" class="react-file-line html-div" data-testid="code-cell" data-line-number="165" style="position:relative"> <span class="pl-en">@<span class="pl-s1">classmethod</span></span></div></div></div><div class="child-of-line-41 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC166" class="react-file-line html-div" data-testid="code-cell" data-line-number="166" style="position:relative"> <span class="pl-k">def</span> <span class="pl-en">from_config</span>(<span class="pl-s1">cls</span>, <span class="pl-s1">config</span>):</div></div></div><div class="child-of-line-41 child-of-line-165 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC167" class="react-file-line html-div" data-testid="code-cell" data-line-number="167" style="position:relative"> <span class="pl-s">"""Instantiates a `Loss` from its config (output of `get_config()`).</span></div></div></div><div class="child-of-line-41 child-of-line-165 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC168" class="react-file-line html-div" data-testid="code-cell" data-line-number="168" style="position:relative"> </div></div></div><div class="child-of-line-41 child-of-line-165 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC169" class="react-file-line html-div" data-testid="code-cell" data-line-number="169" style="position:relative"><span class="pl-s"> Args:</span></div></div></div><div class="child-of-line-41 child-of-line-165 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC170" class="react-file-line html-div" data-testid="code-cell" data-line-number="170" style="position:relative"><span class="pl-s"> config: Output of `get_config()`.</span></div></div></div><div class="child-of-line-41 child-of-line-165 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC171" class="react-file-line html-div" data-testid="code-cell" data-line-number="171" style="position:relative"> </div></div></div><div class="child-of-line-41 child-of-line-165 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC172" class="react-file-line html-div" data-testid="code-cell" data-line-number="172" style="position:relative"><span class="pl-s"> Returns:</span></div></div></div><div class="child-of-line-41 child-of-line-165 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC173" class="react-file-line html-div" data-testid="code-cell" data-line-number="173" style="position:relative"><span class="pl-s"> A `Loss` instance.</span></div></div></div><div class="child-of-line-41 child-of-line-165 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC174" class="react-file-line html-div" data-testid="code-cell" data-line-number="174" style="position:relative"><span class="pl-s"> """</span></div></div></div><div class="child-of-line-41 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC175" class="react-file-line html-div" data-testid="code-cell" data-line-number="175" style="position:relative"> <span class="pl-k">return</span> <span class="pl-en">cls</span>(<span class="pl-c1">**</span><span class="pl-s1">config</span>)</div></div></div><div class="child-of-line-41 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC176" class="react-file-line html-div" data-testid="code-cell" data-line-number="176" style="position:relative"> </div></div></div><div class="child-of-line-41 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC177" class="react-file-line html-div" data-testid="code-cell" data-line-number="177" style="position:relative"> <span class="pl-k">def</span> <span class="pl-en">get_config</span>(<span class="pl-s1">self</span>):</div></div></div><div class="child-of-line-41 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC178" class="react-file-line html-div" data-testid="code-cell" data-line-number="178" style="position:relative"> <span class="pl-s">"""Returns the config dictionary for a `Loss` instance."""</span></div></div></div><div class="child-of-line-41 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC179" class="react-file-line html-div" data-testid="code-cell" data-line-number="179" style="position:relative"> <span class="pl-k">return</span> {<span class="pl-s">"reduction"</span>: <span class="pl-s1">self</span>.<span class="pl-c1">reduction</span>, <span class="pl-s">"name"</span>: <span class="pl-s1">self</span>.<span class="pl-c1">name</span>}</div></div></div><div class="child-of-line-41 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC180" class="react-file-line html-div" data-testid="code-cell" data-line-number="180" style="position:relative"> </div></div></div><div class="child-of-line-41 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC181" class="react-file-line html-div" data-testid="code-cell" data-line-number="181" style="position:relative"> <span class="pl-en">@<span class="pl-s1">abc</span>.<span class="pl-c1">abstractmethod</span></span></div></div></div><div class="child-of-line-41 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC182" class="react-file-line html-div" data-testid="code-cell" data-line-number="182" style="position:relative"> <span class="pl-en">@<span class="pl-s1">doc_controls</span>.<span class="pl-c1">for_subclass_implementers</span></span></div></div></div><div class="child-of-line-41 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC183" class="react-file-line html-div" data-testid="code-cell" data-line-number="183" style="position:relative"> <span class="pl-k">def</span> <span class="pl-en">call</span>(<span class="pl-s1">self</span>, <span class="pl-s1">y_true</span>, <span class="pl-s1">y_pred</span>):</div></div></div><div class="child-of-line-41 child-of-line-182 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC184" class="react-file-line html-div" data-testid="code-cell" data-line-number="184" style="position:relative"> <span class="pl-s">"""Invokes the `Loss` instance.</span></div></div></div><div class="child-of-line-41 child-of-line-182 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC185" class="react-file-line html-div" data-testid="code-cell" data-line-number="185" style="position:relative"> </div></div></div><div class="child-of-line-41 child-of-line-182 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC186" class="react-file-line html-div" data-testid="code-cell" data-line-number="186" style="position:relative"><span class="pl-s"> Args:</span></div></div></div><div class="child-of-line-41 child-of-line-182 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC187" class="react-file-line html-div" data-testid="code-cell" data-line-number="187" style="position:relative"><span class="pl-s"> y_true: Ground truth values. shape = `[batch_size, d0, .. dN]`,</span></div></div></div><div class="child-of-line-41 child-of-line-182 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC188" class="react-file-line html-div" data-testid="code-cell" data-line-number="188" style="position:relative"><span class="pl-s"> except sparse loss functions such as sparse categorical</span></div></div></div><div class="child-of-line-41 child-of-line-182 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC189" class="react-file-line html-div" data-testid="code-cell" data-line-number="189" style="position:relative"><span class="pl-s"> crossentropy where shape = `[batch_size, d0, .. dN-1]`</span></div></div></div><div class="child-of-line-41 child-of-line-182 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC190" class="react-file-line html-div" data-testid="code-cell" data-line-number="190" style="position:relative"><span class="pl-s"> y_pred: The predicted values. shape = `[batch_size, d0, .. dN]`</span></div></div></div><div class="child-of-line-41 child-of-line-182 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC191" class="react-file-line html-div" data-testid="code-cell" data-line-number="191" style="position:relative"> </div></div></div><div class="child-of-line-41 child-of-line-182 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC192" class="react-file-line html-div" data-testid="code-cell" data-line-number="192" style="position:relative"><span class="pl-s"> Returns:</span></div></div></div><div class="child-of-line-41 child-of-line-182 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC193" class="react-file-line html-div" data-testid="code-cell" data-line-number="193" style="position:relative"><span class="pl-s"> Loss values with the shape `[batch_size, d0, .. dN-1]`.</span></div></div></div><div class="child-of-line-41 child-of-line-182 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC194" class="react-file-line html-div" data-testid="code-cell" data-line-number="194" style="position:relative"><span class="pl-s"> """</span></div></div></div><div class="child-of-line-41 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC195" class="react-file-line html-div" data-testid="code-cell" data-line-number="195" style="position:relative"> <span class="pl-k">raise</span> <span class="pl-en">NotImplementedError</span>(<span class="pl-s">"Must be implemented in subclasses."</span>)</div></div></div><div class="child-of-line-41 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC196" class="react-file-line html-div" data-testid="code-cell" data-line-number="196" style="position:relative"> </div></div></div><div class="child-of-line-41 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC197" class="react-file-line html-div" data-testid="code-cell" data-line-number="197" style="position:relative"> <span class="pl-k">def</span> <span class="pl-en">_get_reduction</span>(<span class="pl-s1">self</span>):</div></div></div><div class="child-of-line-41 child-of-line-196 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC198" class="react-file-line html-div" data-testid="code-cell" data-line-number="198" style="position:relative"> <span class="pl-s">"""Handles `AUTO` reduction cases and returns the reduction value."""</span></div></div></div><div class="child-of-line-41 child-of-line-196 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC199" class="react-file-line html-div" data-testid="code-cell" data-line-number="199" style="position:relative"> <span class="pl-k">if</span> (</div></div></div><div class="child-of-line-41 child-of-line-196 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC200" class="react-file-line html-div" data-testid="code-cell" data-line-number="200" style="position:relative"> <span class="pl-c1">not</span> <span class="pl-s1">self</span>.<span class="pl-c1">_allow_sum_over_batch_size</span></div></div></div><div class="child-of-line-41 child-of-line-196 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC201" class="react-file-line html-div" data-testid="code-cell" data-line-number="201" style="position:relative"> <span class="pl-c1">and</span> <span class="pl-s1">tf</span>.<span class="pl-c1">distribute</span>.<span class="pl-c1">has_strategy</span>()</div></div></div><div class="child-of-line-41 child-of-line-196 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC202" class="react-file-line html-div" data-testid="code-cell" data-line-number="202" style="position:relative"> <span class="pl-c1">and</span> (</div></div></div><div class="child-of-line-41 child-of-line-196 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC203" class="react-file-line html-div" data-testid="code-cell" data-line-number="203" style="position:relative"> <span class="pl-s1">self</span>.<span class="pl-c1">reduction</span> <span class="pl-c1">==</span> <span class="pl-s1">losses_utils</span>.<span class="pl-c1">ReductionV2</span>.<span class="pl-c1">AUTO</span></div></div></div><div class="child-of-line-41 child-of-line-196 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC204" class="react-file-line html-div" data-testid="code-cell" data-line-number="204" style="position:relative"> <span class="pl-c1">or</span> <span class="pl-s1">self</span>.<span class="pl-c1">reduction</span></div></div></div><div class="child-of-line-41 child-of-line-196 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC205" class="react-file-line html-div" data-testid="code-cell" data-line-number="205" style="position:relative"> <span class="pl-c1">==</span> <span class="pl-s1">losses_utils</span>.<span class="pl-c1">ReductionV2</span>.<span class="pl-c1">SUM_OVER_BATCH_SIZE</span></div></div></div><div class="child-of-line-41 child-of-line-196 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC206" class="react-file-line html-div" data-testid="code-cell" data-line-number="206" style="position:relative"> )</div></div></div><div class="child-of-line-41 child-of-line-196 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC207" class="react-file-line html-div" data-testid="code-cell" data-line-number="207" style="position:relative"> ):</div></div></div><div class="child-of-line-41 child-of-line-196 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC208" class="react-file-line html-div" data-testid="code-cell" data-line-number="208" style="position:relative"> <span class="pl-k">raise</span> <span class="pl-en">ValueError</span>(</div></div></div><div class="child-of-line-41 child-of-line-196 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC209" class="react-file-line html-div" data-testid="code-cell" data-line-number="209" style="position:relative"> <span class="pl-s">"Please use `tf.keras.losses.Reduction.SUM` or "</span></div></div></div><div class="child-of-line-41 child-of-line-196 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC210" class="react-file-line html-div" data-testid="code-cell" data-line-number="210" style="position:relative"> <span class="pl-s">"`tf.keras.losses.Reduction.NONE` for loss reduction when "</span></div></div></div><div class="child-of-line-41 child-of-line-196 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC211" class="react-file-line html-div" data-testid="code-cell" data-line-number="211" style="position:relative"> <span class="pl-s">"losses are used with `tf.distribute.Strategy`, "</span></div></div></div><div class="child-of-line-41 child-of-line-196 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC212" class="react-file-line html-div" data-testid="code-cell" data-line-number="212" style="position:relative"> <span class="pl-s">"except for specifying losses in `Model.compile()` "</span></div></div></div><div class="child-of-line-41 child-of-line-196 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC213" class="react-file-line html-div" data-testid="code-cell" data-line-number="213" style="position:relative"> <span class="pl-s">"for use by the built-in training looop `Model.fit()`.<span class="pl-cce">\n</span>"</span></div></div></div><div class="child-of-line-41 child-of-line-196 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC214" class="react-file-line html-div" data-testid="code-cell" data-line-number="214" style="position:relative"> <span class="pl-s">"Please see https://www.tensorflow.org/tutorials"</span></div></div></div><div class="child-of-line-41 child-of-line-196 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC215" class="react-file-line html-div" data-testid="code-cell" data-line-number="215" style="position:relative"> <span class="pl-s">"/distribute/custom_training for more details."</span></div></div></div><div class="child-of-line-41 child-of-line-196 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC216" class="react-file-line html-div" data-testid="code-cell" data-line-number="216" style="position:relative"> )</div></div></div><div class="child-of-line-41 child-of-line-196 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC217" class="react-file-line html-div" data-testid="code-cell" data-line-number="217" style="position:relative"> </div></div></div><div class="child-of-line-41 child-of-line-196 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC218" class="react-file-line html-div" data-testid="code-cell" data-line-number="218" style="position:relative"> <span class="pl-k">if</span> <span class="pl-s1">self</span>.<span class="pl-c1">reduction</span> <span class="pl-c1">==</span> <span class="pl-s1">losses_utils</span>.<span class="pl-c1">ReductionV2</span>.<span class="pl-c1">AUTO</span>:</div></div></div><div class="child-of-line-41 child-of-line-196 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC219" class="react-file-line html-div" data-testid="code-cell" data-line-number="219" style="position:relative"> <span class="pl-k">return</span> <span class="pl-s1">losses_utils</span>.<span class="pl-c1">ReductionV2</span>.<span class="pl-c1">SUM_OVER_BATCH_SIZE</span></div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC220" class="react-file-line html-div" data-testid="code-cell" data-line-number="220" style="position:relative"> <span class="pl-k">return</span> <span class="pl-s1">self</span>.<span class="pl-c1">reduction</span></div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC221" class="react-file-line html-div" data-testid="code-cell" data-line-number="221" style="position:relative"> </div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC222" class="react-file-line html-div" data-testid="code-cell" data-line-number="222" style="position:relative"> </div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC223" class="react-file-line html-div" data-testid="code-cell" data-line-number="223" style="position:relative"><span class="pl-en">@<span class="pl-en">keras_export</span>(<span class="pl-s">"keras.__internal__.losses.LossFunctionWrapper"</span>, <span class="pl-s1">v1</span><span class="pl-c1">=</span>[])</span></div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC224" class="react-file-line html-div" data-testid="code-cell" data-line-number="224" style="position:relative"><span class="pl-k">class</span> <span class="pl-v">LossFunctionWrapper</span>(<span class="pl-v">Loss</span>):</div></div></div><div class="child-of-line-223 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC225" class="react-file-line html-div" data-testid="code-cell" data-line-number="225" style="position:relative"> <span class="pl-s">"""Wraps a loss function in the `Loss` class."""</span></div></div></div><div class="child-of-line-223 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC226" class="react-file-line html-div" data-testid="code-cell" data-line-number="226" style="position:relative"> </div></div></div><div class="child-of-line-223 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC227" class="react-file-line html-div" data-testid="code-cell" data-line-number="227" style="position:relative"> <span class="pl-k">def</span> <span class="pl-en">__init__</span>(</div></div></div><div class="child-of-line-223 child-of-line-226 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC228" class="react-file-line html-div" data-testid="code-cell" data-line-number="228" style="position:relative"> <span class="pl-s1">self</span>, <span class="pl-s1">fn</span>, <span class="pl-s1">reduction</span><span class="pl-c1">=</span><span class="pl-s1">losses_utils</span>.<span class="pl-c1">ReductionV2</span>.<span class="pl-c1">AUTO</span>, <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-c1">None</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span></div></div></div><div class="child-of-line-223 child-of-line-226 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC229" class="react-file-line html-div" data-testid="code-cell" data-line-number="229" style="position:relative"> ):</div></div></div><div class="child-of-line-223 child-of-line-226 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC230" class="react-file-line html-div" data-testid="code-cell" data-line-number="230" style="position:relative"> <span class="pl-s">"""Initializes `LossFunctionWrapper` class.</span></div></div></div><div class="child-of-line-223 child-of-line-226 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC231" class="react-file-line html-div" data-testid="code-cell" data-line-number="231" style="position:relative"> </div></div></div><div class="child-of-line-223 child-of-line-226 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC232" class="react-file-line html-div" data-testid="code-cell" data-line-number="232" style="position:relative"><span class="pl-s"> Args:</span></div></div></div><div class="child-of-line-223 child-of-line-226 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC233" class="react-file-line html-div" data-testid="code-cell" data-line-number="233" style="position:relative"><span class="pl-s"> fn: The loss function to wrap, with signature `fn(y_true, y_pred,</span></div></div></div><div class="child-of-line-223 child-of-line-226 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC234" class="react-file-line html-div" data-testid="code-cell" data-line-number="234" style="position:relative"><span class="pl-s"> **kwargs)`.</span></div></div></div><div class="child-of-line-223 child-of-line-226 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC235" class="react-file-line html-div" data-testid="code-cell" data-line-number="235" style="position:relative"><span class="pl-s"> reduction: Type of `tf.keras.losses.Reduction` to apply to</span></div></div></div><div class="child-of-line-223 child-of-line-226 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC236" class="react-file-line html-div" data-testid="code-cell" data-line-number="236" style="position:relative"><span class="pl-s"> loss. Default value is `AUTO`. `AUTO` indicates that the</span></div></div></div><div class="child-of-line-223 child-of-line-226 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC237" class="react-file-line html-div" data-testid="code-cell" data-line-number="237" style="position:relative"><span class="pl-s"> reduction option will be determined by the usage context. For</span></div></div></div><div class="child-of-line-223 child-of-line-226 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC238" class="react-file-line html-div" data-testid="code-cell" data-line-number="238" style="position:relative"><span class="pl-s"> almost all cases this defaults to `SUM_OVER_BATCH_SIZE`. When</span></div></div></div><div class="child-of-line-223 child-of-line-226 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC239" class="react-file-line html-div" data-testid="code-cell" data-line-number="239" style="position:relative"><span class="pl-s"> used under a `tf.distribute.Strategy`, except via</span></div></div></div><div class="child-of-line-223 child-of-line-226 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC240" class="react-file-line html-div" data-testid="code-cell" data-line-number="240" style="position:relative"><span class="pl-s"> `Model.compile()` and `Model.fit()`, using `AUTO` or</span></div></div></div><div class="child-of-line-223 child-of-line-226 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC241" class="react-file-line html-div" data-testid="code-cell" data-line-number="241" style="position:relative"><span class="pl-s"> `SUM_OVER_BATCH_SIZE` will raise an error. Please see this</span></div></div></div><div class="child-of-line-223 child-of-line-226 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC242" class="react-file-line html-div" data-testid="code-cell" data-line-number="242" style="position:relative"><span class="pl-s"> custom training [tutorial](</span></div></div></div><div class="child-of-line-223 child-of-line-226 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC243" class="react-file-line html-div" data-testid="code-cell" data-line-number="243" style="position:relative"><span class="pl-s"> https://www.tensorflow.org/tutorials/distribute/custom_training)</span></div></div></div><div class="child-of-line-223 child-of-line-226 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC244" class="react-file-line html-div" data-testid="code-cell" data-line-number="244" style="position:relative"><span class="pl-s"> for more details.</span></div></div></div><div class="child-of-line-223 child-of-line-226 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC245" class="react-file-line html-div" data-testid="code-cell" data-line-number="245" style="position:relative"><span class="pl-s"> name: Optional name for the instance.</span></div></div></div><div class="child-of-line-223 child-of-line-226 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC246" class="react-file-line html-div" data-testid="code-cell" data-line-number="246" style="position:relative"><span class="pl-s"> **kwargs: The keyword arguments that are passed on to `fn`.</span></div></div></div><div class="child-of-line-223 child-of-line-226 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC247" class="react-file-line html-div" data-testid="code-cell" data-line-number="247" style="position:relative"><span class="pl-s"> """</span></div></div></div><div class="child-of-line-223 child-of-line-226 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC248" class="react-file-line html-div" data-testid="code-cell" data-line-number="248" style="position:relative"> <span class="pl-en">super</span>().<span class="pl-c1">__init__</span>(<span class="pl-s1">reduction</span><span class="pl-c1">=</span><span class="pl-s1">reduction</span>, <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s1">name</span>)</div></div></div><div class="child-of-line-223 child-of-line-226 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC249" class="react-file-line html-div" data-testid="code-cell" data-line-number="249" style="position:relative"> <span class="pl-s1">self</span>.<span class="pl-c1">fn</span> <span class="pl-c1">=</span> <span class="pl-s1">fn</span></div></div></div><div class="child-of-line-223 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC250" class="react-file-line html-div" data-testid="code-cell" data-line-number="250" style="position:relative"> <span class="pl-s1">self</span>.<span class="pl-c1">_fn_kwargs</span> <span class="pl-c1">=</span> <span class="pl-s1">kwargs</span></div></div></div><div class="child-of-line-223 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC251" class="react-file-line html-div" data-testid="code-cell" data-line-number="251" style="position:relative"> </div></div></div><div class="child-of-line-223 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC252" class="react-file-line html-div" data-testid="code-cell" data-line-number="252" style="position:relative"> <span class="pl-k">def</span> <span class="pl-en">call</span>(<span class="pl-s1">self</span>, <span class="pl-s1">y_true</span>, <span class="pl-s1">y_pred</span>):</div></div></div><div class="child-of-line-223 child-of-line-251 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC253" class="react-file-line html-div" data-testid="code-cell" data-line-number="253" style="position:relative"> <span class="pl-s">"""Invokes the `LossFunctionWrapper` instance.</span></div></div></div><div class="child-of-line-223 child-of-line-251 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC254" class="react-file-line html-div" data-testid="code-cell" data-line-number="254" style="position:relative"> </div></div></div><div class="child-of-line-223 child-of-line-251 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC255" class="react-file-line html-div" data-testid="code-cell" data-line-number="255" style="position:relative"><span class="pl-s"> Args:</span></div></div></div><div class="child-of-line-223 child-of-line-251 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC256" class="react-file-line html-div" data-testid="code-cell" data-line-number="256" style="position:relative"><span class="pl-s"> y_true: Ground truth values.</span></div></div></div><div class="child-of-line-223 child-of-line-251 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC257" class="react-file-line html-div" data-testid="code-cell" data-line-number="257" style="position:relative"><span class="pl-s"> y_pred: The predicted values.</span></div></div></div><div class="child-of-line-223 child-of-line-251 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC258" class="react-file-line html-div" data-testid="code-cell" data-line-number="258" style="position:relative"> </div></div></div><div class="child-of-line-223 child-of-line-251 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC259" class="react-file-line html-div" data-testid="code-cell" data-line-number="259" style="position:relative"><span class="pl-s"> Returns:</span></div></div></div><div class="child-of-line-223 child-of-line-251 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC260" class="react-file-line html-div" data-testid="code-cell" data-line-number="260" style="position:relative"><span class="pl-s"> Loss values per sample.</span></div></div></div><div class="child-of-line-223 child-of-line-251 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC261" class="react-file-line html-div" data-testid="code-cell" data-line-number="261" style="position:relative"><span class="pl-s"> """</span></div></div></div><div class="child-of-line-223 child-of-line-251 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC262" class="react-file-line html-div" data-testid="code-cell" data-line-number="262" style="position:relative"> <span class="pl-k">if</span> <span class="pl-s1">tf</span>.<span class="pl-c1">is_tensor</span>(<span class="pl-s1">y_pred</span>) <span class="pl-c1">and</span> <span class="pl-s1">tf</span>.<span class="pl-c1">is_tensor</span>(<span class="pl-s1">y_true</span>):</div></div></div><div class="child-of-line-223 child-of-line-251 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC263" class="react-file-line html-div" data-testid="code-cell" data-line-number="263" style="position:relative"> <span class="pl-s1">y_pred</span>, <span class="pl-s1">y_true</span> <span class="pl-c1">=</span> <span class="pl-s1">losses_utils</span>.<span class="pl-c1">squeeze_or_expand_dimensions</span>(</div></div></div><div class="child-of-line-223 child-of-line-251 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC264" class="react-file-line html-div" data-testid="code-cell" data-line-number="264" style="position:relative"> <span class="pl-s1">y_pred</span>, <span class="pl-s1">y_true</span></div></div></div><div class="child-of-line-223 child-of-line-251 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC265" class="react-file-line html-div" data-testid="code-cell" data-line-number="265" style="position:relative"> )</div></div></div><div class="child-of-line-223 child-of-line-251 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC266" class="react-file-line html-div" data-testid="code-cell" data-line-number="266" style="position:relative"> </div></div></div><div class="child-of-line-223 child-of-line-251 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC267" class="react-file-line html-div" data-testid="code-cell" data-line-number="267" style="position:relative"> <span class="pl-s1">ag_fn</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-c1">__internal__</span>.<span class="pl-c1">autograph</span>.<span class="pl-c1">tf_convert</span>(</div></div></div><div class="child-of-line-223 child-of-line-251 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC268" class="react-file-line html-div" data-testid="code-cell" data-line-number="268" style="position:relative"> <span class="pl-s1">self</span>.<span class="pl-c1">fn</span>, <span class="pl-s1">tf</span>.<span class="pl-c1">__internal__</span>.<span class="pl-c1">autograph</span>.<span class="pl-c1">control_status_ctx</span>()</div></div></div><div class="child-of-line-223 child-of-line-251 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC269" class="react-file-line html-div" data-testid="code-cell" data-line-number="269" style="position:relative"> )</div></div></div><div class="child-of-line-223 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC270" class="react-file-line html-div" data-testid="code-cell" data-line-number="270" style="position:relative"> <span class="pl-k">return</span> <span class="pl-en">ag_fn</span>(<span class="pl-s1">y_true</span>, <span class="pl-s1">y_pred</span>, <span class="pl-c1">**</span><span class="pl-s1">self</span>.<span class="pl-c1">_fn_kwargs</span>)</div></div></div><div class="child-of-line-223 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC271" class="react-file-line html-div" data-testid="code-cell" data-line-number="271" style="position:relative"> </div></div></div><div class="child-of-line-223 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC272" class="react-file-line html-div" data-testid="code-cell" data-line-number="272" style="position:relative"> <span class="pl-k">def</span> <span class="pl-en">get_config</span>(<span class="pl-s1">self</span>):</div></div></div><div class="child-of-line-223 child-of-line-271 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC273" class="react-file-line html-div" data-testid="code-cell" data-line-number="273" style="position:relative"> <span class="pl-s1">config</span> <span class="pl-c1">=</span> {}</div></div></div><div class="child-of-line-223 child-of-line-271 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC274" class="react-file-line html-div" data-testid="code-cell" data-line-number="274" style="position:relative"> <span class="pl-k">for</span> <span class="pl-s1">k</span>, <span class="pl-s1">v</span> <span class="pl-c1">in</span> <span class="pl-s1">self</span>.<span class="pl-c1">_fn_kwargs</span>.<span class="pl-c1">items</span>():</div></div></div><div class="child-of-line-223 child-of-line-271 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC275" class="react-file-line html-div" data-testid="code-cell" data-line-number="275" style="position:relative"> <span class="pl-s1">config</span>[<span class="pl-s1">k</span>] <span class="pl-c1">=</span> (</div></div></div><div class="child-of-line-223 child-of-line-271 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC276" class="react-file-line html-div" data-testid="code-cell" data-line-number="276" style="position:relative"> <span class="pl-s1">backend</span>.<span class="pl-c1">eval</span>(<span class="pl-s1">v</span>) <span class="pl-k">if</span> <span class="pl-s1">tf_utils</span>.<span class="pl-c1">is_tensor_or_variable</span>(<span class="pl-s1">v</span>) <span class="pl-k">else</span> <span class="pl-s1">v</span></div></div></div><div class="child-of-line-223 child-of-line-271 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC277" class="react-file-line html-div" data-testid="code-cell" data-line-number="277" style="position:relative"> )</div></div></div><div class="child-of-line-223 child-of-line-271 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC278" class="react-file-line html-div" data-testid="code-cell" data-line-number="278" style="position:relative"> </div></div></div><div class="child-of-line-223 child-of-line-271 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC279" class="react-file-line html-div" data-testid="code-cell" data-line-number="279" style="position:relative"> <span class="pl-k">if</span> <span class="pl-s1">saving_lib</span>.<span class="pl-c1">saving_v3_enabled</span>():</div></div></div><div class="child-of-line-223 child-of-line-271 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC280" class="react-file-line html-div" data-testid="code-cell" data-line-number="280" style="position:relative"> <span class="pl-k">from</span> <span class="pl-s1">tf_keras</span>.<span class="pl-s1">utils</span> <span class="pl-k">import</span> <span class="pl-s1">get_registered_name</span></div></div></div><div class="child-of-line-223 child-of-line-271 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC281" class="react-file-line html-div" data-testid="code-cell" data-line-number="281" style="position:relative"> </div></div></div><div class="child-of-line-223 child-of-line-271 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC282" class="react-file-line html-div" data-testid="code-cell" data-line-number="282" style="position:relative"> <span class="pl-s1">config</span>[<span class="pl-s">"fn"</span>] <span class="pl-c1">=</span> <span class="pl-en">get_registered_name</span>(<span class="pl-s1">self</span>.<span class="pl-c1">fn</span>)</div></div></div><div class="child-of-line-223 child-of-line-271 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC283" class="react-file-line html-div" data-testid="code-cell" data-line-number="283" style="position:relative"> </div></div></div><div class="child-of-line-223 child-of-line-271 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC284" class="react-file-line html-div" data-testid="code-cell" data-line-number="284" style="position:relative"> <span class="pl-s1">base_config</span> <span class="pl-c1">=</span> <span class="pl-en">super</span>().<span class="pl-c1">get_config</span>()</div></div></div><div class="child-of-line-223 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC285" class="react-file-line html-div" data-testid="code-cell" data-line-number="285" style="position:relative"> <span class="pl-k">return</span> <span class="pl-en">dict</span>(<span class="pl-en">list</span>(<span class="pl-s1">base_config</span>.<span class="pl-c1">items</span>()) <span class="pl-c1">+</span> <span class="pl-en">list</span>(<span class="pl-s1">config</span>.<span class="pl-c1">items</span>()))</div></div></div><div class="child-of-line-223 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC286" class="react-file-line html-div" data-testid="code-cell" data-line-number="286" style="position:relative"> </div></div></div><div class="child-of-line-223 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC287" class="react-file-line html-div" data-testid="code-cell" data-line-number="287" style="position:relative"> <span class="pl-en">@<span class="pl-s1">classmethod</span></span></div></div></div><div class="child-of-line-223 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC288" class="react-file-line html-div" data-testid="code-cell" data-line-number="288" style="position:relative"> <span class="pl-k">def</span> <span class="pl-en">from_config</span>(<span class="pl-s1">cls</span>, <span class="pl-s1">config</span>):</div></div></div><div class="child-of-line-223 child-of-line-287 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC289" class="react-file-line html-div" data-testid="code-cell" data-line-number="289" style="position:relative"> <span class="pl-s">"""Instantiates a `Loss` from its config (output of `get_config()`).</span></div></div></div><div class="child-of-line-223 child-of-line-287 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC290" class="react-file-line html-div" data-testid="code-cell" data-line-number="290" style="position:relative"> </div></div></div><div class="child-of-line-223 child-of-line-287 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC291" class="react-file-line html-div" data-testid="code-cell" data-line-number="291" style="position:relative"><span class="pl-s"> Args:</span></div></div></div><div class="child-of-line-223 child-of-line-287 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC292" class="react-file-line html-div" data-testid="code-cell" data-line-number="292" style="position:relative"><span class="pl-s"> config: Output of `get_config()`.</span></div></div></div><div class="child-of-line-223 child-of-line-287 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC293" class="react-file-line html-div" data-testid="code-cell" data-line-number="293" style="position:relative"> </div></div></div><div class="child-of-line-223 child-of-line-287 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC294" class="react-file-line html-div" data-testid="code-cell" data-line-number="294" style="position:relative"><span class="pl-s"> Returns:</span></div></div></div><div class="child-of-line-223 child-of-line-287 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC295" class="react-file-line html-div" data-testid="code-cell" data-line-number="295" style="position:relative"><span class="pl-s"> A `keras.losses.Loss` instance.</span></div></div></div><div class="child-of-line-223 child-of-line-287 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC296" class="react-file-line html-div" data-testid="code-cell" data-line-number="296" style="position:relative"><span class="pl-s"> """</span></div></div></div><div class="child-of-line-223 child-of-line-287 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC297" class="react-file-line html-div" data-testid="code-cell" data-line-number="297" style="position:relative"> <span class="pl-k">if</span> <span class="pl-s1">saving_lib</span>.<span class="pl-c1">saving_v3_enabled</span>():</div></div></div><div class="child-of-line-223 child-of-line-287 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC298" class="react-file-line html-div" data-testid="code-cell" data-line-number="298" style="position:relative"> <span class="pl-s1">fn_name</span> <span class="pl-c1">=</span> <span class="pl-s1">config</span>.<span class="pl-c1">pop</span>(<span class="pl-s">"fn"</span>, <span class="pl-c1">None</span>)</div></div></div><div class="child-of-line-223 child-of-line-287 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC299" class="react-file-line html-div" data-testid="code-cell" data-line-number="299" style="position:relative"> <span class="pl-k">if</span> <span class="pl-s1">fn_name</span> <span class="pl-c1">and</span> <span class="pl-s1">cls</span> <span class="pl-c1">is</span> <span class="pl-v">LossFunctionWrapper</span>:</div></div></div><div class="child-of-line-223 child-of-line-287 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC300" class="react-file-line html-div" data-testid="code-cell" data-line-number="300" style="position:relative"> <span class="pl-s1">config</span>[<span class="pl-s">"fn"</span>] <span class="pl-c1">=</span> <span class="pl-en">get</span>(<span class="pl-s1">fn_name</span>)</div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC301" class="react-file-line html-div" data-testid="code-cell" data-line-number="301" style="position:relative"> <span class="pl-k">return</span> <span class="pl-en">cls</span>(<span class="pl-c1">**</span><span class="pl-s1">config</span>)</div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC302" class="react-file-line html-div" data-testid="code-cell" data-line-number="302" style="position:relative"> </div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC303" class="react-file-line html-div" data-testid="code-cell" data-line-number="303" style="position:relative"> </div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC304" class="react-file-line html-div" data-testid="code-cell" data-line-number="304" style="position:relative"><span class="pl-en">@<span class="pl-en">keras_export</span>(<span class="pl-s">"keras.losses.MeanSquaredError"</span>)</span></div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC305" class="react-file-line html-div" data-testid="code-cell" data-line-number="305" style="position:relative"><span class="pl-k">class</span> <span class="pl-v">MeanSquaredError</span>(<span class="pl-v">LossFunctionWrapper</span>):</div></div></div><div class="child-of-line-304 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC306" class="react-file-line html-div" data-testid="code-cell" data-line-number="306" style="position:relative"> <span class="pl-s">"""Computes the mean of squares of errors between labels and predictions.</span></div></div></div><div class="child-of-line-304 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC307" class="react-file-line html-div" data-testid="code-cell" data-line-number="307" style="position:relative"> </div></div></div><div class="child-of-line-304 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC308" class="react-file-line html-div" data-testid="code-cell" data-line-number="308" style="position:relative"><span class="pl-s"> `loss = mean(square(y_true - y_pred))`</span></div></div></div><div class="child-of-line-304 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC309" class="react-file-line html-div" data-testid="code-cell" data-line-number="309" style="position:relative"> </div></div></div><div class="child-of-line-304 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC310" class="react-file-line html-div" data-testid="code-cell" data-line-number="310" style="position:relative"><span class="pl-s"> Standalone usage:</span></div></div></div><div class="child-of-line-304 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC311" class="react-file-line html-div" data-testid="code-cell" data-line-number="311" style="position:relative"> </div></div></div><div class="child-of-line-304 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC312" class="react-file-line html-div" data-testid="code-cell" data-line-number="312" style="position:relative"><span class="pl-s"> >>> y_true = [[0., 1.], [0., 0.]]</span></div></div></div><div class="child-of-line-304 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC313" class="react-file-line html-div" data-testid="code-cell" data-line-number="313" style="position:relative"><span class="pl-s"> >>> y_pred = [[1., 1.], [1., 0.]]</span></div></div></div><div class="child-of-line-304 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC314" class="react-file-line html-div" data-testid="code-cell" data-line-number="314" style="position:relative"><span class="pl-s"> >>> # Using 'auto'/'sum_over_batch_size' reduction type.</span></div></div></div><div class="child-of-line-304 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC315" class="react-file-line html-div" data-testid="code-cell" data-line-number="315" style="position:relative"><span class="pl-s"> >>> mse = tf.keras.losses.MeanSquaredError()</span></div></div></div><div class="child-of-line-304 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC316" class="react-file-line html-div" data-testid="code-cell" data-line-number="316" style="position:relative"><span class="pl-s"> >>> mse(y_true, y_pred).numpy()</span></div></div></div><div class="child-of-line-304 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC317" class="react-file-line html-div" data-testid="code-cell" data-line-number="317" style="position:relative"><span class="pl-s"> 0.5</span></div></div></div><div class="child-of-line-304 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC318" class="react-file-line html-div" data-testid="code-cell" data-line-number="318" style="position:relative"> </div></div></div><div class="child-of-line-304 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC319" class="react-file-line html-div" data-testid="code-cell" data-line-number="319" style="position:relative"><span class="pl-s"> >>> # Calling with 'sample_weight'.</span></div></div></div><div class="child-of-line-304 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC320" class="react-file-line html-div" data-testid="code-cell" data-line-number="320" style="position:relative"><span class="pl-s"> >>> mse(y_true, y_pred, sample_weight=[0.7, 0.3]).numpy()</span></div></div></div><div class="child-of-line-304 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC321" class="react-file-line html-div" data-testid="code-cell" data-line-number="321" style="position:relative"><span class="pl-s"> 0.25</span></div></div></div><div class="child-of-line-304 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC322" class="react-file-line html-div" data-testid="code-cell" data-line-number="322" style="position:relative"> </div></div></div><div class="child-of-line-304 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC323" class="react-file-line html-div" data-testid="code-cell" data-line-number="323" style="position:relative"><span class="pl-s"> >>> # Using 'sum' reduction type.</span></div></div></div><div class="child-of-line-304 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC324" class="react-file-line html-div" data-testid="code-cell" data-line-number="324" style="position:relative"><span class="pl-s"> >>> mse = tf.keras.losses.MeanSquaredError(</span></div></div></div><div class="child-of-line-304 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC325" class="react-file-line html-div" data-testid="code-cell" data-line-number="325" style="position:relative"><span class="pl-s"> ... reduction=tf.keras.losses.Reduction.SUM)</span></div></div></div><div class="child-of-line-304 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC326" class="react-file-line html-div" data-testid="code-cell" data-line-number="326" style="position:relative"><span class="pl-s"> >>> mse(y_true, y_pred).numpy()</span></div></div></div><div class="child-of-line-304 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC327" class="react-file-line html-div" data-testid="code-cell" data-line-number="327" style="position:relative"><span class="pl-s"> 1.0</span></div></div></div><div class="child-of-line-304 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC328" class="react-file-line html-div" data-testid="code-cell" data-line-number="328" style="position:relative"> </div></div></div><div class="child-of-line-304 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC329" class="react-file-line html-div" data-testid="code-cell" data-line-number="329" style="position:relative"><span class="pl-s"> >>> # Using 'none' reduction type.</span></div></div></div><div class="child-of-line-304 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC330" class="react-file-line html-div" data-testid="code-cell" data-line-number="330" style="position:relative"><span class="pl-s"> >>> mse = tf.keras.losses.MeanSquaredError(</span></div></div></div><div class="child-of-line-304 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC331" class="react-file-line html-div" data-testid="code-cell" data-line-number="331" style="position:relative"><span class="pl-s"> ... reduction=tf.keras.losses.Reduction.NONE)</span></div></div></div><div class="child-of-line-304 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC332" class="react-file-line html-div" data-testid="code-cell" data-line-number="332" style="position:relative"><span class="pl-s"> >>> mse(y_true, y_pred).numpy()</span></div></div></div><div class="child-of-line-304 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC333" class="react-file-line html-div" data-testid="code-cell" data-line-number="333" style="position:relative"><span class="pl-s"> array([0.5, 0.5], dtype=float32)</span></div></div></div><div class="child-of-line-304 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC334" class="react-file-line html-div" data-testid="code-cell" data-line-number="334" style="position:relative"> </div></div></div><div class="child-of-line-304 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC335" class="react-file-line html-div" data-testid="code-cell" data-line-number="335" style="position:relative"><span class="pl-s"> Usage with the `compile()` API:</span></div></div></div><div class="child-of-line-304 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC336" class="react-file-line html-div" data-testid="code-cell" data-line-number="336" style="position:relative"> </div></div></div><div class="child-of-line-304 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC337" class="react-file-line html-div" data-testid="code-cell" data-line-number="337" style="position:relative"><span class="pl-s"> ```python</span></div></div></div><div class="child-of-line-304 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC338" class="react-file-line html-div" data-testid="code-cell" data-line-number="338" style="position:relative"><span class="pl-s"> model.compile(optimizer='sgd', loss=tf.keras.losses.MeanSquaredError())</span></div></div></div><div class="child-of-line-304 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC339" class="react-file-line html-div" data-testid="code-cell" data-line-number="339" style="position:relative"><span class="pl-s"> ```</span></div></div></div><div class="child-of-line-304 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC340" class="react-file-line html-div" data-testid="code-cell" data-line-number="340" style="position:relative"><span class="pl-s"> """</span></div></div></div><div class="child-of-line-304 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC341" class="react-file-line html-div" data-testid="code-cell" data-line-number="341" style="position:relative"> </div></div></div><div class="child-of-line-304 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC342" class="react-file-line html-div" data-testid="code-cell" data-line-number="342" style="position:relative"> <span class="pl-k">def</span> <span class="pl-en">__init__</span>(</div></div></div><div class="child-of-line-304 child-of-line-341 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC343" class="react-file-line html-div" data-testid="code-cell" data-line-number="343" style="position:relative"> <span class="pl-s1">self</span>, <span class="pl-s1">reduction</span><span class="pl-c1">=</span><span class="pl-s1">losses_utils</span>.<span class="pl-c1">ReductionV2</span>.<span class="pl-c1">AUTO</span>, <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">"mean_squared_error"</span></div></div></div><div class="child-of-line-304 child-of-line-341 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC344" class="react-file-line html-div" data-testid="code-cell" data-line-number="344" style="position:relative"> ):</div></div></div><div class="child-of-line-304 child-of-line-341 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC345" class="react-file-line html-div" data-testid="code-cell" data-line-number="345" style="position:relative"> <span class="pl-s">"""Initializes `MeanSquaredError` instance.</span></div></div></div><div class="child-of-line-304 child-of-line-341 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC346" class="react-file-line html-div" data-testid="code-cell" data-line-number="346" style="position:relative"> </div></div></div><div class="child-of-line-304 child-of-line-341 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC347" class="react-file-line html-div" data-testid="code-cell" data-line-number="347" style="position:relative"><span class="pl-s"> Args:</span></div></div></div><div class="child-of-line-304 child-of-line-341 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC348" class="react-file-line html-div" data-testid="code-cell" data-line-number="348" style="position:relative"><span class="pl-s"> reduction: Type of `tf.keras.losses.Reduction` to apply to</span></div></div></div><div class="child-of-line-304 child-of-line-341 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC349" class="react-file-line html-div" data-testid="code-cell" data-line-number="349" style="position:relative"><span class="pl-s"> loss. Default value is `AUTO`. `AUTO` indicates that the</span></div></div></div><div class="child-of-line-304 child-of-line-341 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC350" class="react-file-line html-div" data-testid="code-cell" data-line-number="350" style="position:relative"><span class="pl-s"> reduction option will be determined by the usage context. For</span></div></div></div><div class="child-of-line-304 child-of-line-341 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC351" class="react-file-line html-div" data-testid="code-cell" data-line-number="351" style="position:relative"><span class="pl-s"> almost all cases this defaults to `SUM_OVER_BATCH_SIZE`. When</span></div></div></div><div class="child-of-line-304 child-of-line-341 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC352" class="react-file-line html-div" data-testid="code-cell" data-line-number="352" style="position:relative"><span class="pl-s"> used under a `tf.distribute.Strategy`, except via</span></div></div></div><div class="child-of-line-304 child-of-line-341 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC353" class="react-file-line html-div" data-testid="code-cell" data-line-number="353" style="position:relative"><span class="pl-s"> `Model.compile()` and `Model.fit()`, using `AUTO` or</span></div></div></div><div class="child-of-line-304 child-of-line-341 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC354" class="react-file-line html-div" data-testid="code-cell" data-line-number="354" style="position:relative"><span class="pl-s"> `SUM_OVER_BATCH_SIZE` will raise an error. Please see this</span></div></div></div><div class="child-of-line-304 child-of-line-341 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC355" class="react-file-line html-div" data-testid="code-cell" data-line-number="355" style="position:relative"><span class="pl-s"> custom training [tutorial](</span></div></div></div><div class="child-of-line-304 child-of-line-341 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC356" class="react-file-line html-div" data-testid="code-cell" data-line-number="356" style="position:relative"><span class="pl-s"> https://www.tensorflow.org/tutorials/distribute/custom_training)</span></div></div></div><div class="child-of-line-304 child-of-line-341 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC357" class="react-file-line html-div" data-testid="code-cell" data-line-number="357" style="position:relative"><span class="pl-s"> for more details.</span></div></div></div><div class="child-of-line-304 child-of-line-341 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC358" class="react-file-line html-div" data-testid="code-cell" data-line-number="358" style="position:relative"><span class="pl-s"> name: Optional name for the instance. Defaults to</span></div></div></div><div class="child-of-line-304 child-of-line-341 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC359" class="react-file-line html-div" data-testid="code-cell" data-line-number="359" style="position:relative"><span class="pl-s"> 'mean_squared_error'.</span></div></div></div><div class="child-of-line-304 child-of-line-341 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC360" class="react-file-line html-div" data-testid="code-cell" data-line-number="360" style="position:relative"><span class="pl-s"> """</span></div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC361" class="react-file-line html-div" data-testid="code-cell" data-line-number="361" style="position:relative"> <span class="pl-en">super</span>().<span class="pl-c1">__init__</span>(<span class="pl-s1">mean_squared_error</span>, <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s1">name</span>, <span class="pl-s1">reduction</span><span class="pl-c1">=</span><span class="pl-s1">reduction</span>)</div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC362" class="react-file-line html-div" data-testid="code-cell" data-line-number="362" style="position:relative"> </div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC363" class="react-file-line html-div" data-testid="code-cell" data-line-number="363" style="position:relative"> </div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC364" class="react-file-line html-div" data-testid="code-cell" data-line-number="364" style="position:relative"><span class="pl-en">@<span class="pl-en">keras_export</span>(<span class="pl-s">"keras.losses.MeanAbsoluteError"</span>)</span></div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC365" class="react-file-line html-div" data-testid="code-cell" data-line-number="365" style="position:relative"><span class="pl-k">class</span> <span class="pl-v">MeanAbsoluteError</span>(<span class="pl-v">LossFunctionWrapper</span>):</div></div></div><div class="child-of-line-364 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC366" class="react-file-line html-div" data-testid="code-cell" data-line-number="366" style="position:relative"> <span class="pl-s">"""Computes the mean of absolute difference between labels and predictions.</span></div></div></div><div class="child-of-line-364 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC367" class="react-file-line html-div" data-testid="code-cell" data-line-number="367" style="position:relative"> </div></div></div><div class="child-of-line-364 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC368" class="react-file-line html-div" data-testid="code-cell" data-line-number="368" style="position:relative"><span class="pl-s"> `loss = mean(abs(y_true - y_pred))`</span></div></div></div><div class="child-of-line-364 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC369" class="react-file-line html-div" data-testid="code-cell" data-line-number="369" style="position:relative"> </div></div></div><div class="child-of-line-364 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC370" class="react-file-line html-div" data-testid="code-cell" data-line-number="370" style="position:relative"><span class="pl-s"> Standalone usage:</span></div></div></div><div class="child-of-line-364 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC371" class="react-file-line html-div" data-testid="code-cell" data-line-number="371" style="position:relative"> </div></div></div><div class="child-of-line-364 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC372" class="react-file-line html-div" data-testid="code-cell" data-line-number="372" style="position:relative"><span class="pl-s"> >>> y_true = [[0., 1.], [0., 0.]]</span></div></div></div><div class="child-of-line-364 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC373" class="react-file-line html-div" data-testid="code-cell" data-line-number="373" style="position:relative"><span class="pl-s"> >>> y_pred = [[1., 1.], [1., 0.]]</span></div></div></div><div class="child-of-line-364 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC374" class="react-file-line html-div" data-testid="code-cell" data-line-number="374" style="position:relative"><span class="pl-s"> >>> # Using 'auto'/'sum_over_batch_size' reduction type.</span></div></div></div><div class="child-of-line-364 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC375" class="react-file-line html-div" data-testid="code-cell" data-line-number="375" style="position:relative"><span class="pl-s"> >>> mae = tf.keras.losses.MeanAbsoluteError()</span></div></div></div><div class="child-of-line-364 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC376" class="react-file-line html-div" data-testid="code-cell" data-line-number="376" style="position:relative"><span class="pl-s"> >>> mae(y_true, y_pred).numpy()</span></div></div></div><div class="child-of-line-364 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC377" class="react-file-line html-div" data-testid="code-cell" data-line-number="377" style="position:relative"><span class="pl-s"> 0.5</span></div></div></div><div class="child-of-line-364 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC378" class="react-file-line html-div" data-testid="code-cell" data-line-number="378" style="position:relative"> </div></div></div><div class="child-of-line-364 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC379" class="react-file-line html-div" data-testid="code-cell" data-line-number="379" style="position:relative"><span class="pl-s"> >>> # Calling with 'sample_weight'.</span></div></div></div><div class="child-of-line-364 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC380" class="react-file-line html-div" data-testid="code-cell" data-line-number="380" style="position:relative"><span class="pl-s"> >>> mae(y_true, y_pred, sample_weight=[0.7, 0.3]).numpy()</span></div></div></div><div class="child-of-line-364 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC381" class="react-file-line html-div" data-testid="code-cell" data-line-number="381" style="position:relative"><span class="pl-s"> 0.25</span></div></div></div><div class="child-of-line-364 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC382" class="react-file-line html-div" data-testid="code-cell" data-line-number="382" style="position:relative"> </div></div></div><div class="child-of-line-364 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC383" class="react-file-line html-div" data-testid="code-cell" data-line-number="383" style="position:relative"><span class="pl-s"> >>> # Using 'sum' reduction type.</span></div></div></div><div class="child-of-line-364 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC384" class="react-file-line html-div" data-testid="code-cell" data-line-number="384" style="position:relative"><span class="pl-s"> >>> mae = tf.keras.losses.MeanAbsoluteError(</span></div></div></div><div class="child-of-line-364 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC385" class="react-file-line html-div" data-testid="code-cell" data-line-number="385" style="position:relative"><span class="pl-s"> ... reduction=tf.keras.losses.Reduction.SUM)</span></div></div></div><div class="child-of-line-364 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC386" class="react-file-line html-div" data-testid="code-cell" data-line-number="386" style="position:relative"><span class="pl-s"> >>> mae(y_true, y_pred).numpy()</span></div></div></div><div class="child-of-line-364 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC387" class="react-file-line html-div" data-testid="code-cell" data-line-number="387" style="position:relative"><span class="pl-s"> 1.0</span></div></div></div><div class="child-of-line-364 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC388" class="react-file-line html-div" data-testid="code-cell" data-line-number="388" style="position:relative"> </div></div></div><div class="child-of-line-364 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC389" class="react-file-line html-div" data-testid="code-cell" data-line-number="389" style="position:relative"><span class="pl-s"> >>> # Using 'none' reduction type.</span></div></div></div><div class="child-of-line-364 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC390" class="react-file-line html-div" data-testid="code-cell" data-line-number="390" style="position:relative"><span class="pl-s"> >>> mae = tf.keras.losses.MeanAbsoluteError(</span></div></div></div><div class="child-of-line-364 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC391" class="react-file-line html-div" data-testid="code-cell" data-line-number="391" style="position:relative"><span class="pl-s"> ... reduction=tf.keras.losses.Reduction.NONE)</span></div></div></div><div class="child-of-line-364 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC392" class="react-file-line html-div" data-testid="code-cell" data-line-number="392" style="position:relative"><span class="pl-s"> >>> mae(y_true, y_pred).numpy()</span></div></div></div><div class="child-of-line-364 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC393" class="react-file-line html-div" data-testid="code-cell" data-line-number="393" style="position:relative"><span class="pl-s"> array([0.5, 0.5], dtype=float32)</span></div></div></div><div class="child-of-line-364 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC394" class="react-file-line html-div" data-testid="code-cell" data-line-number="394" style="position:relative"> </div></div></div><div class="child-of-line-364 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC395" class="react-file-line html-div" data-testid="code-cell" data-line-number="395" style="position:relative"><span class="pl-s"> Usage with the `compile()` API:</span></div></div></div><div class="child-of-line-364 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC396" class="react-file-line html-div" data-testid="code-cell" data-line-number="396" style="position:relative"> </div></div></div><div class="child-of-line-364 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC397" class="react-file-line html-div" data-testid="code-cell" data-line-number="397" style="position:relative"><span class="pl-s"> ```python</span></div></div></div><div class="child-of-line-364 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC398" class="react-file-line html-div" data-testid="code-cell" data-line-number="398" style="position:relative"><span class="pl-s"> model.compile(optimizer='sgd', loss=tf.keras.losses.MeanAbsoluteError())</span></div></div></div><div class="child-of-line-364 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC399" class="react-file-line html-div" data-testid="code-cell" data-line-number="399" style="position:relative"><span class="pl-s"> ```</span></div></div></div><div class="child-of-line-364 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC400" class="react-file-line html-div" data-testid="code-cell" data-line-number="400" style="position:relative"><span class="pl-s"> """</span></div></div></div><div class="child-of-line-364 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC401" class="react-file-line html-div" data-testid="code-cell" data-line-number="401" style="position:relative"> </div></div></div><div class="child-of-line-364 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC402" class="react-file-line html-div" data-testid="code-cell" data-line-number="402" style="position:relative"> <span class="pl-k">def</span> <span class="pl-en">__init__</span>(</div></div></div><div class="child-of-line-364 child-of-line-401 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC403" class="react-file-line html-div" data-testid="code-cell" data-line-number="403" style="position:relative"> <span class="pl-s1">self</span>,</div></div></div><div class="child-of-line-364 child-of-line-401 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC404" class="react-file-line html-div" data-testid="code-cell" data-line-number="404" style="position:relative"> <span class="pl-s1">reduction</span><span class="pl-c1">=</span><span class="pl-s1">losses_utils</span>.<span class="pl-c1">ReductionV2</span>.<span class="pl-c1">AUTO</span>,</div></div></div><div class="child-of-line-364 child-of-line-401 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC405" class="react-file-line html-div" data-testid="code-cell" data-line-number="405" style="position:relative"> <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">"mean_absolute_error"</span>,</div></div></div><div class="child-of-line-364 child-of-line-401 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC406" class="react-file-line html-div" data-testid="code-cell" data-line-number="406" style="position:relative"> ):</div></div></div><div class="child-of-line-364 child-of-line-401 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC407" class="react-file-line html-div" data-testid="code-cell" data-line-number="407" style="position:relative"> <span class="pl-s">"""Initializes `MeanAbsoluteError` instance.</span></div></div></div><div class="child-of-line-364 child-of-line-401 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC408" class="react-file-line html-div" data-testid="code-cell" data-line-number="408" style="position:relative"> </div></div></div><div class="child-of-line-364 child-of-line-401 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC409" class="react-file-line html-div" data-testid="code-cell" data-line-number="409" style="position:relative"><span class="pl-s"> Args:</span></div></div></div><div class="child-of-line-364 child-of-line-401 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC410" class="react-file-line html-div" data-testid="code-cell" data-line-number="410" style="position:relative"><span class="pl-s"> reduction: Type of `tf.keras.losses.Reduction` to apply to</span></div></div></div><div class="child-of-line-364 child-of-line-401 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC411" class="react-file-line html-div" data-testid="code-cell" data-line-number="411" style="position:relative"><span class="pl-s"> loss. Default value is `AUTO`. `AUTO` indicates that the</span></div></div></div><div class="child-of-line-364 child-of-line-401 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC412" class="react-file-line html-div" data-testid="code-cell" data-line-number="412" style="position:relative"><span class="pl-s"> reduction option will be determined by the usage context. For</span></div></div></div><div class="child-of-line-364 child-of-line-401 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC413" class="react-file-line html-div" data-testid="code-cell" data-line-number="413" style="position:relative"><span class="pl-s"> almost all cases this defaults to `SUM_OVER_BATCH_SIZE`. When</span></div></div></div><div class="child-of-line-364 child-of-line-401 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC414" class="react-file-line html-div" data-testid="code-cell" data-line-number="414" style="position:relative"><span class="pl-s"> used under a `tf.distribute.Strategy`, except via</span></div></div></div><div class="child-of-line-364 child-of-line-401 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC415" class="react-file-line html-div" data-testid="code-cell" data-line-number="415" style="position:relative"><span class="pl-s"> `Model.compile()` and `Model.fit()`, using `AUTO` or</span></div></div></div><div class="child-of-line-364 child-of-line-401 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC416" class="react-file-line html-div" data-testid="code-cell" data-line-number="416" style="position:relative"><span class="pl-s"> `SUM_OVER_BATCH_SIZE` will raise an error. Please see this</span></div></div></div><div class="child-of-line-364 child-of-line-401 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC417" class="react-file-line html-div" data-testid="code-cell" data-line-number="417" style="position:relative"><span class="pl-s"> custom training [tutorial](</span></div></div></div><div class="child-of-line-364 child-of-line-401 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC418" class="react-file-line html-div" data-testid="code-cell" data-line-number="418" style="position:relative"><span class="pl-s"> https://www.tensorflow.org/tutorials/distribute/custom_training)</span></div></div></div><div class="child-of-line-364 child-of-line-401 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC419" class="react-file-line html-div" data-testid="code-cell" data-line-number="419" style="position:relative"><span class="pl-s"> for more details.</span></div></div></div><div class="child-of-line-364 child-of-line-401 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC420" class="react-file-line html-div" data-testid="code-cell" data-line-number="420" style="position:relative"><span class="pl-s"> name: Optional name for the instance. Defaults to</span></div></div></div><div class="child-of-line-364 child-of-line-401 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC421" class="react-file-line html-div" data-testid="code-cell" data-line-number="421" style="position:relative"><span class="pl-s"> 'mean_absolute_error'.</span></div></div></div><div class="child-of-line-364 child-of-line-401 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC422" class="react-file-line html-div" data-testid="code-cell" data-line-number="422" style="position:relative"><span class="pl-s"> """</span></div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC423" class="react-file-line html-div" data-testid="code-cell" data-line-number="423" style="position:relative"> <span class="pl-en">super</span>().<span class="pl-c1">__init__</span>(<span class="pl-s1">mean_absolute_error</span>, <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s1">name</span>, <span class="pl-s1">reduction</span><span class="pl-c1">=</span><span class="pl-s1">reduction</span>)</div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC424" class="react-file-line html-div" data-testid="code-cell" data-line-number="424" style="position:relative"> </div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC425" class="react-file-line html-div" data-testid="code-cell" data-line-number="425" style="position:relative"> </div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC426" class="react-file-line html-div" data-testid="code-cell" data-line-number="426" style="position:relative"><span class="pl-en">@<span class="pl-en">keras_export</span>(<span class="pl-s">"keras.losses.MeanAbsolutePercentageError"</span>)</span></div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC427" class="react-file-line html-div" data-testid="code-cell" data-line-number="427" style="position:relative"><span class="pl-k">class</span> <span class="pl-v">MeanAbsolutePercentageError</span>(<span class="pl-v">LossFunctionWrapper</span>):</div></div></div><div class="child-of-line-426 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC428" class="react-file-line html-div" data-testid="code-cell" data-line-number="428" style="position:relative"> <span class="pl-s">"""Computes the mean absolute percentage error between `y_true` & `y_pred`.</span></div></div></div><div class="child-of-line-426 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC429" class="react-file-line html-div" data-testid="code-cell" data-line-number="429" style="position:relative"> </div></div></div><div class="child-of-line-426 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC430" class="react-file-line html-div" data-testid="code-cell" data-line-number="430" style="position:relative"><span class="pl-s"> Formula:</span></div></div></div><div class="child-of-line-426 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC431" class="react-file-line html-div" data-testid="code-cell" data-line-number="431" style="position:relative"> </div></div></div><div class="child-of-line-426 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC432" class="react-file-line html-div" data-testid="code-cell" data-line-number="432" style="position:relative"><span class="pl-s"> `loss = 100 * abs((y_true - y_pred) / y_true)`</span></div></div></div><div class="child-of-line-426 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC433" class="react-file-line html-div" data-testid="code-cell" data-line-number="433" style="position:relative"> </div></div></div><div class="child-of-line-426 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC434" class="react-file-line html-div" data-testid="code-cell" data-line-number="434" style="position:relative"><span class="pl-s"> Note that to avoid dividing by zero, a small epsilon value</span></div></div></div><div class="child-of-line-426 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC435" class="react-file-line html-div" data-testid="code-cell" data-line-number="435" style="position:relative"><span class="pl-s"> is added to the denominator.</span></div></div></div><div class="child-of-line-426 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC436" class="react-file-line html-div" data-testid="code-cell" data-line-number="436" style="position:relative"> </div></div></div><div class="child-of-line-426 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC437" class="react-file-line html-div" data-testid="code-cell" data-line-number="437" style="position:relative"><span class="pl-s"> Standalone usage:</span></div></div></div><div class="child-of-line-426 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC438" class="react-file-line html-div" data-testid="code-cell" data-line-number="438" style="position:relative"> </div></div></div><div class="child-of-line-426 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC439" class="react-file-line html-div" data-testid="code-cell" data-line-number="439" style="position:relative"><span class="pl-s"> >>> y_true = [[2., 1.], [2., 3.]]</span></div></div></div><div class="child-of-line-426 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC440" class="react-file-line html-div" data-testid="code-cell" data-line-number="440" style="position:relative"><span class="pl-s"> >>> y_pred = [[1., 1.], [1., 0.]]</span></div></div></div><div class="child-of-line-426 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC441" class="react-file-line html-div" data-testid="code-cell" data-line-number="441" style="position:relative"><span class="pl-s"> >>> # Using 'auto'/'sum_over_batch_size' reduction type.</span></div></div></div><div class="child-of-line-426 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC442" class="react-file-line html-div" data-testid="code-cell" data-line-number="442" style="position:relative"><span class="pl-s"> >>> mape = tf.keras.losses.MeanAbsolutePercentageError()</span></div></div></div><div class="child-of-line-426 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC443" class="react-file-line html-div" data-testid="code-cell" data-line-number="443" style="position:relative"><span class="pl-s"> >>> mape(y_true, y_pred).numpy()</span></div></div></div><div class="child-of-line-426 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC444" class="react-file-line html-div" data-testid="code-cell" data-line-number="444" style="position:relative"><span class="pl-s"> 50.</span></div></div></div><div class="child-of-line-426 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC445" class="react-file-line html-div" data-testid="code-cell" data-line-number="445" style="position:relative"> </div></div></div><div class="child-of-line-426 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC446" class="react-file-line html-div" data-testid="code-cell" data-line-number="446" style="position:relative"><span class="pl-s"> >>> # Calling with 'sample_weight'.</span></div></div></div><div class="child-of-line-426 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC447" class="react-file-line html-div" data-testid="code-cell" data-line-number="447" style="position:relative"><span class="pl-s"> >>> mape(y_true, y_pred, sample_weight=[0.7, 0.3]).numpy()</span></div></div></div><div class="child-of-line-426 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC448" class="react-file-line html-div" data-testid="code-cell" data-line-number="448" style="position:relative"><span class="pl-s"> 20.</span></div></div></div><div class="child-of-line-426 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC449" class="react-file-line html-div" data-testid="code-cell" data-line-number="449" style="position:relative"> </div></div></div><div class="child-of-line-426 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC450" class="react-file-line html-div" data-testid="code-cell" data-line-number="450" style="position:relative"><span class="pl-s"> >>> # Using 'sum' reduction type.</span></div></div></div><div class="child-of-line-426 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC451" class="react-file-line html-div" data-testid="code-cell" data-line-number="451" style="position:relative"><span class="pl-s"> >>> mape = tf.keras.losses.MeanAbsolutePercentageError(</span></div></div></div><div class="child-of-line-426 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC452" class="react-file-line html-div" data-testid="code-cell" data-line-number="452" style="position:relative"><span class="pl-s"> ... reduction=tf.keras.losses.Reduction.SUM)</span></div></div></div><div class="child-of-line-426 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC453" class="react-file-line html-div" data-testid="code-cell" data-line-number="453" style="position:relative"><span class="pl-s"> >>> mape(y_true, y_pred).numpy()</span></div></div></div><div class="child-of-line-426 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC454" class="react-file-line html-div" data-testid="code-cell" data-line-number="454" style="position:relative"><span class="pl-s"> 100.</span></div></div></div><div class="child-of-line-426 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC455" class="react-file-line html-div" data-testid="code-cell" data-line-number="455" style="position:relative"> </div></div></div><div class="child-of-line-426 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC456" class="react-file-line html-div" data-testid="code-cell" data-line-number="456" style="position:relative"><span class="pl-s"> >>> # Using 'none' reduction type.</span></div></div></div><div class="child-of-line-426 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC457" class="react-file-line html-div" data-testid="code-cell" data-line-number="457" style="position:relative"><span class="pl-s"> >>> mape = tf.keras.losses.MeanAbsolutePercentageError(</span></div></div></div><div class="child-of-line-426 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC458" class="react-file-line html-div" data-testid="code-cell" data-line-number="458" style="position:relative"><span class="pl-s"> ... reduction=tf.keras.losses.Reduction.NONE)</span></div></div></div><div class="child-of-line-426 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC459" class="react-file-line html-div" data-testid="code-cell" data-line-number="459" style="position:relative"><span class="pl-s"> >>> mape(y_true, y_pred).numpy()</span></div></div></div><div class="child-of-line-426 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC460" class="react-file-line html-div" data-testid="code-cell" data-line-number="460" style="position:relative"><span class="pl-s"> array([25., 75.], dtype=float32)</span></div></div></div><div class="child-of-line-426 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC461" class="react-file-line html-div" data-testid="code-cell" data-line-number="461" style="position:relative"> </div></div></div><div class="child-of-line-426 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC462" class="react-file-line html-div" data-testid="code-cell" data-line-number="462" style="position:relative"><span class="pl-s"> Usage with the `compile()` API:</span></div></div></div><div class="child-of-line-426 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC463" class="react-file-line html-div" data-testid="code-cell" data-line-number="463" style="position:relative"> </div></div></div><div class="child-of-line-426 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC464" class="react-file-line html-div" data-testid="code-cell" data-line-number="464" style="position:relative"><span class="pl-s"> ```python</span></div></div></div><div class="child-of-line-426 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC465" class="react-file-line html-div" data-testid="code-cell" data-line-number="465" style="position:relative"><span class="pl-s"> model.compile(optimizer='sgd',</span></div></div></div><div class="child-of-line-426 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC466" class="react-file-line html-div" data-testid="code-cell" data-line-number="466" style="position:relative"><span class="pl-s"> loss=tf.keras.losses.MeanAbsolutePercentageError())</span></div></div></div><div class="child-of-line-426 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC467" class="react-file-line html-div" data-testid="code-cell" data-line-number="467" style="position:relative"><span class="pl-s"> ```</span></div></div></div><div class="child-of-line-426 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC468" class="react-file-line html-div" data-testid="code-cell" data-line-number="468" style="position:relative"><span class="pl-s"> """</span></div></div></div><div class="child-of-line-426 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC469" class="react-file-line html-div" data-testid="code-cell" data-line-number="469" style="position:relative"> </div></div></div><div class="child-of-line-426 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC470" class="react-file-line html-div" data-testid="code-cell" data-line-number="470" style="position:relative"> <span class="pl-k">def</span> <span class="pl-en">__init__</span>(</div></div></div><div class="child-of-line-426 child-of-line-469 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC471" class="react-file-line html-div" data-testid="code-cell" data-line-number="471" style="position:relative"> <span class="pl-s1">self</span>,</div></div></div><div class="child-of-line-426 child-of-line-469 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC472" class="react-file-line html-div" data-testid="code-cell" data-line-number="472" style="position:relative"> <span class="pl-s1">reduction</span><span class="pl-c1">=</span><span class="pl-s1">losses_utils</span>.<span class="pl-c1">ReductionV2</span>.<span class="pl-c1">AUTO</span>,</div></div></div><div class="child-of-line-426 child-of-line-469 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC473" class="react-file-line html-div" data-testid="code-cell" data-line-number="473" style="position:relative"> <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">"mean_absolute_percentage_error"</span>,</div></div></div><div class="child-of-line-426 child-of-line-469 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC474" class="react-file-line html-div" data-testid="code-cell" data-line-number="474" style="position:relative"> ):</div></div></div><div class="child-of-line-426 child-of-line-469 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC475" class="react-file-line html-div" data-testid="code-cell" data-line-number="475" style="position:relative"> <span class="pl-s">"""Initializes `MeanAbsolutePercentageError` instance.</span></div></div></div><div class="child-of-line-426 child-of-line-469 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC476" class="react-file-line html-div" data-testid="code-cell" data-line-number="476" style="position:relative"> </div></div></div><div class="child-of-line-426 child-of-line-469 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC477" class="react-file-line html-div" data-testid="code-cell" data-line-number="477" style="position:relative"><span class="pl-s"> Args:</span></div></div></div><div class="child-of-line-426 child-of-line-469 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC478" class="react-file-line html-div" data-testid="code-cell" data-line-number="478" style="position:relative"><span class="pl-s"> reduction: Type of `tf.keras.losses.Reduction` to apply to</span></div></div></div><div class="child-of-line-426 child-of-line-469 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC479" class="react-file-line html-div" data-testid="code-cell" data-line-number="479" style="position:relative"><span class="pl-s"> loss. Default value is `AUTO`. `AUTO` indicates that the</span></div></div></div><div class="child-of-line-426 child-of-line-469 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC480" class="react-file-line html-div" data-testid="code-cell" data-line-number="480" style="position:relative"><span class="pl-s"> reduction option will be determined by the usage context. For</span></div></div></div><div class="child-of-line-426 child-of-line-469 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC481" class="react-file-line html-div" data-testid="code-cell" data-line-number="481" style="position:relative"><span class="pl-s"> almost all cases this defaults to `SUM_OVER_BATCH_SIZE`. When</span></div></div></div><div class="child-of-line-426 child-of-line-469 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC482" class="react-file-line html-div" data-testid="code-cell" data-line-number="482" style="position:relative"><span class="pl-s"> used under a `tf.distribute.Strategy`, except via</span></div></div></div><div class="child-of-line-426 child-of-line-469 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC483" class="react-file-line html-div" data-testid="code-cell" data-line-number="483" style="position:relative"><span class="pl-s"> `Model.compile()` and `Model.fit()`, using `AUTO` or</span></div></div></div><div class="child-of-line-426 child-of-line-469 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC484" class="react-file-line html-div" data-testid="code-cell" data-line-number="484" style="position:relative"><span class="pl-s"> `SUM_OVER_BATCH_SIZE` will raise an error. Please see this</span></div></div></div><div class="child-of-line-426 child-of-line-469 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC485" class="react-file-line html-div" data-testid="code-cell" data-line-number="485" style="position:relative"><span class="pl-s"> custom training [tutorial](</span></div></div></div><div class="child-of-line-426 child-of-line-469 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC486" class="react-file-line html-div" data-testid="code-cell" data-line-number="486" style="position:relative"><span class="pl-s"> https://www.tensorflow.org/tutorials/distribute/custom_training)</span></div></div></div><div class="child-of-line-426 child-of-line-469 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC487" class="react-file-line html-div" data-testid="code-cell" data-line-number="487" style="position:relative"><span class="pl-s"> for more details.</span></div></div></div><div class="child-of-line-426 child-of-line-469 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC488" class="react-file-line html-div" data-testid="code-cell" data-line-number="488" style="position:relative"><span class="pl-s"> name: Optional name for the instance. Defaults to</span></div></div></div><div class="child-of-line-426 child-of-line-469 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC489" class="react-file-line html-div" data-testid="code-cell" data-line-number="489" style="position:relative"><span class="pl-s"> 'mean_absolute_percentage_error'.</span></div></div></div><div class="child-of-line-426 child-of-line-469 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC490" class="react-file-line html-div" data-testid="code-cell" data-line-number="490" style="position:relative"><span class="pl-s"> """</span></div></div></div><div class="child-of-line-426 child-of-line-469 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC491" class="react-file-line html-div" data-testid="code-cell" data-line-number="491" style="position:relative"> <span class="pl-en">super</span>().<span class="pl-c1">__init__</span>(</div></div></div><div class="child-of-line-426 child-of-line-469 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC492" class="react-file-line html-div" data-testid="code-cell" data-line-number="492" style="position:relative"> <span class="pl-s1">mean_absolute_percentage_error</span>, <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s1">name</span>, <span class="pl-s1">reduction</span><span class="pl-c1">=</span><span class="pl-s1">reduction</span></div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC493" class="react-file-line html-div" data-testid="code-cell" data-line-number="493" style="position:relative"> )</div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC494" class="react-file-line html-div" data-testid="code-cell" data-line-number="494" style="position:relative"> </div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC495" class="react-file-line html-div" data-testid="code-cell" data-line-number="495" style="position:relative"> </div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC496" class="react-file-line html-div" data-testid="code-cell" data-line-number="496" style="position:relative"><span class="pl-en">@<span class="pl-en">keras_export</span>(<span class="pl-s">"keras.losses.MeanSquaredLogarithmicError"</span>)</span></div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC497" class="react-file-line html-div" data-testid="code-cell" data-line-number="497" style="position:relative"><span class="pl-k">class</span> <span class="pl-v">MeanSquaredLogarithmicError</span>(<span class="pl-v">LossFunctionWrapper</span>):</div></div></div><div class="child-of-line-496 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC498" class="react-file-line html-div" data-testid="code-cell" data-line-number="498" style="position:relative"> <span class="pl-s">"""Computes the mean squared logarithmic error between `y_true` & `y_pred`.</span></div></div></div><div class="child-of-line-496 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC499" class="react-file-line html-div" data-testid="code-cell" data-line-number="499" style="position:relative"> </div></div></div><div class="child-of-line-496 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC500" class="react-file-line html-div" data-testid="code-cell" data-line-number="500" style="position:relative"><span class="pl-s"> `loss = square(log(y_true + 1.) - log(y_pred + 1.))`</span></div></div></div><div class="child-of-line-496 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC501" class="react-file-line html-div" data-testid="code-cell" data-line-number="501" style="position:relative"> </div></div></div><div class="child-of-line-496 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC502" class="react-file-line html-div" data-testid="code-cell" data-line-number="502" style="position:relative"><span class="pl-s"> Standalone usage:</span></div></div></div><div class="child-of-line-496 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC503" class="react-file-line html-div" data-testid="code-cell" data-line-number="503" style="position:relative"> </div></div></div><div class="child-of-line-496 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC504" class="react-file-line html-div" data-testid="code-cell" data-line-number="504" style="position:relative"><span class="pl-s"> >>> y_true = [[0., 1.], [0., 0.]]</span></div></div></div><div class="child-of-line-496 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC505" class="react-file-line html-div" data-testid="code-cell" data-line-number="505" style="position:relative"><span class="pl-s"> >>> y_pred = [[1., 1.], [1., 0.]]</span></div></div></div><div class="child-of-line-496 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC506" class="react-file-line html-div" data-testid="code-cell" data-line-number="506" style="position:relative"><span class="pl-s"> >>> # Using 'auto'/'sum_over_batch_size' reduction type.</span></div></div></div><div class="child-of-line-496 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC507" class="react-file-line html-div" data-testid="code-cell" data-line-number="507" style="position:relative"><span class="pl-s"> >>> msle = tf.keras.losses.MeanSquaredLogarithmicError()</span></div></div></div><div class="child-of-line-496 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC508" class="react-file-line html-div" data-testid="code-cell" data-line-number="508" style="position:relative"><span class="pl-s"> >>> msle(y_true, y_pred).numpy()</span></div></div></div><div class="child-of-line-496 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC509" class="react-file-line html-div" data-testid="code-cell" data-line-number="509" style="position:relative"><span class="pl-s"> 0.240</span></div></div></div><div class="child-of-line-496 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC510" class="react-file-line html-div" data-testid="code-cell" data-line-number="510" style="position:relative"> </div></div></div><div class="child-of-line-496 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC511" class="react-file-line html-div" data-testid="code-cell" data-line-number="511" style="position:relative"><span class="pl-s"> >>> # Calling with 'sample_weight'.</span></div></div></div><div class="child-of-line-496 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC512" class="react-file-line html-div" data-testid="code-cell" data-line-number="512" style="position:relative"><span class="pl-s"> >>> msle(y_true, y_pred, sample_weight=[0.7, 0.3]).numpy()</span></div></div></div><div class="child-of-line-496 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC513" class="react-file-line html-div" data-testid="code-cell" data-line-number="513" style="position:relative"><span class="pl-s"> 0.120</span></div></div></div><div class="child-of-line-496 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC514" class="react-file-line html-div" data-testid="code-cell" data-line-number="514" style="position:relative"> </div></div></div><div class="child-of-line-496 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC515" class="react-file-line html-div" data-testid="code-cell" data-line-number="515" style="position:relative"><span class="pl-s"> >>> # Using 'sum' reduction type.</span></div></div></div><div class="child-of-line-496 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC516" class="react-file-line html-div" data-testid="code-cell" data-line-number="516" style="position:relative"><span class="pl-s"> >>> msle = tf.keras.losses.MeanSquaredLogarithmicError(</span></div></div></div><div class="child-of-line-496 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC517" class="react-file-line html-div" data-testid="code-cell" data-line-number="517" style="position:relative"><span class="pl-s"> ... reduction=tf.keras.losses.Reduction.SUM)</span></div></div></div><div class="child-of-line-496 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC518" class="react-file-line html-div" data-testid="code-cell" data-line-number="518" style="position:relative"><span class="pl-s"> >>> msle(y_true, y_pred).numpy()</span></div></div></div><div class="child-of-line-496 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC519" class="react-file-line html-div" data-testid="code-cell" data-line-number="519" style="position:relative"><span class="pl-s"> 0.480</span></div></div></div><div class="child-of-line-496 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC520" class="react-file-line html-div" data-testid="code-cell" data-line-number="520" style="position:relative"> </div></div></div><div class="child-of-line-496 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC521" class="react-file-line html-div" data-testid="code-cell" data-line-number="521" style="position:relative"><span class="pl-s"> >>> # Using 'none' reduction type.</span></div></div></div><div class="child-of-line-496 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC522" class="react-file-line html-div" data-testid="code-cell" data-line-number="522" style="position:relative"><span class="pl-s"> >>> msle = tf.keras.losses.MeanSquaredLogarithmicError(</span></div></div></div><div class="child-of-line-496 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC523" class="react-file-line html-div" data-testid="code-cell" data-line-number="523" style="position:relative"><span class="pl-s"> ... reduction=tf.keras.losses.Reduction.NONE)</span></div></div></div><div class="child-of-line-496 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC524" class="react-file-line html-div" data-testid="code-cell" data-line-number="524" style="position:relative"><span class="pl-s"> >>> msle(y_true, y_pred).numpy()</span></div></div></div><div class="child-of-line-496 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC525" class="react-file-line html-div" data-testid="code-cell" data-line-number="525" style="position:relative"><span class="pl-s"> array([0.240, 0.240], dtype=float32)</span></div></div></div><div class="child-of-line-496 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC526" class="react-file-line html-div" data-testid="code-cell" data-line-number="526" style="position:relative"> </div></div></div><div class="child-of-line-496 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC527" class="react-file-line html-div" data-testid="code-cell" data-line-number="527" style="position:relative"><span class="pl-s"> Usage with the `compile()` API:</span></div></div></div><div class="child-of-line-496 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC528" class="react-file-line html-div" data-testid="code-cell" data-line-number="528" style="position:relative"> </div></div></div><div class="child-of-line-496 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC529" class="react-file-line html-div" data-testid="code-cell" data-line-number="529" style="position:relative"><span class="pl-s"> ```python</span></div></div></div><div class="child-of-line-496 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC530" class="react-file-line html-div" data-testid="code-cell" data-line-number="530" style="position:relative"><span class="pl-s"> model.compile(optimizer='sgd',</span></div></div></div><div class="child-of-line-496 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC531" class="react-file-line html-div" data-testid="code-cell" data-line-number="531" style="position:relative"><span class="pl-s"> loss=tf.keras.losses.MeanSquaredLogarithmicError())</span></div></div></div><div class="child-of-line-496 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC532" class="react-file-line html-div" data-testid="code-cell" data-line-number="532" style="position:relative"><span class="pl-s"> ```</span></div></div></div><div class="child-of-line-496 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC533" class="react-file-line html-div" data-testid="code-cell" data-line-number="533" style="position:relative"><span class="pl-s"> """</span></div></div></div><div class="child-of-line-496 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC534" class="react-file-line html-div" data-testid="code-cell" data-line-number="534" style="position:relative"> </div></div></div><div class="child-of-line-496 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC535" class="react-file-line html-div" data-testid="code-cell" data-line-number="535" style="position:relative"> <span class="pl-k">def</span> <span class="pl-en">__init__</span>(</div></div></div><div class="child-of-line-496 child-of-line-534 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC536" class="react-file-line html-div" data-testid="code-cell" data-line-number="536" style="position:relative"> <span class="pl-s1">self</span>,</div></div></div><div class="child-of-line-496 child-of-line-534 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC537" class="react-file-line html-div" data-testid="code-cell" data-line-number="537" style="position:relative"> <span class="pl-s1">reduction</span><span class="pl-c1">=</span><span class="pl-s1">losses_utils</span>.<span class="pl-c1">ReductionV2</span>.<span class="pl-c1">AUTO</span>,</div></div></div><div class="child-of-line-496 child-of-line-534 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC538" class="react-file-line html-div" data-testid="code-cell" data-line-number="538" style="position:relative"> <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">"mean_squared_logarithmic_error"</span>,</div></div></div><div class="child-of-line-496 child-of-line-534 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC539" class="react-file-line html-div" data-testid="code-cell" data-line-number="539" style="position:relative"> ):</div></div></div><div class="child-of-line-496 child-of-line-534 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC540" class="react-file-line html-div" data-testid="code-cell" data-line-number="540" style="position:relative"> <span class="pl-s">"""Initializes `MeanSquaredLogarithmicError` instance.</span></div></div></div><div class="child-of-line-496 child-of-line-534 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC541" class="react-file-line html-div" data-testid="code-cell" data-line-number="541" style="position:relative"> </div></div></div><div class="child-of-line-496 child-of-line-534 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC542" class="react-file-line html-div" data-testid="code-cell" data-line-number="542" style="position:relative"><span class="pl-s"> Args:</span></div></div></div><div class="child-of-line-496 child-of-line-534 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC543" class="react-file-line html-div" data-testid="code-cell" data-line-number="543" style="position:relative"><span class="pl-s"> reduction: Type of `tf.keras.losses.Reduction` to apply to</span></div></div></div><div class="child-of-line-496 child-of-line-534 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC544" class="react-file-line html-div" data-testid="code-cell" data-line-number="544" style="position:relative"><span class="pl-s"> loss. Default value is `AUTO`. `AUTO` indicates that the</span></div></div></div><div class="child-of-line-496 child-of-line-534 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC545" class="react-file-line html-div" data-testid="code-cell" data-line-number="545" style="position:relative"><span class="pl-s"> reduction option will be determined by the usage context. For</span></div></div></div><div class="child-of-line-496 child-of-line-534 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC546" class="react-file-line html-div" data-testid="code-cell" data-line-number="546" style="position:relative"><span class="pl-s"> almost all cases this defaults to `SUM_OVER_BATCH_SIZE`. When</span></div></div></div><div class="child-of-line-496 child-of-line-534 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC547" class="react-file-line html-div" data-testid="code-cell" data-line-number="547" style="position:relative"><span class="pl-s"> used under a `tf.distribute.Strategy`, except via</span></div></div></div><div class="child-of-line-496 child-of-line-534 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC548" class="react-file-line html-div" data-testid="code-cell" data-line-number="548" style="position:relative"><span class="pl-s"> `Model.compile()` and `Model.fit()`, using `AUTO` or</span></div></div></div><div class="child-of-line-496 child-of-line-534 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC549" class="react-file-line html-div" data-testid="code-cell" data-line-number="549" style="position:relative"><span class="pl-s"> `SUM_OVER_BATCH_SIZE` will raise an error. Please see this</span></div></div></div><div class="child-of-line-496 child-of-line-534 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC550" class="react-file-line html-div" data-testid="code-cell" data-line-number="550" style="position:relative"><span class="pl-s"> custom training [tutorial](</span></div></div></div><div class="child-of-line-496 child-of-line-534 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC551" class="react-file-line html-div" data-testid="code-cell" data-line-number="551" style="position:relative"><span class="pl-s"> https://www.tensorflow.org/tutorials/distribute/custom_training)</span></div></div></div><div class="child-of-line-496 child-of-line-534 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC552" class="react-file-line html-div" data-testid="code-cell" data-line-number="552" style="position:relative"><span class="pl-s"> for more details.</span></div></div></div><div class="child-of-line-496 child-of-line-534 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC553" class="react-file-line html-div" data-testid="code-cell" data-line-number="553" style="position:relative"><span class="pl-s"> name: Optional name for the instance. Defaults to</span></div></div></div><div class="child-of-line-496 child-of-line-534 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC554" class="react-file-line html-div" data-testid="code-cell" data-line-number="554" style="position:relative"><span class="pl-s"> 'mean_squared_logarithmic_error'.</span></div></div></div><div class="child-of-line-496 child-of-line-534 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC555" class="react-file-line html-div" data-testid="code-cell" data-line-number="555" style="position:relative"><span class="pl-s"> """</span></div></div></div><div class="child-of-line-496 child-of-line-534 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC556" class="react-file-line html-div" data-testid="code-cell" data-line-number="556" style="position:relative"> <span class="pl-en">super</span>().<span class="pl-c1">__init__</span>(</div></div></div><div class="child-of-line-496 child-of-line-534 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC557" class="react-file-line html-div" data-testid="code-cell" data-line-number="557" style="position:relative"> <span class="pl-s1">mean_squared_logarithmic_error</span>, <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s1">name</span>, <span class="pl-s1">reduction</span><span class="pl-c1">=</span><span class="pl-s1">reduction</span></div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC558" class="react-file-line html-div" data-testid="code-cell" data-line-number="558" style="position:relative"> )</div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC559" class="react-file-line html-div" data-testid="code-cell" data-line-number="559" style="position:relative"> </div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC560" class="react-file-line html-div" data-testid="code-cell" data-line-number="560" style="position:relative"> </div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC561" class="react-file-line html-div" data-testid="code-cell" data-line-number="561" style="position:relative"><span class="pl-en">@<span class="pl-en">keras_export</span>(<span class="pl-s">"keras.losses.BinaryCrossentropy"</span>)</span></div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC562" class="react-file-line html-div" data-testid="code-cell" data-line-number="562" style="position:relative"><span class="pl-k">class</span> <span class="pl-v">BinaryCrossentropy</span>(<span class="pl-v">LossFunctionWrapper</span>):</div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC563" class="react-file-line html-div" data-testid="code-cell" data-line-number="563" style="position:relative"> <span class="pl-s">"""Computes the cross-entropy loss between true labels and predicted labels.</span></div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC564" class="react-file-line html-div" data-testid="code-cell" data-line-number="564" style="position:relative"> </div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC565" class="react-file-line html-div" data-testid="code-cell" data-line-number="565" style="position:relative"><span class="pl-s"> Use this cross-entropy loss for binary (0 or 1) classification applications.</span></div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC566" class="react-file-line html-div" data-testid="code-cell" data-line-number="566" style="position:relative"><span class="pl-s"> The loss function requires the following inputs:</span></div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC567" class="react-file-line html-div" data-testid="code-cell" data-line-number="567" style="position:relative"> </div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC568" class="react-file-line html-div" data-testid="code-cell" data-line-number="568" style="position:relative"><span class="pl-s"> - `y_true` (true label): This is either 0 or 1.</span></div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC569" class="react-file-line html-div" data-testid="code-cell" data-line-number="569" style="position:relative"><span class="pl-s"> - `y_pred` (predicted value): This is the model's prediction, i.e, a single</span></div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC570" class="react-file-line html-div" data-testid="code-cell" data-line-number="570" style="position:relative"><span class="pl-s"> floating-point value which either represents a</span></div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC571" class="react-file-line html-div" data-testid="code-cell" data-line-number="571" style="position:relative"><span class="pl-s"> [logit](https://en.wikipedia.org/wiki/Logit), (i.e, value in [-inf, inf]</span></div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC572" class="react-file-line html-div" data-testid="code-cell" data-line-number="572" style="position:relative"><span class="pl-s"> when `from_logits=True`) or a probability (i.e, value in [0., 1.] when</span></div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC573" class="react-file-line html-div" data-testid="code-cell" data-line-number="573" style="position:relative"><span class="pl-s"> `from_logits=False`).</span></div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC574" class="react-file-line html-div" data-testid="code-cell" data-line-number="574" style="position:relative"> </div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC575" class="react-file-line html-div" data-testid="code-cell" data-line-number="575" style="position:relative"><span class="pl-s"> **Recommended Usage:** (set `from_logits=True`)</span></div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC576" class="react-file-line html-div" data-testid="code-cell" data-line-number="576" style="position:relative"> </div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC577" class="react-file-line html-div" data-testid="code-cell" data-line-number="577" style="position:relative"><span class="pl-s"> With `tf.keras` API:</span></div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC578" class="react-file-line html-div" data-testid="code-cell" data-line-number="578" style="position:relative"> </div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC579" class="react-file-line html-div" data-testid="code-cell" data-line-number="579" style="position:relative"><span class="pl-s"> ```python</span></div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC580" class="react-file-line html-div" data-testid="code-cell" data-line-number="580" style="position:relative"><span class="pl-s"> model.compile(</span></div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC581" class="react-file-line html-div" data-testid="code-cell" data-line-number="581" style="position:relative"><span class="pl-s"> loss=tf.keras.losses.BinaryCrossentropy(from_logits=True),</span></div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC582" class="react-file-line html-div" data-testid="code-cell" data-line-number="582" style="position:relative"><span class="pl-s"> ....</span></div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC583" class="react-file-line html-div" data-testid="code-cell" data-line-number="583" style="position:relative"><span class="pl-s"> )</span></div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC584" class="react-file-line html-div" data-testid="code-cell" data-line-number="584" style="position:relative"><span class="pl-s"> ```</span></div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC585" class="react-file-line html-div" data-testid="code-cell" data-line-number="585" style="position:relative"> </div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC586" class="react-file-line html-div" data-testid="code-cell" data-line-number="586" style="position:relative"><span class="pl-s"> As a standalone function:</span></div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC587" class="react-file-line html-div" data-testid="code-cell" data-line-number="587" style="position:relative"> </div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC588" class="react-file-line html-div" data-testid="code-cell" data-line-number="588" style="position:relative"><span class="pl-s"> >>> # Example 1: (batch_size = 1, number of samples = 4)</span></div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC589" class="react-file-line html-div" data-testid="code-cell" data-line-number="589" style="position:relative"><span class="pl-s"> >>> y_true = [0, 1, 0, 0]</span></div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC590" class="react-file-line html-div" data-testid="code-cell" data-line-number="590" style="position:relative"><span class="pl-s"> >>> y_pred = [-18.6, 0.51, 2.94, -12.8]</span></div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC591" class="react-file-line html-div" data-testid="code-cell" data-line-number="591" style="position:relative"><span class="pl-s"> >>> bce = tf.keras.losses.BinaryCrossentropy(from_logits=True)</span></div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC592" class="react-file-line html-div" data-testid="code-cell" data-line-number="592" style="position:relative"><span class="pl-s"> >>> bce(y_true, y_pred).numpy()</span></div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC593" class="react-file-line html-div" data-testid="code-cell" data-line-number="593" style="position:relative"><span class="pl-s"> 0.865</span></div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC594" class="react-file-line html-div" data-testid="code-cell" data-line-number="594" style="position:relative"> </div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC595" class="react-file-line html-div" data-testid="code-cell" data-line-number="595" style="position:relative"><span class="pl-s"> >>> # Example 2: (batch_size = 2, number of samples = 4)</span></div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC596" class="react-file-line html-div" data-testid="code-cell" data-line-number="596" style="position:relative"><span class="pl-s"> >>> y_true = [[0, 1], [0, 0]]</span></div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC597" class="react-file-line html-div" data-testid="code-cell" data-line-number="597" style="position:relative"><span class="pl-s"> >>> y_pred = [[-18.6, 0.51], [2.94, -12.8]]</span></div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC598" class="react-file-line html-div" data-testid="code-cell" data-line-number="598" style="position:relative"><span class="pl-s"> >>> # Using default 'auto'/'sum_over_batch_size' reduction type.</span></div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC599" class="react-file-line html-div" data-testid="code-cell" data-line-number="599" style="position:relative"><span class="pl-s"> >>> bce = tf.keras.losses.BinaryCrossentropy(from_logits=True)</span></div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC600" class="react-file-line html-div" data-testid="code-cell" data-line-number="600" style="position:relative"><span class="pl-s"> >>> bce(y_true, y_pred).numpy()</span></div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC601" class="react-file-line html-div" data-testid="code-cell" data-line-number="601" style="position:relative"><span class="pl-s"> 0.865</span></div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC602" class="react-file-line html-div" data-testid="code-cell" data-line-number="602" style="position:relative"><span class="pl-s"> >>> # Using 'sample_weight' attribute</span></div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC603" class="react-file-line html-div" data-testid="code-cell" data-line-number="603" style="position:relative"><span class="pl-s"> >>> bce(y_true, y_pred, sample_weight=[0.8, 0.2]).numpy()</span></div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC604" class="react-file-line html-div" data-testid="code-cell" data-line-number="604" style="position:relative"><span class="pl-s"> 0.243</span></div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC605" class="react-file-line html-div" data-testid="code-cell" data-line-number="605" style="position:relative"><span class="pl-s"> >>> # Using 'sum' reduction` type.</span></div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC606" class="react-file-line html-div" data-testid="code-cell" data-line-number="606" style="position:relative"><span class="pl-s"> >>> bce = tf.keras.losses.BinaryCrossentropy(from_logits=True,</span></div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC607" class="react-file-line html-div" data-testid="code-cell" data-line-number="607" style="position:relative"><span class="pl-s"> ... reduction=tf.keras.losses.Reduction.SUM)</span></div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC608" class="react-file-line html-div" data-testid="code-cell" data-line-number="608" style="position:relative"><span class="pl-s"> >>> bce(y_true, y_pred).numpy()</span></div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC609" class="react-file-line html-div" data-testid="code-cell" data-line-number="609" style="position:relative"><span class="pl-s"> 1.730</span></div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC610" class="react-file-line html-div" data-testid="code-cell" data-line-number="610" style="position:relative"><span class="pl-s"> >>> # Using 'none' reduction type.</span></div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC611" class="react-file-line html-div" data-testid="code-cell" data-line-number="611" style="position:relative"><span class="pl-s"> >>> bce = tf.keras.losses.BinaryCrossentropy(from_logits=True,</span></div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC612" class="react-file-line html-div" data-testid="code-cell" data-line-number="612" style="position:relative"><span class="pl-s"> ... reduction=tf.keras.losses.Reduction.NONE)</span></div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC613" class="react-file-line html-div" data-testid="code-cell" data-line-number="613" style="position:relative"><span class="pl-s"> >>> bce(y_true, y_pred).numpy()</span></div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC614" class="react-file-line html-div" data-testid="code-cell" data-line-number="614" style="position:relative"><span class="pl-s"> array([0.235, 1.496], dtype=float32)</span></div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC615" class="react-file-line html-div" data-testid="code-cell" data-line-number="615" style="position:relative"> </div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC616" class="react-file-line html-div" data-testid="code-cell" data-line-number="616" style="position:relative"><span class="pl-s"> **Default Usage:** (set `from_logits=False`)</span></div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC617" class="react-file-line html-div" data-testid="code-cell" data-line-number="617" style="position:relative"> </div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC618" class="react-file-line html-div" data-testid="code-cell" data-line-number="618" style="position:relative"><span class="pl-s"> >>> # Make the following updates to the above "Recommended Usage" section</span></div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC619" class="react-file-line html-div" data-testid="code-cell" data-line-number="619" style="position:relative"><span class="pl-s"> >>> # 1. Set `from_logits=False`</span></div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC620" class="react-file-line html-div" data-testid="code-cell" data-line-number="620" style="position:relative"><span class="pl-s"> >>> tf.keras.losses.BinaryCrossentropy() # OR ...('from_logits=False')</span></div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC621" class="react-file-line html-div" data-testid="code-cell" data-line-number="621" style="position:relative"><span class="pl-s"> >>> # 2. Update `y_pred` to use probabilities instead of logits</span></div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC622" class="react-file-line html-div" data-testid="code-cell" data-line-number="622" style="position:relative"><span class="pl-s"> >>> y_pred = [0.6, 0.3, 0.2, 0.8] # OR [[0.6, 0.3], [0.2, 0.8]]</span></div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC623" class="react-file-line html-div" data-testid="code-cell" data-line-number="623" style="position:relative"><span class="pl-s"> """</span></div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC624" class="react-file-line html-div" data-testid="code-cell" data-line-number="624" style="position:relative"> </div></div></div><div class="child-of-line-561 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC625" class="react-file-line html-div" data-testid="code-cell" data-line-number="625" style="position:relative"> <span class="pl-k">def</span> <span class="pl-en">__init__</span>(</div></div></div><div class="child-of-line-561 child-of-line-624 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC626" class="react-file-line html-div" data-testid="code-cell" data-line-number="626" style="position:relative"> <span class="pl-s1">self</span>,</div></div></div><div class="child-of-line-561 child-of-line-624 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC627" class="react-file-line html-div" data-testid="code-cell" data-line-number="627" style="position:relative"> <span class="pl-s1">from_logits</span><span class="pl-c1">=</span><span class="pl-c1">False</span>,</div></div></div><div class="child-of-line-561 child-of-line-624 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC628" class="react-file-line html-div" data-testid="code-cell" data-line-number="628" style="position:relative"> <span class="pl-s1">label_smoothing</span><span class="pl-c1">=</span><span class="pl-c1">0.0</span>,</div></div></div><div class="child-of-line-561 child-of-line-624 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC629" class="react-file-line html-div" data-testid="code-cell" data-line-number="629" style="position:relative"> <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">-</span><span class="pl-c1">1</span>,</div></div></div><div class="child-of-line-561 child-of-line-624 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC630" class="react-file-line html-div" data-testid="code-cell" data-line-number="630" style="position:relative"> <span class="pl-s1">reduction</span><span class="pl-c1">=</span><span class="pl-s1">losses_utils</span>.<span class="pl-c1">ReductionV2</span>.<span class="pl-c1">AUTO</span>,</div></div></div><div class="child-of-line-561 child-of-line-624 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC631" class="react-file-line html-div" data-testid="code-cell" data-line-number="631" style="position:relative"> <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">"binary_crossentropy"</span>,</div></div></div><div class="child-of-line-561 child-of-line-624 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC632" class="react-file-line html-div" data-testid="code-cell" data-line-number="632" style="position:relative"> ):</div></div></div><div class="child-of-line-561 child-of-line-624 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC633" class="react-file-line html-div" data-testid="code-cell" data-line-number="633" style="position:relative"> <span class="pl-s">"""Initializes `BinaryCrossentropy` instance.</span></div></div></div><div class="child-of-line-561 child-of-line-624 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC634" class="react-file-line html-div" data-testid="code-cell" data-line-number="634" style="position:relative"> </div></div></div><div class="child-of-line-561 child-of-line-624 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC635" class="react-file-line html-div" data-testid="code-cell" data-line-number="635" style="position:relative"><span class="pl-s"> Args:</span></div></div></div><div class="child-of-line-561 child-of-line-624 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC636" class="react-file-line html-div" data-testid="code-cell" data-line-number="636" style="position:relative"><span class="pl-s"> from_logits: Whether to interpret `y_pred` as a tensor of</span></div></div></div><div class="child-of-line-561 child-of-line-624 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC637" class="react-file-line html-div" data-testid="code-cell" data-line-number="637" style="position:relative"><span class="pl-s"> [logit](https://en.wikipedia.org/wiki/Logit) values. By default,</span></div></div></div><div class="child-of-line-561 child-of-line-624 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC638" class="react-file-line html-div" data-testid="code-cell" data-line-number="638" style="position:relative"><span class="pl-s"> we assume that `y_pred` contains probabilities (i.e., values in</span></div></div></div><div class="child-of-line-561 child-of-line-624 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC639" class="react-file-line html-div" data-testid="code-cell" data-line-number="639" style="position:relative"><span class="pl-s"> [0, 1]).</span></div></div></div><div class="child-of-line-561 child-of-line-624 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC640" class="react-file-line html-div" data-testid="code-cell" data-line-number="640" style="position:relative"><span class="pl-s"> label_smoothing: Float in [0, 1]. When 0, no smoothing occurs.</span></div></div></div><div class="child-of-line-561 child-of-line-624 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC641" class="react-file-line html-div" data-testid="code-cell" data-line-number="641" style="position:relative"><span class="pl-s"> When > 0, we compute the loss between the predicted labels and a</span></div></div></div><div class="child-of-line-561 child-of-line-624 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC642" class="react-file-line html-div" data-testid="code-cell" data-line-number="642" style="position:relative"><span class="pl-s"> smoothed version of the true labels, where the smoothing</span></div></div></div><div class="child-of-line-561 child-of-line-624 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC643" class="react-file-line html-div" data-testid="code-cell" data-line-number="643" style="position:relative"><span class="pl-s"> squeezes the labels towards 0.5. Larger values of</span></div></div></div><div class="child-of-line-561 child-of-line-624 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC644" class="react-file-line html-div" data-testid="code-cell" data-line-number="644" style="position:relative"><span class="pl-s"> `label_smoothing` correspond to heavier smoothing.</span></div></div></div><div class="child-of-line-561 child-of-line-624 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC645" class="react-file-line html-div" data-testid="code-cell" data-line-number="645" style="position:relative"><span class="pl-s"> axis: The axis along which to compute crossentropy (the features</span></div></div></div><div class="child-of-line-561 child-of-line-624 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC646" class="react-file-line html-div" data-testid="code-cell" data-line-number="646" style="position:relative"><span class="pl-s"> axis). Defaults to -1.</span></div></div></div><div class="child-of-line-561 child-of-line-624 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC647" class="react-file-line html-div" data-testid="code-cell" data-line-number="647" style="position:relative"><span class="pl-s"> reduction: Type of `tf.keras.losses.Reduction` to apply to</span></div></div></div><div class="child-of-line-561 child-of-line-624 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC648" class="react-file-line html-div" data-testid="code-cell" data-line-number="648" style="position:relative"><span class="pl-s"> loss. Default value is `AUTO`. `AUTO` indicates that the</span></div></div></div><div class="child-of-line-561 child-of-line-624 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC649" class="react-file-line html-div" data-testid="code-cell" data-line-number="649" style="position:relative"><span class="pl-s"> reduction option will be determined by the usage context. For</span></div></div></div><div class="child-of-line-561 child-of-line-624 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC650" class="react-file-line html-div" data-testid="code-cell" data-line-number="650" style="position:relative"><span class="pl-s"> almost all cases this defaults to `SUM_OVER_BATCH_SIZE`. When</span></div></div></div><div class="child-of-line-561 child-of-line-624 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC651" class="react-file-line html-div" data-testid="code-cell" data-line-number="651" style="position:relative"><span class="pl-s"> used under a `tf.distribute.Strategy`, except via</span></div></div></div><div class="child-of-line-561 child-of-line-624 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC652" class="react-file-line html-div" data-testid="code-cell" data-line-number="652" style="position:relative"><span class="pl-s"> `Model.compile()` and `Model.fit()`, using `AUTO` or</span></div></div></div><div class="child-of-line-561 child-of-line-624 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC653" class="react-file-line html-div" data-testid="code-cell" data-line-number="653" style="position:relative"><span class="pl-s"> `SUM_OVER_BATCH_SIZE` will raise an error. Please see this</span></div></div></div><div class="child-of-line-561 child-of-line-624 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC654" class="react-file-line html-div" data-testid="code-cell" data-line-number="654" style="position:relative"><span class="pl-s"> custom training [tutorial](</span></div></div></div><div class="child-of-line-561 child-of-line-624 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC655" class="react-file-line html-div" data-testid="code-cell" data-line-number="655" style="position:relative"><span class="pl-s"> https://www.tensorflow.org/tutorials/distribute/custom_training)</span></div></div></div><div class="child-of-line-561 child-of-line-624 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC656" class="react-file-line html-div" data-testid="code-cell" data-line-number="656" style="position:relative"><span class="pl-s"> for more details.</span></div></div></div><div class="child-of-line-561 child-of-line-624 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC657" class="react-file-line html-div" data-testid="code-cell" data-line-number="657" style="position:relative"><span class="pl-s"> name: Name for the op. Defaults to 'binary_crossentropy'.</span></div></div></div><div class="child-of-line-561 child-of-line-624 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC658" class="react-file-line html-div" data-testid="code-cell" data-line-number="658" style="position:relative"><span class="pl-s"> """</span></div></div></div><div class="child-of-line-561 child-of-line-624 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC659" class="react-file-line html-div" data-testid="code-cell" data-line-number="659" style="position:relative"> <span class="pl-en">super</span>().<span class="pl-c1">__init__</span>(</div></div></div><div class="child-of-line-561 child-of-line-624 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC660" class="react-file-line html-div" data-testid="code-cell" data-line-number="660" style="position:relative"> <span class="pl-s1">binary_crossentropy</span>,</div></div></div><div class="child-of-line-561 child-of-line-624 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC661" class="react-file-line html-div" data-testid="code-cell" data-line-number="661" style="position:relative"> <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s1">name</span>,</div></div></div><div class="child-of-line-561 child-of-line-624 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC662" class="react-file-line html-div" data-testid="code-cell" data-line-number="662" style="position:relative"> <span class="pl-s1">reduction</span><span class="pl-c1">=</span><span class="pl-s1">reduction</span>,</div></div></div><div class="child-of-line-561 child-of-line-624 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC663" class="react-file-line html-div" data-testid="code-cell" data-line-number="663" style="position:relative"> <span class="pl-s1">from_logits</span><span class="pl-c1">=</span><span class="pl-s1">from_logits</span>,</div></div></div><div class="child-of-line-561 child-of-line-624 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC664" class="react-file-line html-div" data-testid="code-cell" data-line-number="664" style="position:relative"> <span class="pl-s1">label_smoothing</span><span class="pl-c1">=</span><span class="pl-s1">label_smoothing</span>,</div></div></div><div class="child-of-line-561 child-of-line-624 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC665" class="react-file-line html-div" data-testid="code-cell" data-line-number="665" style="position:relative"> <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-s1">axis</span>,</div></div></div><div class="child-of-line-561 child-of-line-624 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC666" class="react-file-line html-div" data-testid="code-cell" data-line-number="666" style="position:relative"> )</div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC667" class="react-file-line html-div" data-testid="code-cell" data-line-number="667" style="position:relative"> <span class="pl-s1">self</span>.<span class="pl-c1">from_logits</span> <span class="pl-c1">=</span> <span class="pl-s1">from_logits</span></div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC668" class="react-file-line html-div" data-testid="code-cell" data-line-number="668" style="position:relative"> </div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC669" class="react-file-line html-div" data-testid="code-cell" data-line-number="669" style="position:relative"> </div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC670" class="react-file-line html-div" data-testid="code-cell" data-line-number="670" style="position:relative"><span class="pl-en">@<span class="pl-en">keras_export</span>(<span class="pl-s">"keras.losses.BinaryFocalCrossentropy"</span>)</span></div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC671" class="react-file-line html-div" data-testid="code-cell" data-line-number="671" style="position:relative"><span class="pl-k">class</span> <span class="pl-v">BinaryFocalCrossentropy</span>(<span class="pl-v">LossFunctionWrapper</span>):</div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC672" class="react-file-line html-div" data-testid="code-cell" data-line-number="672" style="position:relative"> <span class="pl-s">"""Computes focal cross-entropy loss between true labels and predictions.</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC673" class="react-file-line html-div" data-testid="code-cell" data-line-number="673" style="position:relative"> </div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC674" class="react-file-line html-div" data-testid="code-cell" data-line-number="674" style="position:relative"><span class="pl-s"> Binary cross-entropy loss is often used for binary (0 or 1) classification</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC675" class="react-file-line html-div" data-testid="code-cell" data-line-number="675" style="position:relative"><span class="pl-s"> tasks. The loss function requires the following inputs:</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC676" class="react-file-line html-div" data-testid="code-cell" data-line-number="676" style="position:relative"> </div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC677" class="react-file-line html-div" data-testid="code-cell" data-line-number="677" style="position:relative"><span class="pl-s"> - `y_true` (true label): This is either 0 or 1.</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC678" class="react-file-line html-div" data-testid="code-cell" data-line-number="678" style="position:relative"><span class="pl-s"> - `y_pred` (predicted value): This is the model's prediction, i.e, a single</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC679" class="react-file-line html-div" data-testid="code-cell" data-line-number="679" style="position:relative"><span class="pl-s"> floating-point value which either represents a</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC680" class="react-file-line html-div" data-testid="code-cell" data-line-number="680" style="position:relative"><span class="pl-s"> [logit](https://en.wikipedia.org/wiki/Logit), (i.e, value in [-inf, inf]</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC681" class="react-file-line html-div" data-testid="code-cell" data-line-number="681" style="position:relative"><span class="pl-s"> when `from_logits=True`) or a probability (i.e, value in [0., 1.] when</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC682" class="react-file-line html-div" data-testid="code-cell" data-line-number="682" style="position:relative"><span class="pl-s"> `from_logits=False`).</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC683" class="react-file-line html-div" data-testid="code-cell" data-line-number="683" style="position:relative"> </div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC684" class="react-file-line html-div" data-testid="code-cell" data-line-number="684" style="position:relative"><span class="pl-s"> According to [Lin et al., 2018](https://arxiv.org/pdf/1708.02002.pdf), it</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC685" class="react-file-line html-div" data-testid="code-cell" data-line-number="685" style="position:relative"><span class="pl-s"> helps to apply a "focal factor" to down-weight easy examples and focus more</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC686" class="react-file-line html-div" data-testid="code-cell" data-line-number="686" style="position:relative"><span class="pl-s"> on hard examples. By default, the focal tensor is computed as follows:</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC687" class="react-file-line html-div" data-testid="code-cell" data-line-number="687" style="position:relative"> </div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC688" class="react-file-line html-div" data-testid="code-cell" data-line-number="688" style="position:relative"><span class="pl-s"> `focal_factor = (1 - output) ** gamma` for class 1</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC689" class="react-file-line html-div" data-testid="code-cell" data-line-number="689" style="position:relative"><span class="pl-s"> `focal_factor = output ** gamma` for class 0</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC690" class="react-file-line html-div" data-testid="code-cell" data-line-number="690" style="position:relative"><span class="pl-s"> where `gamma` is a focusing parameter. When `gamma=0`, this function is</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC691" class="react-file-line html-div" data-testid="code-cell" data-line-number="691" style="position:relative"><span class="pl-s"> equivalent to the binary crossentropy loss.</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC692" class="react-file-line html-div" data-testid="code-cell" data-line-number="692" style="position:relative"> </div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC693" class="react-file-line html-div" data-testid="code-cell" data-line-number="693" style="position:relative"><span class="pl-s"> With the `compile()` API:</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC694" class="react-file-line html-div" data-testid="code-cell" data-line-number="694" style="position:relative"> </div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC695" class="react-file-line html-div" data-testid="code-cell" data-line-number="695" style="position:relative"><span class="pl-s"> ```python</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC696" class="react-file-line html-div" data-testid="code-cell" data-line-number="696" style="position:relative"><span class="pl-s"> model.compile(</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC697" class="react-file-line html-div" data-testid="code-cell" data-line-number="697" style="position:relative"><span class="pl-s"> loss=tf.keras.losses.BinaryFocalCrossentropy(gamma=2.0, from_logits=True),</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC698" class="react-file-line html-div" data-testid="code-cell" data-line-number="698" style="position:relative"><span class="pl-s"> ....</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC699" class="react-file-line html-div" data-testid="code-cell" data-line-number="699" style="position:relative"><span class="pl-s"> )</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC700" class="react-file-line html-div" data-testid="code-cell" data-line-number="700" style="position:relative"><span class="pl-s"> ```</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC701" class="react-file-line html-div" data-testid="code-cell" data-line-number="701" style="position:relative"> </div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC702" class="react-file-line html-div" data-testid="code-cell" data-line-number="702" style="position:relative"><span class="pl-s"> As a standalone function:</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC703" class="react-file-line html-div" data-testid="code-cell" data-line-number="703" style="position:relative"> </div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC704" class="react-file-line html-div" data-testid="code-cell" data-line-number="704" style="position:relative"><span class="pl-s"> >>> # Example 1: (batch_size = 1, number of samples = 4)</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC705" class="react-file-line html-div" data-testid="code-cell" data-line-number="705" style="position:relative"><span class="pl-s"> >>> y_true = [0, 1, 0, 0]</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC706" class="react-file-line html-div" data-testid="code-cell" data-line-number="706" style="position:relative"><span class="pl-s"> >>> y_pred = [-18.6, 0.51, 2.94, -12.8]</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC707" class="react-file-line html-div" data-testid="code-cell" data-line-number="707" style="position:relative"><span class="pl-s"> >>> loss = tf.keras.losses.BinaryFocalCrossentropy(gamma=2,</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC708" class="react-file-line html-div" data-testid="code-cell" data-line-number="708" style="position:relative"><span class="pl-s"> ... from_logits=True)</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC709" class="react-file-line html-div" data-testid="code-cell" data-line-number="709" style="position:relative"><span class="pl-s"> >>> loss(y_true, y_pred).numpy()</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC710" class="react-file-line html-div" data-testid="code-cell" data-line-number="710" style="position:relative"><span class="pl-s"> 0.691</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC711" class="react-file-line html-div" data-testid="code-cell" data-line-number="711" style="position:relative"> </div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC712" class="react-file-line html-div" data-testid="code-cell" data-line-number="712" style="position:relative"><span class="pl-s"> >>> # Apply class weight</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC713" class="react-file-line html-div" data-testid="code-cell" data-line-number="713" style="position:relative"><span class="pl-s"> >>> loss = tf.keras.losses.BinaryFocalCrossentropy(</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC714" class="react-file-line html-div" data-testid="code-cell" data-line-number="714" style="position:relative"><span class="pl-s"> ... apply_class_balancing=True, gamma=2, from_logits=True)</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC715" class="react-file-line html-div" data-testid="code-cell" data-line-number="715" style="position:relative"><span class="pl-s"> >>> loss(y_true, y_pred).numpy()</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC716" class="react-file-line html-div" data-testid="code-cell" data-line-number="716" style="position:relative"><span class="pl-s"> 0.51</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC717" class="react-file-line html-div" data-testid="code-cell" data-line-number="717" style="position:relative"> </div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC718" class="react-file-line html-div" data-testid="code-cell" data-line-number="718" style="position:relative"><span class="pl-s"> >>> # Example 2: (batch_size = 2, number of samples = 4)</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC719" class="react-file-line html-div" data-testid="code-cell" data-line-number="719" style="position:relative"><span class="pl-s"> >>> y_true = [[0, 1], [0, 0]]</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC720" class="react-file-line html-div" data-testid="code-cell" data-line-number="720" style="position:relative"><span class="pl-s"> >>> y_pred = [[-18.6, 0.51], [2.94, -12.8]]</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC721" class="react-file-line html-div" data-testid="code-cell" data-line-number="721" style="position:relative"><span class="pl-s"> >>> # Using default 'auto'/'sum_over_batch_size' reduction type.</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC722" class="react-file-line html-div" data-testid="code-cell" data-line-number="722" style="position:relative"><span class="pl-s"> >>> loss = tf.keras.losses.BinaryFocalCrossentropy(gamma=3,</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC723" class="react-file-line html-div" data-testid="code-cell" data-line-number="723" style="position:relative"><span class="pl-s"> ... from_logits=True)</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC724" class="react-file-line html-div" data-testid="code-cell" data-line-number="724" style="position:relative"><span class="pl-s"> >>> loss(y_true, y_pred).numpy()</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC725" class="react-file-line html-div" data-testid="code-cell" data-line-number="725" style="position:relative"><span class="pl-s"> 0.647</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC726" class="react-file-line html-div" data-testid="code-cell" data-line-number="726" style="position:relative"> </div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC727" class="react-file-line html-div" data-testid="code-cell" data-line-number="727" style="position:relative"><span class="pl-s"> >>> # Apply class weight</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC728" class="react-file-line html-div" data-testid="code-cell" data-line-number="728" style="position:relative"><span class="pl-s"> >>> loss = tf.keras.losses.BinaryFocalCrossentropy(</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC729" class="react-file-line html-div" data-testid="code-cell" data-line-number="729" style="position:relative"><span class="pl-s"> ... apply_class_balancing=True, gamma=3, from_logits=True)</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC730" class="react-file-line html-div" data-testid="code-cell" data-line-number="730" style="position:relative"><span class="pl-s"> >>> loss(y_true, y_pred).numpy()</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC731" class="react-file-line html-div" data-testid="code-cell" data-line-number="731" style="position:relative"><span class="pl-s"> 0.482</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC732" class="react-file-line html-div" data-testid="code-cell" data-line-number="732" style="position:relative"> </div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC733" class="react-file-line html-div" data-testid="code-cell" data-line-number="733" style="position:relative"><span class="pl-s"> >>> # Using 'sample_weight' attribute with focal effect</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC734" class="react-file-line html-div" data-testid="code-cell" data-line-number="734" style="position:relative"><span class="pl-s"> >>> loss = tf.keras.losses.BinaryFocalCrossentropy(gamma=3,</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC735" class="react-file-line html-div" data-testid="code-cell" data-line-number="735" style="position:relative"><span class="pl-s"> ... from_logits=True)</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC736" class="react-file-line html-div" data-testid="code-cell" data-line-number="736" style="position:relative"><span class="pl-s"> >>> loss(y_true, y_pred, sample_weight=[0.8, 0.2]).numpy()</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC737" class="react-file-line html-div" data-testid="code-cell" data-line-number="737" style="position:relative"><span class="pl-s"> 0.133</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC738" class="react-file-line html-div" data-testid="code-cell" data-line-number="738" style="position:relative"> </div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC739" class="react-file-line html-div" data-testid="code-cell" data-line-number="739" style="position:relative"><span class="pl-s"> >>> # Apply class weight</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC740" class="react-file-line html-div" data-testid="code-cell" data-line-number="740" style="position:relative"><span class="pl-s"> >>> loss = tf.keras.losses.BinaryFocalCrossentropy(</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC741" class="react-file-line html-div" data-testid="code-cell" data-line-number="741" style="position:relative"><span class="pl-s"> ... apply_class_balancing=True, gamma=3, from_logits=True)</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC742" class="react-file-line html-div" data-testid="code-cell" data-line-number="742" style="position:relative"><span class="pl-s"> >>> loss(y_true, y_pred, sample_weight=[0.8, 0.2]).numpy()</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC743" class="react-file-line html-div" data-testid="code-cell" data-line-number="743" style="position:relative"><span class="pl-s"> 0.097</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC744" class="react-file-line html-div" data-testid="code-cell" data-line-number="744" style="position:relative"> </div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC745" class="react-file-line html-div" data-testid="code-cell" data-line-number="745" style="position:relative"><span class="pl-s"> >>> # Using 'sum' reduction` type.</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC746" class="react-file-line html-div" data-testid="code-cell" data-line-number="746" style="position:relative"><span class="pl-s"> >>> loss = tf.keras.losses.BinaryFocalCrossentropy(gamma=4,</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC747" class="react-file-line html-div" data-testid="code-cell" data-line-number="747" style="position:relative"><span class="pl-s"> ... from_logits=True,</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC748" class="react-file-line html-div" data-testid="code-cell" data-line-number="748" style="position:relative"><span class="pl-s"> ... reduction=tf.keras.losses.Reduction.SUM)</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC749" class="react-file-line html-div" data-testid="code-cell" data-line-number="749" style="position:relative"><span class="pl-s"> >>> loss(y_true, y_pred).numpy()</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC750" class="react-file-line html-div" data-testid="code-cell" data-line-number="750" style="position:relative"><span class="pl-s"> 1.222</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC751" class="react-file-line html-div" data-testid="code-cell" data-line-number="751" style="position:relative"> </div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC752" class="react-file-line html-div" data-testid="code-cell" data-line-number="752" style="position:relative"><span class="pl-s"> >>> # Apply class weight</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC753" class="react-file-line html-div" data-testid="code-cell" data-line-number="753" style="position:relative"><span class="pl-s"> >>> loss = tf.keras.losses.BinaryFocalCrossentropy(</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC754" class="react-file-line html-div" data-testid="code-cell" data-line-number="754" style="position:relative"><span class="pl-s"> ... apply_class_balancing=True, gamma=4, from_logits=True,</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC755" class="react-file-line html-div" data-testid="code-cell" data-line-number="755" style="position:relative"><span class="pl-s"> ... reduction=tf.keras.losses.Reduction.SUM)</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC756" class="react-file-line html-div" data-testid="code-cell" data-line-number="756" style="position:relative"><span class="pl-s"> >>> loss(y_true, y_pred).numpy()</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC757" class="react-file-line html-div" data-testid="code-cell" data-line-number="757" style="position:relative"><span class="pl-s"> 0.914</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC758" class="react-file-line html-div" data-testid="code-cell" data-line-number="758" style="position:relative"> </div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC759" class="react-file-line html-div" data-testid="code-cell" data-line-number="759" style="position:relative"><span class="pl-s"> >>> # Using 'none' reduction type.</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC760" class="react-file-line html-div" data-testid="code-cell" data-line-number="760" style="position:relative"><span class="pl-s"> >>> loss = tf.keras.losses.BinaryFocalCrossentropy(</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC761" class="react-file-line html-div" data-testid="code-cell" data-line-number="761" style="position:relative"><span class="pl-s"> ... gamma=5, from_logits=True,</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC762" class="react-file-line html-div" data-testid="code-cell" data-line-number="762" style="position:relative"><span class="pl-s"> ... reduction=tf.keras.losses.Reduction.NONE)</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC763" class="react-file-line html-div" data-testid="code-cell" data-line-number="763" style="position:relative"><span class="pl-s"> >>> loss(y_true, y_pred).numpy()</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC764" class="react-file-line html-div" data-testid="code-cell" data-line-number="764" style="position:relative"><span class="pl-s"> array([0.0017 1.1561], dtype=float32)</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC765" class="react-file-line html-div" data-testid="code-cell" data-line-number="765" style="position:relative"> </div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC766" class="react-file-line html-div" data-testid="code-cell" data-line-number="766" style="position:relative"><span class="pl-s"> >>> # Apply class weight</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC767" class="react-file-line html-div" data-testid="code-cell" data-line-number="767" style="position:relative"><span class="pl-s"> >>> loss = tf.keras.losses.BinaryFocalCrossentropy(</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC768" class="react-file-line html-div" data-testid="code-cell" data-line-number="768" style="position:relative"><span class="pl-s"> ... apply_class_balancing=True, gamma=5, from_logits=True,</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC769" class="react-file-line html-div" data-testid="code-cell" data-line-number="769" style="position:relative"><span class="pl-s"> ... reduction=tf.keras.losses.Reduction.NONE)</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC770" class="react-file-line html-div" data-testid="code-cell" data-line-number="770" style="position:relative"><span class="pl-s"> >>> loss(y_true, y_pred).numpy()</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC771" class="react-file-line html-div" data-testid="code-cell" data-line-number="771" style="position:relative"><span class="pl-s"> array([0.0004 0.8670], dtype=float32)</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC772" class="react-file-line html-div" data-testid="code-cell" data-line-number="772" style="position:relative"> </div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC773" class="react-file-line html-div" data-testid="code-cell" data-line-number="773" style="position:relative"> </div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC774" class="react-file-line html-div" data-testid="code-cell" data-line-number="774" style="position:relative"><span class="pl-s"> Args:</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC775" class="react-file-line html-div" data-testid="code-cell" data-line-number="775" style="position:relative"><span class="pl-s"> apply_class_balancing: A bool, whether to apply weight balancing on the</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC776" class="react-file-line html-div" data-testid="code-cell" data-line-number="776" style="position:relative"><span class="pl-s"> binary classes 0 and 1.</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC777" class="react-file-line html-div" data-testid="code-cell" data-line-number="777" style="position:relative"><span class="pl-s"> alpha: A weight balancing factor for class 1, default is `0.25` as</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC778" class="react-file-line html-div" data-testid="code-cell" data-line-number="778" style="position:relative"><span class="pl-s"> mentioned in reference [Lin et al., 2018](</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC779" class="react-file-line html-div" data-testid="code-cell" data-line-number="779" style="position:relative"><span class="pl-s"> https://arxiv.org/pdf/1708.02002.pdf). The weight for class 0 is</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC780" class="react-file-line html-div" data-testid="code-cell" data-line-number="780" style="position:relative"><span class="pl-s"> `1.0 - alpha`.</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC781" class="react-file-line html-div" data-testid="code-cell" data-line-number="781" style="position:relative"><span class="pl-s"> gamma: A focusing parameter used to compute the focal factor, default is</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC782" class="react-file-line html-div" data-testid="code-cell" data-line-number="782" style="position:relative"><span class="pl-s"> `2.0` as mentioned in the reference</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC783" class="react-file-line html-div" data-testid="code-cell" data-line-number="783" style="position:relative"><span class="pl-s"> [Lin et al., 2018](https://arxiv.org/pdf/1708.02002.pdf).</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC784" class="react-file-line html-div" data-testid="code-cell" data-line-number="784" style="position:relative"><span class="pl-s"> from_logits: Whether to interpret `y_pred` as a tensor of</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC785" class="react-file-line html-div" data-testid="code-cell" data-line-number="785" style="position:relative"><span class="pl-s"> [logit](https://en.wikipedia.org/wiki/Logit) values. By default, we</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC786" class="react-file-line html-div" data-testid="code-cell" data-line-number="786" style="position:relative"><span class="pl-s"> assume that `y_pred` are probabilities (i.e., values in `[0, 1]`).</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC787" class="react-file-line html-div" data-testid="code-cell" data-line-number="787" style="position:relative"><span class="pl-s"> label_smoothing: Float in `[0, 1]`. When `0`, no smoothing occurs.</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC788" class="react-file-line html-div" data-testid="code-cell" data-line-number="788" style="position:relative"><span class="pl-s"> When > `0`, we compute the loss between the predicted labels and a</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC789" class="react-file-line html-div" data-testid="code-cell" data-line-number="789" style="position:relative"><span class="pl-s"> smoothed version of the true labels, where the smoothing squeezes</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC790" class="react-file-line html-div" data-testid="code-cell" data-line-number="790" style="position:relative"><span class="pl-s"> the labels towards `0.5`. Larger values of `label_smoothing`</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC791" class="react-file-line html-div" data-testid="code-cell" data-line-number="791" style="position:relative"><span class="pl-s"> correspond to heavier smoothing.</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC792" class="react-file-line html-div" data-testid="code-cell" data-line-number="792" style="position:relative"><span class="pl-s"> axis: The axis along which to compute crossentropy (the features axis).</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC793" class="react-file-line html-div" data-testid="code-cell" data-line-number="793" style="position:relative"><span class="pl-s"> Defaults to `-1`.</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC794" class="react-file-line html-div" data-testid="code-cell" data-line-number="794" style="position:relative"><span class="pl-s"> reduction: Type of `tf.keras.losses.Reduction` to apply to</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC795" class="react-file-line html-div" data-testid="code-cell" data-line-number="795" style="position:relative"><span class="pl-s"> loss. Default value is `AUTO`. `AUTO` indicates that the reduction</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC796" class="react-file-line html-div" data-testid="code-cell" data-line-number="796" style="position:relative"><span class="pl-s"> option will be determined by the usage context. For almost all cases</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC797" class="react-file-line html-div" data-testid="code-cell" data-line-number="797" style="position:relative"><span class="pl-s"> this defaults to `SUM_OVER_BATCH_SIZE`. When used under a</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC798" class="react-file-line html-div" data-testid="code-cell" data-line-number="798" style="position:relative"><span class="pl-s"> `tf.distribute.Strategy`, except via `Model.compile()` and</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC799" class="react-file-line html-div" data-testid="code-cell" data-line-number="799" style="position:relative"><span class="pl-s"> `Model.fit()`, using `AUTO` or `SUM_OVER_BATCH_SIZE`</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC800" class="react-file-line html-div" data-testid="code-cell" data-line-number="800" style="position:relative"><span class="pl-s"> will raise an error. Please see this custom training [tutorial](</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC801" class="react-file-line html-div" data-testid="code-cell" data-line-number="801" style="position:relative"><span class="pl-s"> https://www.tensorflow.org/tutorials/distribute/custom_training)</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC802" class="react-file-line html-div" data-testid="code-cell" data-line-number="802" style="position:relative"><span class="pl-s"> for more details.</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC803" class="react-file-line html-div" data-testid="code-cell" data-line-number="803" style="position:relative"><span class="pl-s"> name: Name for the op. Defaults to 'binary_focal_crossentropy'.</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC804" class="react-file-line html-div" data-testid="code-cell" data-line-number="804" style="position:relative"><span class="pl-s"> """</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC805" class="react-file-line html-div" data-testid="code-cell" data-line-number="805" style="position:relative"> </div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC806" class="react-file-line html-div" data-testid="code-cell" data-line-number="806" style="position:relative"> <span class="pl-k">def</span> <span class="pl-en">__init__</span>(</div></div></div><div class="child-of-line-670 child-of-line-805 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC807" class="react-file-line html-div" data-testid="code-cell" data-line-number="807" style="position:relative"> <span class="pl-s1">self</span>,</div></div></div><div class="child-of-line-670 child-of-line-805 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC808" class="react-file-line html-div" data-testid="code-cell" data-line-number="808" style="position:relative"> <span class="pl-s1">apply_class_balancing</span><span class="pl-c1">=</span><span class="pl-c1">False</span>,</div></div></div><div class="child-of-line-670 child-of-line-805 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC809" class="react-file-line html-div" data-testid="code-cell" data-line-number="809" style="position:relative"> <span class="pl-s1">alpha</span><span class="pl-c1">=</span><span class="pl-c1">0.25</span>,</div></div></div><div class="child-of-line-670 child-of-line-805 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC810" class="react-file-line html-div" data-testid="code-cell" data-line-number="810" style="position:relative"> <span class="pl-s1">gamma</span><span class="pl-c1">=</span><span class="pl-c1">2.0</span>,</div></div></div><div class="child-of-line-670 child-of-line-805 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC811" class="react-file-line html-div" data-testid="code-cell" data-line-number="811" style="position:relative"> <span class="pl-s1">from_logits</span><span class="pl-c1">=</span><span class="pl-c1">False</span>,</div></div></div><div class="child-of-line-670 child-of-line-805 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC812" class="react-file-line html-div" data-testid="code-cell" data-line-number="812" style="position:relative"> <span class="pl-s1">label_smoothing</span><span class="pl-c1">=</span><span class="pl-c1">0.0</span>,</div></div></div><div class="child-of-line-670 child-of-line-805 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC813" class="react-file-line html-div" data-testid="code-cell" data-line-number="813" style="position:relative"> <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">-</span><span class="pl-c1">1</span>,</div></div></div><div class="child-of-line-670 child-of-line-805 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC814" class="react-file-line html-div" data-testid="code-cell" data-line-number="814" style="position:relative"> <span class="pl-s1">reduction</span><span class="pl-c1">=</span><span class="pl-s1">losses_utils</span>.<span class="pl-c1">ReductionV2</span>.<span class="pl-c1">AUTO</span>,</div></div></div><div class="child-of-line-670 child-of-line-805 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC815" class="react-file-line html-div" data-testid="code-cell" data-line-number="815" style="position:relative"> <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">"binary_focal_crossentropy"</span>,</div></div></div><div class="child-of-line-670 child-of-line-805 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC816" class="react-file-line html-div" data-testid="code-cell" data-line-number="816" style="position:relative"> ):</div></div></div><div class="child-of-line-670 child-of-line-805 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC817" class="react-file-line html-div" data-testid="code-cell" data-line-number="817" style="position:relative"> <span class="pl-s">"""Initializes `BinaryFocalCrossentropy` instance."""</span></div></div></div><div class="child-of-line-670 child-of-line-805 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC818" class="react-file-line html-div" data-testid="code-cell" data-line-number="818" style="position:relative"> <span class="pl-en">super</span>().<span class="pl-c1">__init__</span>(</div></div></div><div class="child-of-line-670 child-of-line-805 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC819" class="react-file-line html-div" data-testid="code-cell" data-line-number="819" style="position:relative"> <span class="pl-s1">binary_focal_crossentropy</span>,</div></div></div><div class="child-of-line-670 child-of-line-805 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC820" class="react-file-line html-div" data-testid="code-cell" data-line-number="820" style="position:relative"> <span class="pl-s1">apply_class_balancing</span><span class="pl-c1">=</span><span class="pl-s1">apply_class_balancing</span>,</div></div></div><div class="child-of-line-670 child-of-line-805 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC821" class="react-file-line html-div" data-testid="code-cell" data-line-number="821" style="position:relative"> <span class="pl-s1">alpha</span><span class="pl-c1">=</span><span class="pl-s1">alpha</span>,</div></div></div><div class="child-of-line-670 child-of-line-805 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC822" class="react-file-line html-div" data-testid="code-cell" data-line-number="822" style="position:relative"> <span class="pl-s1">gamma</span><span class="pl-c1">=</span><span class="pl-s1">gamma</span>,</div></div></div><div class="child-of-line-670 child-of-line-805 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC823" class="react-file-line html-div" data-testid="code-cell" data-line-number="823" style="position:relative"> <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s1">name</span>,</div></div></div><div class="child-of-line-670 child-of-line-805 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC824" class="react-file-line html-div" data-testid="code-cell" data-line-number="824" style="position:relative"> <span class="pl-s1">reduction</span><span class="pl-c1">=</span><span class="pl-s1">reduction</span>,</div></div></div><div class="child-of-line-670 child-of-line-805 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC825" class="react-file-line html-div" data-testid="code-cell" data-line-number="825" style="position:relative"> <span class="pl-s1">from_logits</span><span class="pl-c1">=</span><span class="pl-s1">from_logits</span>,</div></div></div><div class="child-of-line-670 child-of-line-805 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC826" class="react-file-line html-div" data-testid="code-cell" data-line-number="826" style="position:relative"> <span class="pl-s1">label_smoothing</span><span class="pl-c1">=</span><span class="pl-s1">label_smoothing</span>,</div></div></div><div class="child-of-line-670 child-of-line-805 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC827" class="react-file-line html-div" data-testid="code-cell" data-line-number="827" style="position:relative"> <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-s1">axis</span>,</div></div></div><div class="child-of-line-670 child-of-line-805 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC828" class="react-file-line html-div" data-testid="code-cell" data-line-number="828" style="position:relative"> )</div></div></div><div class="child-of-line-670 child-of-line-805 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC829" class="react-file-line html-div" data-testid="code-cell" data-line-number="829" style="position:relative"> <span class="pl-s1">self</span>.<span class="pl-c1">from_logits</span> <span class="pl-c1">=</span> <span class="pl-s1">from_logits</span></div></div></div><div class="child-of-line-670 child-of-line-805 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC830" class="react-file-line html-div" data-testid="code-cell" data-line-number="830" style="position:relative"> <span class="pl-s1">self</span>.<span class="pl-c1">apply_class_balancing</span> <span class="pl-c1">=</span> <span class="pl-s1">apply_class_balancing</span></div></div></div><div class="child-of-line-670 child-of-line-805 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC831" class="react-file-line html-div" data-testid="code-cell" data-line-number="831" style="position:relative"> <span class="pl-s1">self</span>.<span class="pl-c1">alpha</span> <span class="pl-c1">=</span> <span class="pl-s1">alpha</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC832" class="react-file-line html-div" data-testid="code-cell" data-line-number="832" style="position:relative"> <span class="pl-s1">self</span>.<span class="pl-c1">gamma</span> <span class="pl-c1">=</span> <span class="pl-s1">gamma</span></div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC833" class="react-file-line html-div" data-testid="code-cell" data-line-number="833" style="position:relative"> </div></div></div><div class="child-of-line-670 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC834" class="react-file-line html-div" data-testid="code-cell" data-line-number="834" style="position:relative"> <span class="pl-k">def</span> <span class="pl-en">get_config</span>(<span class="pl-s1">self</span>):</div></div></div><div class="child-of-line-670 child-of-line-833 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC835" class="react-file-line html-div" data-testid="code-cell" data-line-number="835" style="position:relative"> <span class="pl-s1">config</span> <span class="pl-c1">=</span> {</div></div></div><div class="child-of-line-670 child-of-line-833 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC836" class="react-file-line html-div" data-testid="code-cell" data-line-number="836" style="position:relative"> <span class="pl-s">"apply_class_balancing"</span>: <span class="pl-s1">self</span>.<span class="pl-c1">apply_class_balancing</span>,</div></div></div><div class="child-of-line-670 child-of-line-833 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC837" class="react-file-line html-div" data-testid="code-cell" data-line-number="837" style="position:relative"> <span class="pl-s">"alpha"</span>: <span class="pl-s1">self</span>.<span class="pl-c1">alpha</span>,</div></div></div><div class="child-of-line-670 child-of-line-833 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC838" class="react-file-line html-div" data-testid="code-cell" data-line-number="838" style="position:relative"> <span class="pl-s">"gamma"</span>: <span class="pl-s1">self</span>.<span class="pl-c1">gamma</span>,</div></div></div><div class="child-of-line-670 child-of-line-833 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC839" class="react-file-line html-div" data-testid="code-cell" data-line-number="839" style="position:relative"> }</div></div></div><div class="child-of-line-670 child-of-line-833 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC840" class="react-file-line html-div" data-testid="code-cell" data-line-number="840" style="position:relative"> <span class="pl-s1">base_config</span> <span class="pl-c1">=</span> <span class="pl-en">super</span>().<span class="pl-c1">get_config</span>()</div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC841" class="react-file-line html-div" data-testid="code-cell" data-line-number="841" style="position:relative"> <span class="pl-k">return</span> <span class="pl-en">dict</span>(<span class="pl-en">list</span>(<span class="pl-s1">base_config</span>.<span class="pl-c1">items</span>()) <span class="pl-c1">+</span> <span class="pl-en">list</span>(<span class="pl-s1">config</span>.<span class="pl-c1">items</span>()))</div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC842" class="react-file-line html-div" data-testid="code-cell" data-line-number="842" style="position:relative"> </div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC843" class="react-file-line html-div" data-testid="code-cell" data-line-number="843" style="position:relative"> </div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC844" class="react-file-line html-div" data-testid="code-cell" data-line-number="844" style="position:relative"><span class="pl-en">@<span class="pl-en">keras_export</span>(<span class="pl-s">"keras.losses.CategoricalCrossentropy"</span>)</span></div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC845" class="react-file-line html-div" data-testid="code-cell" data-line-number="845" style="position:relative"><span class="pl-k">class</span> <span class="pl-v">CategoricalCrossentropy</span>(<span class="pl-v">LossFunctionWrapper</span>):</div></div></div><div class="child-of-line-844 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC846" class="react-file-line html-div" data-testid="code-cell" data-line-number="846" style="position:relative"> <span class="pl-s">"""Computes the crossentropy loss between the labels and predictions.</span></div></div></div><div class="child-of-line-844 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC847" class="react-file-line html-div" data-testid="code-cell" data-line-number="847" style="position:relative"> </div></div></div><div class="child-of-line-844 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC848" class="react-file-line html-div" data-testid="code-cell" data-line-number="848" style="position:relative"><span class="pl-s"> Use this crossentropy loss function when there are two or more label</span></div></div></div><div class="child-of-line-844 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC849" class="react-file-line html-div" data-testid="code-cell" data-line-number="849" style="position:relative"><span class="pl-s"> classes. We expect labels to be provided in a `one_hot` representation. If</span></div></div></div><div class="child-of-line-844 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC850" class="react-file-line html-div" data-testid="code-cell" data-line-number="850" style="position:relative"><span class="pl-s"> you want to provide labels as integers, please use</span></div></div></div><div class="child-of-line-844 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC851" class="react-file-line html-div" data-testid="code-cell" data-line-number="851" style="position:relative"><span class="pl-s"> `SparseCategoricalCrossentropy` loss. There should be `# classes` floating</span></div></div></div><div class="child-of-line-844 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC852" class="react-file-line html-div" data-testid="code-cell" data-line-number="852" style="position:relative"><span class="pl-s"> point values per feature.</span></div></div></div><div class="child-of-line-844 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC853" class="react-file-line html-div" data-testid="code-cell" data-line-number="853" style="position:relative"> </div></div></div><div class="child-of-line-844 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC854" class="react-file-line html-div" data-testid="code-cell" data-line-number="854" style="position:relative"><span class="pl-s"> In the snippet below, there is `# classes` floating pointing values per</span></div></div></div><div class="child-of-line-844 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC855" class="react-file-line html-div" data-testid="code-cell" data-line-number="855" style="position:relative"><span class="pl-s"> example. The shape of both `y_pred` and `y_true` are</span></div></div></div><div class="child-of-line-844 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC856" class="react-file-line html-div" data-testid="code-cell" data-line-number="856" style="position:relative"><span class="pl-s"> `[batch_size, num_classes]`.</span></div></div></div><div class="child-of-line-844 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC857" class="react-file-line html-div" data-testid="code-cell" data-line-number="857" style="position:relative"> </div></div></div><div class="child-of-line-844 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC858" class="react-file-line html-div" data-testid="code-cell" data-line-number="858" style="position:relative"><span class="pl-s"> Standalone usage:</span></div></div></div><div class="child-of-line-844 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC859" class="react-file-line html-div" data-testid="code-cell" data-line-number="859" style="position:relative"> </div></div></div><div class="child-of-line-844 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC860" class="react-file-line html-div" data-testid="code-cell" data-line-number="860" style="position:relative"><span class="pl-s"> >>> y_true = [[0, 1, 0], [0, 0, 1]]</span></div></div></div><div class="child-of-line-844 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC861" class="react-file-line html-div" data-testid="code-cell" data-line-number="861" style="position:relative"><span class="pl-s"> >>> y_pred = [[0.05, 0.95, 0], [0.1, 0.8, 0.1]]</span></div></div></div><div class="child-of-line-844 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC862" class="react-file-line html-div" data-testid="code-cell" data-line-number="862" style="position:relative"><span class="pl-s"> >>> # Using 'auto'/'sum_over_batch_size' reduction type.</span></div></div></div><div class="child-of-line-844 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC863" class="react-file-line html-div" data-testid="code-cell" data-line-number="863" style="position:relative"><span class="pl-s"> >>> cce = tf.keras.losses.CategoricalCrossentropy()</span></div></div></div><div class="child-of-line-844 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC864" class="react-file-line html-div" data-testid="code-cell" data-line-number="864" style="position:relative"><span class="pl-s"> >>> cce(y_true, y_pred).numpy()</span></div></div></div><div class="child-of-line-844 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC865" class="react-file-line html-div" data-testid="code-cell" data-line-number="865" style="position:relative"><span class="pl-s"> 1.177</span></div></div></div><div class="child-of-line-844 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC866" class="react-file-line html-div" data-testid="code-cell" data-line-number="866" style="position:relative"> </div></div></div><div class="child-of-line-844 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC867" class="react-file-line html-div" data-testid="code-cell" data-line-number="867" style="position:relative"><span class="pl-s"> >>> # Calling with 'sample_weight'.</span></div></div></div><div class="child-of-line-844 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC868" class="react-file-line html-div" data-testid="code-cell" data-line-number="868" style="position:relative"><span class="pl-s"> >>> cce(y_true, y_pred, sample_weight=tf.constant([0.3, 0.7])).numpy()</span></div></div></div><div class="child-of-line-844 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC869" class="react-file-line html-div" data-testid="code-cell" data-line-number="869" style="position:relative"><span class="pl-s"> 0.814</span></div></div></div><div class="child-of-line-844 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC870" class="react-file-line html-div" data-testid="code-cell" data-line-number="870" style="position:relative"> </div></div></div><div class="child-of-line-844 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC871" class="react-file-line html-div" data-testid="code-cell" data-line-number="871" style="position:relative"><span class="pl-s"> >>> # Using 'sum' reduction type.</span></div></div></div><div class="child-of-line-844 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC872" class="react-file-line html-div" data-testid="code-cell" data-line-number="872" style="position:relative"><span class="pl-s"> >>> cce = tf.keras.losses.CategoricalCrossentropy(</span></div></div></div><div class="child-of-line-844 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC873" class="react-file-line html-div" data-testid="code-cell" data-line-number="873" style="position:relative"><span class="pl-s"> ... reduction=tf.keras.losses.Reduction.SUM)</span></div></div></div><div class="child-of-line-844 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC874" class="react-file-line html-div" data-testid="code-cell" data-line-number="874" style="position:relative"><span class="pl-s"> >>> cce(y_true, y_pred).numpy()</span></div></div></div><div class="child-of-line-844 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC875" class="react-file-line html-div" data-testid="code-cell" data-line-number="875" style="position:relative"><span class="pl-s"> 2.354</span></div></div></div><div class="child-of-line-844 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC876" class="react-file-line html-div" data-testid="code-cell" data-line-number="876" style="position:relative"> </div></div></div><div class="child-of-line-844 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC877" class="react-file-line html-div" data-testid="code-cell" data-line-number="877" style="position:relative"><span class="pl-s"> >>> # Using 'none' reduction type.</span></div></div></div><div class="child-of-line-844 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC878" class="react-file-line html-div" data-testid="code-cell" data-line-number="878" style="position:relative"><span class="pl-s"> >>> cce = tf.keras.losses.CategoricalCrossentropy(</span></div></div></div><div class="child-of-line-844 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC879" class="react-file-line html-div" data-testid="code-cell" data-line-number="879" style="position:relative"><span class="pl-s"> ... reduction=tf.keras.losses.Reduction.NONE)</span></div></div></div><div class="child-of-line-844 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC880" class="react-file-line html-div" data-testid="code-cell" data-line-number="880" style="position:relative"><span class="pl-s"> >>> cce(y_true, y_pred).numpy()</span></div></div></div><div class="child-of-line-844 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC881" class="react-file-line html-div" data-testid="code-cell" data-line-number="881" style="position:relative"><span class="pl-s"> array([0.0513, 2.303], dtype=float32)</span></div></div></div><div class="child-of-line-844 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC882" class="react-file-line html-div" data-testid="code-cell" data-line-number="882" style="position:relative"> </div></div></div><div class="child-of-line-844 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC883" class="react-file-line html-div" data-testid="code-cell" data-line-number="883" style="position:relative"><span class="pl-s"> Usage with the `compile()` API:</span></div></div></div><div class="child-of-line-844 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC884" class="react-file-line html-div" data-testid="code-cell" data-line-number="884" style="position:relative"> </div></div></div><div class="child-of-line-844 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC885" class="react-file-line html-div" data-testid="code-cell" data-line-number="885" style="position:relative"><span class="pl-s"> ```python</span></div></div></div><div class="child-of-line-844 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC886" class="react-file-line html-div" data-testid="code-cell" data-line-number="886" style="position:relative"><span class="pl-s"> model.compile(optimizer='sgd',</span></div></div></div><div class="child-of-line-844 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC887" class="react-file-line html-div" data-testid="code-cell" data-line-number="887" style="position:relative"><span class="pl-s"> loss=tf.keras.losses.CategoricalCrossentropy())</span></div></div></div><div class="child-of-line-844 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC888" class="react-file-line html-div" data-testid="code-cell" data-line-number="888" style="position:relative"><span class="pl-s"> ```</span></div></div></div><div class="child-of-line-844 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC889" class="react-file-line html-div" data-testid="code-cell" data-line-number="889" style="position:relative"><span class="pl-s"> """</span></div></div></div><div class="child-of-line-844 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC890" class="react-file-line html-div" data-testid="code-cell" data-line-number="890" style="position:relative"> </div></div></div><div class="child-of-line-844 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC891" class="react-file-line html-div" data-testid="code-cell" data-line-number="891" style="position:relative"> <span class="pl-k">def</span> <span class="pl-en">__init__</span>(</div></div></div><div class="child-of-line-844 child-of-line-890 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC892" class="react-file-line html-div" data-testid="code-cell" data-line-number="892" style="position:relative"> <span class="pl-s1">self</span>,</div></div></div><div class="child-of-line-844 child-of-line-890 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC893" class="react-file-line html-div" data-testid="code-cell" data-line-number="893" style="position:relative"> <span class="pl-s1">from_logits</span><span class="pl-c1">=</span><span class="pl-c1">False</span>,</div></div></div><div class="child-of-line-844 child-of-line-890 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC894" class="react-file-line html-div" data-testid="code-cell" data-line-number="894" style="position:relative"> <span class="pl-s1">label_smoothing</span><span class="pl-c1">=</span><span class="pl-c1">0.0</span>,</div></div></div><div class="child-of-line-844 child-of-line-890 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC895" class="react-file-line html-div" data-testid="code-cell" data-line-number="895" style="position:relative"> <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">-</span><span class="pl-c1">1</span>,</div></div></div><div class="child-of-line-844 child-of-line-890 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC896" class="react-file-line html-div" data-testid="code-cell" data-line-number="896" style="position:relative"> <span class="pl-s1">reduction</span><span class="pl-c1">=</span><span class="pl-s1">losses_utils</span>.<span class="pl-c1">ReductionV2</span>.<span class="pl-c1">AUTO</span>,</div></div></div><div class="child-of-line-844 child-of-line-890 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC897" class="react-file-line html-div" data-testid="code-cell" data-line-number="897" style="position:relative"> <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">"categorical_crossentropy"</span>,</div></div></div><div class="child-of-line-844 child-of-line-890 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC898" class="react-file-line html-div" data-testid="code-cell" data-line-number="898" style="position:relative"> ):</div></div></div><div class="child-of-line-844 child-of-line-890 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC899" class="react-file-line html-div" data-testid="code-cell" data-line-number="899" style="position:relative"> <span class="pl-s">"""Initializes `CategoricalCrossentropy` instance.</span></div></div></div><div class="child-of-line-844 child-of-line-890 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC900" class="react-file-line html-div" data-testid="code-cell" data-line-number="900" style="position:relative"> </div></div></div><div class="child-of-line-844 child-of-line-890 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC901" class="react-file-line html-div" data-testid="code-cell" data-line-number="901" style="position:relative"><span class="pl-s"> Args:</span></div></div></div><div class="child-of-line-844 child-of-line-890 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC902" class="react-file-line html-div" data-testid="code-cell" data-line-number="902" style="position:relative"><span class="pl-s"> from_logits: Whether `y_pred` is expected to be a logits tensor. By</span></div></div></div><div class="child-of-line-844 child-of-line-890 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC903" class="react-file-line html-div" data-testid="code-cell" data-line-number="903" style="position:relative"><span class="pl-s"> default, we assume that `y_pred` encodes a probability</span></div></div></div><div class="child-of-line-844 child-of-line-890 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC904" class="react-file-line html-div" data-testid="code-cell" data-line-number="904" style="position:relative"><span class="pl-s"> distribution.</span></div></div></div><div class="child-of-line-844 child-of-line-890 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC905" class="react-file-line html-div" data-testid="code-cell" data-line-number="905" style="position:relative"><span class="pl-s"> label_smoothing: Float in [0, 1]. When > 0, label values are</span></div></div></div><div class="child-of-line-844 child-of-line-890 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC906" class="react-file-line html-div" data-testid="code-cell" data-line-number="906" style="position:relative"><span class="pl-s"> smoothed, meaning the confidence on label values are relaxed.</span></div></div></div><div class="child-of-line-844 child-of-line-890 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC907" class="react-file-line html-div" data-testid="code-cell" data-line-number="907" style="position:relative"><span class="pl-s"> For example, if `0.1`, use `0.1 / num_classes` for non-target</span></div></div></div><div class="child-of-line-844 child-of-line-890 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC908" class="react-file-line html-div" data-testid="code-cell" data-line-number="908" style="position:relative"><span class="pl-s"> labels and `0.9 + 0.1 / num_classes` for target labels.</span></div></div></div><div class="child-of-line-844 child-of-line-890 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC909" class="react-file-line html-div" data-testid="code-cell" data-line-number="909" style="position:relative"><span class="pl-s"> axis: The axis along which to compute crossentropy (the features</span></div></div></div><div class="child-of-line-844 child-of-line-890 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC910" class="react-file-line html-div" data-testid="code-cell" data-line-number="910" style="position:relative"><span class="pl-s"> axis). Defaults to -1.</span></div></div></div><div class="child-of-line-844 child-of-line-890 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC911" class="react-file-line html-div" data-testid="code-cell" data-line-number="911" style="position:relative"><span class="pl-s"> reduction: Type of `tf.keras.losses.Reduction` to apply to loss.</span></div></div></div><div class="child-of-line-844 child-of-line-890 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC912" class="react-file-line html-div" data-testid="code-cell" data-line-number="912" style="position:relative"><span class="pl-s"> Default value is `AUTO`. `AUTO` indicates that the reduction</span></div></div></div><div class="child-of-line-844 child-of-line-890 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC913" class="react-file-line html-div" data-testid="code-cell" data-line-number="913" style="position:relative"><span class="pl-s"> option will be determined by the usage context. For almost all</span></div></div></div><div class="child-of-line-844 child-of-line-890 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC914" class="react-file-line html-div" data-testid="code-cell" data-line-number="914" style="position:relative"><span class="pl-s"> cases this defaults to `SUM_OVER_BATCH_SIZE`. When used under a</span></div></div></div><div class="child-of-line-844 child-of-line-890 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC915" class="react-file-line html-div" data-testid="code-cell" data-line-number="915" style="position:relative"><span class="pl-s"> `tf.distribute.Strategy`, except via `Model.compile()` and</span></div></div></div><div class="child-of-line-844 child-of-line-890 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC916" class="react-file-line html-div" data-testid="code-cell" data-line-number="916" style="position:relative"><span class="pl-s"> `Model.fit()`, using `AUTO` or `SUM_OVER_BATCH_SIZE`</span></div></div></div><div class="child-of-line-844 child-of-line-890 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC917" class="react-file-line html-div" data-testid="code-cell" data-line-number="917" style="position:relative"><span class="pl-s"> will raise an error. Please see this custom training [tutorial](</span></div></div></div><div class="child-of-line-844 child-of-line-890 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC918" class="react-file-line html-div" data-testid="code-cell" data-line-number="918" style="position:relative"><span class="pl-s"> https://www.tensorflow.org/tutorials/distribute/custom_training)</span></div></div></div><div class="child-of-line-844 child-of-line-890 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC919" class="react-file-line html-div" data-testid="code-cell" data-line-number="919" style="position:relative"><span class="pl-s"> for more details.</span></div></div></div><div class="child-of-line-844 child-of-line-890 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC920" class="react-file-line html-div" data-testid="code-cell" data-line-number="920" style="position:relative"><span class="pl-s"> name: Optional name for the instance.</span></div></div></div><div class="child-of-line-844 child-of-line-890 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC921" class="react-file-line html-div" data-testid="code-cell" data-line-number="921" style="position:relative"><span class="pl-s"> Defaults to 'categorical_crossentropy'.</span></div></div></div><div class="child-of-line-844 child-of-line-890 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC922" class="react-file-line html-div" data-testid="code-cell" data-line-number="922" style="position:relative"><span class="pl-s"> """</span></div></div></div><div class="child-of-line-844 child-of-line-890 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC923" class="react-file-line html-div" data-testid="code-cell" data-line-number="923" style="position:relative"> <span class="pl-en">super</span>().<span class="pl-c1">__init__</span>(</div></div></div><div class="child-of-line-844 child-of-line-890 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC924" class="react-file-line html-div" data-testid="code-cell" data-line-number="924" style="position:relative"> <span class="pl-s1">categorical_crossentropy</span>,</div></div></div><div class="child-of-line-844 child-of-line-890 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC925" class="react-file-line html-div" data-testid="code-cell" data-line-number="925" style="position:relative"> <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s1">name</span>,</div></div></div><div class="child-of-line-844 child-of-line-890 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC926" class="react-file-line html-div" data-testid="code-cell" data-line-number="926" style="position:relative"> <span class="pl-s1">reduction</span><span class="pl-c1">=</span><span class="pl-s1">reduction</span>,</div></div></div><div class="child-of-line-844 child-of-line-890 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC927" class="react-file-line html-div" data-testid="code-cell" data-line-number="927" style="position:relative"> <span class="pl-s1">from_logits</span><span class="pl-c1">=</span><span class="pl-s1">from_logits</span>,</div></div></div><div class="child-of-line-844 child-of-line-890 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC928" class="react-file-line html-div" data-testid="code-cell" data-line-number="928" style="position:relative"> <span class="pl-s1">label_smoothing</span><span class="pl-c1">=</span><span class="pl-s1">label_smoothing</span>,</div></div></div><div class="child-of-line-844 child-of-line-890 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC929" class="react-file-line html-div" data-testid="code-cell" data-line-number="929" style="position:relative"> <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-s1">axis</span>,</div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC930" class="react-file-line html-div" data-testid="code-cell" data-line-number="930" style="position:relative"> )</div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC931" class="react-file-line html-div" data-testid="code-cell" data-line-number="931" style="position:relative"> </div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC932" class="react-file-line html-div" data-testid="code-cell" data-line-number="932" style="position:relative"> </div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC933" class="react-file-line html-div" data-testid="code-cell" data-line-number="933" style="position:relative"><span class="pl-en">@<span class="pl-en">keras_export</span>(<span class="pl-s">"keras.losses.CategoricalFocalCrossentropy"</span>)</span></div></div></div><div class="react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC934" class="react-file-line html-div" data-testid="code-cell" data-line-number="934" style="position:relative"><span class="pl-k">class</span> <span class="pl-v">CategoricalFocalCrossentropy</span>(<span class="pl-v">LossFunctionWrapper</span>):</div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC935" class="react-file-line html-div" data-testid="code-cell" data-line-number="935" style="position:relative"> <span class="pl-s">"""Computes the alpha balanced focal crossentropy loss.</span></div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC936" class="react-file-line html-div" data-testid="code-cell" data-line-number="936" style="position:relative"> </div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC937" class="react-file-line html-div" data-testid="code-cell" data-line-number="937" style="position:relative"><span class="pl-s"> Use this crossentropy loss function when there are two or more label</span></div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC938" class="react-file-line html-div" data-testid="code-cell" data-line-number="938" style="position:relative"><span class="pl-s"> classes and if you want to handle class imbalance without using</span></div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC939" class="react-file-line html-div" data-testid="code-cell" data-line-number="939" style="position:relative"><span class="pl-s"> `class_weights`. We expect labels to be provided in a `one_hot`</span></div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC940" class="react-file-line html-div" data-testid="code-cell" data-line-number="940" style="position:relative"><span class="pl-s"> representation.</span></div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC941" class="react-file-line html-div" data-testid="code-cell" data-line-number="941" style="position:relative"> </div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC942" class="react-file-line html-div" data-testid="code-cell" data-line-number="942" style="position:relative"><span class="pl-s"> According to [Lin et al., 2018](https://arxiv.org/pdf/1708.02002.pdf), it</span></div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC943" class="react-file-line html-div" data-testid="code-cell" data-line-number="943" style="position:relative"><span class="pl-s"> helps to apply a focal factor to down-weight easy examples and focus more on</span></div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC944" class="react-file-line html-div" data-testid="code-cell" data-line-number="944" style="position:relative"><span class="pl-s"> hard examples. The general formula for the focal loss (FL)</span></div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC945" class="react-file-line html-div" data-testid="code-cell" data-line-number="945" style="position:relative"><span class="pl-s"> is as follows:</span></div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC946" class="react-file-line html-div" data-testid="code-cell" data-line-number="946" style="position:relative"> </div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC947" class="react-file-line html-div" data-testid="code-cell" data-line-number="947" style="position:relative"><span class="pl-s"> `FL(p_t) = (1 − p_t)^gamma * log(p_t)`</span></div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC948" class="react-file-line html-div" data-testid="code-cell" data-line-number="948" style="position:relative"> </div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC949" class="react-file-line html-div" data-testid="code-cell" data-line-number="949" style="position:relative"><span class="pl-s"> where `p_t` is defined as follows:</span></div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC950" class="react-file-line html-div" data-testid="code-cell" data-line-number="950" style="position:relative"><span class="pl-s"> `p_t = output if y_true == 1, else 1 - output`</span></div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC951" class="react-file-line html-div" data-testid="code-cell" data-line-number="951" style="position:relative"> </div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC952" class="react-file-line html-div" data-testid="code-cell" data-line-number="952" style="position:relative"><span class="pl-s"> `(1 − p_t)^gamma` is the `modulating_factor`, where `gamma` is a focusing</span></div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC953" class="react-file-line html-div" data-testid="code-cell" data-line-number="953" style="position:relative"><span class="pl-s"> parameter. When `gamma` = 0, there is no focal effect on the cross entropy.</span></div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC954" class="react-file-line html-div" data-testid="code-cell" data-line-number="954" style="position:relative"><span class="pl-s"> `gamma` reduces the importance given to simple examples in a smooth manner.</span></div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC955" class="react-file-line html-div" data-testid="code-cell" data-line-number="955" style="position:relative"> </div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC956" class="react-file-line html-div" data-testid="code-cell" data-line-number="956" style="position:relative"><span class="pl-s"> The authors use alpha-balanced variant of focal loss (FL) in the paper:</span></div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC957" class="react-file-line html-div" data-testid="code-cell" data-line-number="957" style="position:relative"><span class="pl-s"> `FL(p_t) = −alpha * (1 − p_t)^gamma * log(p_t)`</span></div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC958" class="react-file-line html-div" data-testid="code-cell" data-line-number="958" style="position:relative"> </div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC959" class="react-file-line html-div" data-testid="code-cell" data-line-number="959" style="position:relative"><span class="pl-s"> where `alpha` is the weight factor for the classes. If `alpha` = 1, the</span></div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC960" class="react-file-line html-div" data-testid="code-cell" data-line-number="960" style="position:relative"><span class="pl-s"> loss won't be able to handle class imbalance properly as all</span></div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC961" class="react-file-line html-div" data-testid="code-cell" data-line-number="961" style="position:relative"><span class="pl-s"> classes will have the same weight. This can be a constant or a list of</span></div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC962" class="react-file-line html-div" data-testid="code-cell" data-line-number="962" style="position:relative"><span class="pl-s"> constants. If alpha is a list, it must have the same length as the number</span></div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC963" class="react-file-line html-div" data-testid="code-cell" data-line-number="963" style="position:relative"><span class="pl-s"> of classes.</span></div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC964" class="react-file-line html-div" data-testid="code-cell" data-line-number="964" style="position:relative"> </div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC965" class="react-file-line html-div" data-testid="code-cell" data-line-number="965" style="position:relative"><span class="pl-s"> The formula above can be generalized to:</span></div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC966" class="react-file-line html-div" data-testid="code-cell" data-line-number="966" style="position:relative"><span class="pl-s"> `FL(p_t) = alpha * (1 − p_t)^gamma * CrossEntropy(y_true, y_pred)`</span></div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC967" class="react-file-line html-div" data-testid="code-cell" data-line-number="967" style="position:relative"> </div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC968" class="react-file-line html-div" data-testid="code-cell" data-line-number="968" style="position:relative"><span class="pl-s"> where minus comes from `CrossEntropy(y_true, y_pred)` (CE).</span></div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC969" class="react-file-line html-div" data-testid="code-cell" data-line-number="969" style="position:relative"> </div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC970" class="react-file-line html-div" data-testid="code-cell" data-line-number="970" style="position:relative"><span class="pl-s"> Extending this to multi-class case is straightforward:</span></div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC971" class="react-file-line html-div" data-testid="code-cell" data-line-number="971" style="position:relative"><span class="pl-s"> `FL(p_t) = alpha * (1 − p_t)^gamma * CategoricalCE(y_true, y_pred)`</span></div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC972" class="react-file-line html-div" data-testid="code-cell" data-line-number="972" style="position:relative"> </div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC973" class="react-file-line html-div" data-testid="code-cell" data-line-number="973" style="position:relative"><span class="pl-s"> In the snippet below, there is `# classes` floating pointing values per</span></div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC974" class="react-file-line html-div" data-testid="code-cell" data-line-number="974" style="position:relative"><span class="pl-s"> example. The shape of both `y_pred` and `y_true` are</span></div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC975" class="react-file-line html-div" data-testid="code-cell" data-line-number="975" style="position:relative"><span class="pl-s"> `[batch_size, num_classes]`.</span></div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC976" class="react-file-line html-div" data-testid="code-cell" data-line-number="976" style="position:relative"> </div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC977" class="react-file-line html-div" data-testid="code-cell" data-line-number="977" style="position:relative"><span class="pl-s"> Standalone usage:</span></div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC978" class="react-file-line html-div" data-testid="code-cell" data-line-number="978" style="position:relative"> </div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC979" class="react-file-line html-div" data-testid="code-cell" data-line-number="979" style="position:relative"><span class="pl-s"> >>> y_true = [[0., 1., 0.], [0., 0., 1.]]</span></div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC980" class="react-file-line html-div" data-testid="code-cell" data-line-number="980" style="position:relative"><span class="pl-s"> >>> y_pred = [[0.05, 0.95, 0], [0.1, 0.8, 0.1]]</span></div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC981" class="react-file-line html-div" data-testid="code-cell" data-line-number="981" style="position:relative"><span class="pl-s"> >>> # Using 'auto'/'sum_over_batch_size' reduction type.</span></div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC982" class="react-file-line html-div" data-testid="code-cell" data-line-number="982" style="position:relative"><span class="pl-s"> >>> cce = tf.keras.losses.CategoricalFocalCrossentropy()</span></div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC983" class="react-file-line html-div" data-testid="code-cell" data-line-number="983" style="position:relative"><span class="pl-s"> >>> cce(y_true, y_pred).numpy()</span></div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC984" class="react-file-line html-div" data-testid="code-cell" data-line-number="984" style="position:relative"><span class="pl-s"> 0.23315276</span></div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC985" class="react-file-line html-div" data-testid="code-cell" data-line-number="985" style="position:relative"> </div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC986" class="react-file-line html-div" data-testid="code-cell" data-line-number="986" style="position:relative"><span class="pl-s"> >>> # Calling with 'sample_weight'.</span></div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC987" class="react-file-line html-div" data-testid="code-cell" data-line-number="987" style="position:relative"><span class="pl-s"> >>> cce(y_true, y_pred, sample_weight=tf.constant([0.3, 0.7])).numpy()</span></div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC988" class="react-file-line html-div" data-testid="code-cell" data-line-number="988" style="position:relative"><span class="pl-s"> 0.1632</span></div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC989" class="react-file-line html-div" data-testid="code-cell" data-line-number="989" style="position:relative"> </div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC990" class="react-file-line html-div" data-testid="code-cell" data-line-number="990" style="position:relative"><span class="pl-s"> >>> # Using 'sum' reduction type.</span></div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC991" class="react-file-line html-div" data-testid="code-cell" data-line-number="991" style="position:relative"><span class="pl-s"> >>> cce = tf.keras.losses.CategoricalFocalCrossentropy(</span></div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC992" class="react-file-line html-div" data-testid="code-cell" data-line-number="992" style="position:relative"><span class="pl-s"> ... reduction=tf.keras.losses.Reduction.SUM)</span></div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC993" class="react-file-line html-div" data-testid="code-cell" data-line-number="993" style="position:relative"><span class="pl-s"> >>> cce(y_true, y_pred).numpy()</span></div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC994" class="react-file-line html-div" data-testid="code-cell" data-line-number="994" style="position:relative"><span class="pl-s"> 0.46631</span></div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC995" class="react-file-line html-div" data-testid="code-cell" data-line-number="995" style="position:relative"> </div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC996" class="react-file-line html-div" data-testid="code-cell" data-line-number="996" style="position:relative"><span class="pl-s"> >>> # Using 'none' reduction type.</span></div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC997" class="react-file-line html-div" data-testid="code-cell" data-line-number="997" style="position:relative"><span class="pl-s"> >>> cce = tf.keras.losses.CategoricalFocalCrossentropy(</span></div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC998" class="react-file-line html-div" data-testid="code-cell" data-line-number="998" style="position:relative"><span class="pl-s"> ... reduction=tf.keras.losses.Reduction.NONE)</span></div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC999" class="react-file-line html-div" data-testid="code-cell" data-line-number="999" style="position:relative"><span class="pl-s"> >>> cce(y_true, y_pred).numpy()</span></div></div></div><div class="child-of-line-933 react-code-text react-code-line-contents" style="min-height:auto"><div><div id="LC1000" class="react-file-line html-div" data-testid="code-cell" data-line-number="1000" style="position:relative"><span class="pl-s"> array([3.2058331e-05, 4.6627346e-01], dtype=float32)</span></div></div></div></div></div><div class="Box-sc-g0xbh4-0 gkZUDI"><a class="prc-Link-Link-85e08" href="https://github.com/keras-team/tf-keras/raw/refs/tags/v2.18.0/tf_keras/losses.py">View remainder of file in raw view</a></div></div><div id="copilot-button-container"></div></div><div id="highlighted-line-menu-container"></div></div></div><button hidden="" data-testid="hotkey-button" data-hotkey-scope="read-only-cursor-text-area"></button><button hidden=""></button></section></div></div></div> <!-- --> <!-- --> </div></div></div><div class="Box-sc-g0xbh4-0"></div></div></div></div></div><div id="find-result-marks-container" class="Box-sc-g0xbh4-0 cCoXib"></div><button hidden="" data-testid="" data-hotkey-scope="read-only-cursor-text-area"></button><button hidden=""></button></div> <!-- --> <!-- --> <script type="application/json" id="__PRIMER_DATA_:R0:__">{"resolvedServerColorMode":"day"}</script></div> </react-app> </turbo-frame> </div> </turbo-frame> </main> </div> </div> <footer class="footer pt-8 pb-6 f6 color-fg-muted p-responsive" role="contentinfo" > <h2 class='sr-only'>Footer</h2> <div class="d-flex flex-justify-center flex-items-center flex-column-reverse flex-lg-row flex-wrap flex-lg-nowrap"> <div class="d-flex flex-items-center flex-shrink-0 mx-2"> <a aria-label="Homepage" title="GitHub" class="footer-octicon mr-2" href="https://github.com"> <svg aria-hidden="true" height="24" viewBox="0 0 24 24" version="1.1" width="24" data-view-component="true" class="octicon octicon-mark-github"> <path d="M12.5.75C6.146.75 1 5.896 1 12.25c0 5.089 3.292 9.387 7.863 10.91.575.101.79-.244.79-.546 0-.273-.014-1.178-.014-2.142-2.889.532-3.636-.704-3.866-1.35-.13-.331-.69-1.352-1.18-1.625-.402-.216-.977-.748-.014-.762.906-.014 1.553.834 1.769 1.179 1.035 1.74 2.688 1.25 3.349.948.1-.747.402-1.25.733-1.538-2.559-.287-5.232-1.279-5.232-5.678 0-1.25.445-2.285 1.178-3.09-.115-.288-.517-1.467.115-3.048 0 0 .963-.302 3.163 1.179.92-.259 1.897-.388 2.875-.388.977 0 1.955.13 2.875.388 2.2-1.495 3.162-1.179 3.162-1.179.633 1.581.23 2.76.115 3.048.733.805 1.179 1.825 1.179 3.09 0 4.413-2.688 5.39-5.247 5.678.417.36.776 1.05.776 2.128 0 1.538-.014 2.774-.014 3.162 0 .302.216.662.79.547C20.709 21.637 24 17.324 24 12.25 24 5.896 18.854.75 12.5.75Z"></path> </svg> </a> <span> © 2025 GitHub, Inc. </span> </div> <nav aria-label="Footer"> <h3 class="sr-only" id="sr-footer-heading">Footer navigation</h3> <ul class="list-style-none d-flex flex-justify-center flex-wrap mb-2 mb-lg-0" aria-labelledby="sr-footer-heading"> <li class="mx-2"> <a data-analytics-event="{"category":"Footer","action":"go to Terms","label":"text:terms"}" href="https://docs.github.com/site-policy/github-terms/github-terms-of-service" data-view-component="true" class="Link--secondary Link">Terms</a> </li> <li class="mx-2"> <a data-analytics-event="{"category":"Footer","action":"go to privacy","label":"text:privacy"}" href="https://docs.github.com/site-policy/privacy-policies/github-privacy-statement" data-view-component="true" class="Link--secondary Link">Privacy</a> </li> <li class="mx-2"> <a data-analytics-event="{"category":"Footer","action":"go to security","label":"text:security"}" href="https://github.com/security" data-view-component="true" class="Link--secondary Link">Security</a> </li> <li class="mx-2"> <a data-analytics-event="{"category":"Footer","action":"go to status","label":"text:status"}" href="https://www.githubstatus.com/" data-view-component="true" class="Link--secondary Link">Status</a> </li> <li class="mx-2"> <a data-analytics-event="{"category":"Footer","action":"go to docs","label":"text:docs"}" href="https://docs.github.com/" data-view-component="true" class="Link--secondary Link">Docs</a> </li> <li class="mx-2"> <a data-analytics-event="{"category":"Footer","action":"go to contact","label":"text:contact"}" href="https://support.github.com?tags=dotcom-footer" data-view-component="true" class="Link--secondary Link">Contact</a> </li> <li class="mx-2" > <cookie-consent-link> <button type="button" class="Link--secondary underline-on-hover border-0 p-0 color-bg-transparent" data-action="click:cookie-consent-link#showConsentManagement" data-analytics-event="{"location":"footer","action":"cookies","context":"subfooter","tag":"link","label":"cookies_link_subfooter_footer"}" > Manage cookies </button> </cookie-consent-link> </li> <li class="mx-2"> <cookie-consent-link> <button type="button" class="Link--secondary underline-on-hover border-0 p-0 color-bg-transparent" data-action="click:cookie-consent-link#showConsentManagement" data-analytics-event="{"location":"footer","action":"dont_share_info","context":"subfooter","tag":"link","label":"dont_share_info_link_subfooter_footer"}" > Do not share my personal information </button> </cookie-consent-link> </li> </ul> </nav> </div> </footer> <ghcc-consent id="ghcc" class="position-fixed bottom-0 left-0" style="z-index: 999999" data-initial-cookie-consent-allowed="" data-cookie-consent-required="false"></ghcc-consent> <div id="ajax-error-message" class="ajax-error-message flash flash-error" hidden> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-alert"> <path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path> </svg> <button type="button" class="flash-close js-ajax-error-dismiss" aria-label="Dismiss error"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-x"> <path d="M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l3.22 3.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-3.22 3.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06Z"></path> </svg> </button> You can’t perform that action at this time. </div> <template id="site-details-dialog"> <details class="details-reset details-overlay details-overlay-dark lh-default color-fg-default hx_rsm" open> <summary role="button" aria-label="Close dialog"></summary> <details-dialog class="Box Box--overlay d-flex flex-column anim-fade-in fast hx_rsm-dialog hx_rsm-modal"> <button class="Box-btn-octicon m-0 btn-octicon position-absolute right-0 top-0" type="button" aria-label="Close dialog" data-close-dialog> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-x"> <path d="M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l3.22 3.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-3.22 3.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06Z"></path> </svg> </button> <div class="octocat-spinner my-6 js-details-dialog-spinner"></div> </details-dialog> </details> </template> <div class="Popover js-hovercard-content position-absolute" style="display: none; outline: none;"> <div class="Popover-message Popover-message--bottom-left Popover-message--large Box color-shadow-large" style="width:360px;"> </div> </div> <template id="snippet-clipboard-copy-button"> <div class="zeroclipboard-container position-absolute right-0 top-0"> <clipboard-copy aria-label="Copy" class="ClipboardButton btn js-clipboard-copy m-2 p-0" data-copy-feedback="Copied!" data-tooltip-direction="w"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-copy js-clipboard-copy-icon m-2"> <path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z"></path><path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z"></path> </svg> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-check js-clipboard-check-icon color-fg-success d-none m-2"> <path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"></path> </svg> </clipboard-copy> </div> </template> <template id="snippet-clipboard-copy-button-unpositioned"> <div class="zeroclipboard-container"> <clipboard-copy aria-label="Copy" class="ClipboardButton btn btn-invisible js-clipboard-copy m-2 p-0 d-flex flex-justify-center flex-items-center" data-copy-feedback="Copied!" data-tooltip-direction="w"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-copy js-clipboard-copy-icon"> <path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z"></path><path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z"></path> </svg> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-check js-clipboard-check-icon color-fg-success d-none"> <path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"></path> </svg> </clipboard-copy> </div> </template> </div> <div id="js-global-screen-reader-notice" class="sr-only mt-n1" aria-live="polite" aria-atomic="true" ></div> <div id="js-global-screen-reader-notice-assertive" class="sr-only mt-n1" aria-live="assertive" aria-atomic="true"></div> </body> </html>