File tree Expand file tree Collapse file tree 5 files changed +105
-195
lines changed
tensorflow_model_analysis Expand file tree Collapse file tree 5 files changed +105
-195
lines changed Original file line number Diff line number Diff line change 3535 * metrics_plots_and_validations_writer was failing while writing cross
3636 slice comparison results to metrics file.
3737 * Fairness widget view was not compatible with cross slicing key type.
38- * Fix support for loading the UI outside of a notebook.
3938* Depends on ` absl-py>=0.9,<0.13 ` .
4039* Depends on ` tensorflow-metadata>=0.29.0,<0.30.0 ` .
4140* Depends on ` tfx-bsl>=0.29.0,<0.30.0 ` .
Original file line number Diff line number Diff line change @@ -21,15 +21,9 @@ const version = require('../package.json').version;
2121 * Helper method to load the vulcanized templates.
2222 */
2323function loadVulcanizedTemplate ( ) {
24- const isWebpackPublicPathDefined =
25- typeof __webpack_public_path__ !== 'undefined' ;
26- const templatePath = isWebpackPublicPathDefined ?
27- __webpack_public_path__ :
28- // Jupyter hosted path.
29- ( ( document . querySelector ( 'body' ) . getAttribute ( 'data-base-url' ) || '/' ) +
30- 'nbextensions/tensorflow_model_analysis/' ) ;
31- // templatePath ends with a slash.
32- const templateLocation = `${ templatePath } vulcanized_tfma.js` ;
24+ const templateLocation =
25+ ( document . querySelector ( 'body' ) . getAttribute ( 'data-base-url' ) || '/' ) +
26+ 'nbextensions/tensorflow_model_analysis/vulcanized_tfma.js' ;
3327
3428 // If the vulcanizes tempalets are not loaded yet, load it now.
3529 if ( ! document . querySelector ( 'script[src="' + templateLocation + '"]' ) ) {
Original file line number Diff line number Diff line change 1+ /**
2+ * Copyright 2018 Google LLC
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * https://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
116define ( function ( ) { return /******/ ( function ( modules ) { // webpackBootstrap
217/******/ // The module cache
318/******/ var installedModules = { } ;
@@ -90,8 +105,7 @@ if (window.require) {
90105 window . require . config ( {
91106 map : {
92107 '*' : {
93- 'tensorflow_model_analysis' :
94- 'nbextensions/tensorflow_model_analysis/index' ,
108+ 'tensorflow_model_analysis' : 'nbextensions/tensorflow_model_analysis/index' ,
95109 }
96110 }
97111 } ) ;
@@ -104,4 +118,4 @@ module.exports = {
104118
105119
106120/***/ } )
107- /******/ ] ) } ) ; ;
121+ /******/ ] ) } ) ; ;
You can’t perform that action at this time.
0 commit comments