using System; using System.Collections.Generic; using System.Text; namespace Tensorflow.Keras.Metrics { public class BinaryAccuracy : MeanMetricWrapper { public BinaryAccuracy(string name = "binary_accuracy", string dtype = null, float threshold = 0.5f) : base(Fn, name, dtype) { } internal static Tensor Fn(Tensor y_true, Tensor y_pred) { return Metric.binary_accuracy(y_true, y_pred); } } }
tensorflow框架的.NET版本,提供了丰富的特性和API,可以借此很方便地在.NET平台下搭建深度学习训练与推理流程。