profile
viewpoint

Ask questionsFeature request: RecallAtPrecision Metric

System information

  • Have I written custom code (as opposed to using a stock example script provided in TensorFlow): yes
  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Mac OS
  • Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
  • TensorFlow installed from (source or binary): pip install
  • TensorFlow version (use command below): 2.1.0
  • Python version: (3, 6, 8, 'final', 0)
  • Bazel version (if compiling from source): NA
  • GCC/Compiler version (if compiling from source): NA
  • CUDA/cuDNN version: NA
  • GPU model and memory: NA
  • Exact command to reproduce: NA

Feature request: tf.keras.metrics.RecallAtPrecision

Thank you all for including PrecisionAtRecall, would it be possible to also add in the inverse, Recall At Precision? I tried adding a custom metric, but its rather difficult to replicate the pattern, since I cannot inherit the SensitivitySpecificityBase class defined in the source code.

Thank you!

tensorflow/tensorflow

Answer questions pavithrasv

@tangbyron Please feel free to send us a PR. You can implement it the same way PrecisionAtRecall has been implemented. Not sure what you mean by you cannot use SensitivitySpecificityBase, you should be able to use it the same way it is in PrecisionAtRecall.

Thank you!

useful!

Related questions

ModuleNotFoundError: No module named 'tensorflow.contrib'
Error occurred when finalizing GeneratorDataset iterator
ModuleNotFoundError: No module named 'tensorflow.contrib'
When importing TensorFlow, error loading Hadoop hot 4
The flag 'log_dir' is defined twice. hot 3
[TF 2.0] Dataset has no attribute 'make_one_shot_iterator' hot 3
Lossy conversion from float32 to uint8. Range [0, 1]. Convert image to uint8 prior to saving to suppress this warning. hot 3
TF2.0 AutoGraph issue hot 3
Error loading tensorflow hot 3
AttributeError: module 'tensorflow' has no attribute 'set_random_seed' hot 3
AttributeError: module 'tensorflow' has no attribute 'Session' hot 3
No tf.lite.experimental.nn.bidirectional_dynamic_rnn ops is finded hot 3
AttributeError: module 'tensorflow' has no attribute 'app' hot 3
Incorrect Error TypeError: padded_batch() missing 1 required positional argument: 'padded_shapes' hot 3
tensorflow2.0 detected 'xla_gpu' , but 'gpu' expected hot 2
Github User Rank List