File tree 5 files changed +105
-195
lines changed
tensorflow_model_analysis
5 files changed +105
-195
lines changed Original file line number Diff line number Diff line change 35
35
* metrics_plots_and_validations_writer was failing while writing cross
36
36
slice comparison results to metrics file.
37
37
* Fairness widget view was not compatible with cross slicing key type.
38
- * Fix support for loading the UI outside of a notebook.
39
38
* Depends on ` absl-py>=0.9,<0.13 ` .
40
39
* Depends on ` tensorflow-metadata>=0.29.0,<0.30.0 ` .
41
40
* 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;
21
21
* Helper method to load the vulcanized templates.
22
22
*/
23
23
function 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' ;
33
27
34
28
// If the vulcanizes tempalets are not loaded yet, load it now.
35
29
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
+ */
1
16
define ( function ( ) { return /******/ ( function ( modules ) { // webpackBootstrap
2
17
/******/ // The module cache
3
18
/******/ var installedModules = { } ;
@@ -90,8 +105,7 @@ if (window.require) {
90
105
window . require . config ( {
91
106
map : {
92
107
'*' : {
93
- 'tensorflow_model_analysis' :
94
- 'nbextensions/tensorflow_model_analysis/index' ,
108
+ 'tensorflow_model_analysis' : 'nbextensions/tensorflow_model_analysis/index' ,
95
109
}
96
110
}
97
111
} ) ;
@@ -104,4 +118,4 @@ module.exports = {
104
118
105
119
106
120
/***/ } )
107
- /******/ ] ) } ) ; ;
121
+ /******/ ] ) } ) ; ;
You can’t perform that action at this time.
0 commit comments