You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

BinaryAccuracy.cs 482 B

12345678910111213141516171819
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace Tensorflow.Keras.Metrics
  5. {
  6. public class BinaryAccuracy : MeanMetricWrapper
  7. {
  8. public BinaryAccuracy(string name = "binary_accuracy", string dtype = null, float threshold = 0.5f)
  9. : base(Fn, name, dtype)
  10. {
  11. }
  12. internal static Tensor Fn(Tensor y_true, Tensor y_pred)
  13. {
  14. return Metric.binary_accuracy(y_true, y_pred);
  15. }
  16. }
  17. }