22 questions
1
vote
0
answers
106
views
Tensorflow Fairness Indicators for Multiclass output
According to the github page for tensorflow fairness-indicators :
Fairness Indicators enables easy computation of commonly-identified fairness metrics for binary and multiclass classifiers.
However, ...
1
vote
1
answer
2k
views
TFX Tensorflow model validator component - You passed a data dictionary with keys ['image_raw_xf']. Expected the following keys: ['input_1']
I'm building a tfx pipeline based on the cifar10 example : [https://github.com/tensorflow/tfx/tree/master/tfx/examples/cifar10]
The difference is that I don't want to convert it to tf_lite model and ...
3
votes
0
answers
289
views
tfma.view.render_plot() won't render in Jupyter, getting 404 on GET /static/tensorflow_model-analysis.js?v=2020103020382
I'm not getting tfma.view.render_plot to render plots with:
tfma.view.render_plot(result)
or
tfma.view.render_time_series
note that tfma.view.render_slicing_metrics does work..
I suspect it's related ...
0
votes
1
answer
1k
views
TFX Pipeline Error While Executing TFMA: AttributeError: 'NoneType' object has no attribute 'ToBatchTensors'
Basically I only reused code from iris utils and iris pipeline with minor change on serving input:
def _get_serve_tf_examples_fn(model, tf_transform_output):
model.tft_layer = ...
2
votes
1
answer
845
views
How to make a custom metric available to TFMA/Beam?
I have created a custom Keras metric, similar to the demo implementation below:
import tensorflow as tf
class MyMetric(tf.keras.metrics.Mean):
def __init__(self, name='my_metric', dtype=None):
...
0
votes
1
answer
626
views
Run TFMA for Keras models without compiling
I am training a Keras model using custom training loops in TensorFlow, where the weights are updated using gradient tape rather than the model.fit() method. As such, the model is not compiled before ...
0
votes
1
answer
2k
views
how to fix "Command errored out with exit status 1"
I'm trying to install it on colab notebook.
The command I tried is :
pip install models
It's giving me error as:
Collecting models
Using cached https://files.pythonhosted.org/packages/92/3c/...
1
vote
0
answers
323
views
Unable to find pip package
I have been using bazel build for my im2txt model from TensorFlow and it shows me
ModuleNotFoundError: No module named 'nltk'
I have installed the package nltk and tried to even create an ...
0
votes
1
answer
155
views
tensorflow-model-analysis release 0.13.2 and 0.13.1 does not run in python2
I downloaded tfma source code 0.13.2 and ran it in jupyter notebook locally with python2, and it does not work
Working code:
import tensorflow as tf
import third_party.tensorflow_model_analysis....
2
votes
0
answers
432
views
tfma.view.render_slicing_metrics not working
I am trying to visualize model results using tfma.view.render_slicing_metrics. I am getting the results with tfma.load_eval_result(tfma_artifact.uri) and I am able to print the results.
[EvalResult(...
4
votes
1
answer
1k
views
Tensorflow model analysis, TFMA for keras model
I would like to use TFMA with keras model. The keras model was created with TF 2.0 alpha.
The model is a pretrained model with a classification layer:
...
3
votes
1
answer
4k
views
Keras + Tensorflow Model Optimization: TypeError: clone_model() got an unexpected keyword argument 'clone_function'
I'm trying Tensorflow Model Optimization in order to prune a simple Neural Network. Here's my code:
from __future__ import absolute_import, division, print_function, unicode_literals, ...
7
votes
1
answer
494
views
What happens if tf.stop_gradient is not set?
I am reading the faster-rcnn code of tensorflow models. I am confused with the use of tf.stop_gradient.
Consider the following code snippet:
if self._is_training:
proposal_boxes = tf....
0
votes
1
answer
311
views
how to resolve install problem with tensorflow-model-analysis using jupyterlab notebook?
I am trying to follow the guide on this link but I get an error on the second step for enabling TFMA visualization in Jupyter Notebook. I assume this is something you do in a cell?
2
votes
2
answers
147
views
Which model should i use for tensorflow (contrib or models)?
For example if i want to use renset_v2, there are two model file on tensorflow:
one is here, another is here. Lots of tensorflow model are both in models/research and tensorflow/contrib.
I am very ...