|
1 | 1 | using System; |
2 | 2 | using System.Collections.Generic; |
| 3 | +using System.Reflection; |
3 | 4 | using System.Text; |
4 | 5 |
|
5 | 6 | namespace Tensorflow.Keras.Utils |
6 | 7 | { |
7 | | - class MetricsUtils |
| 8 | + public class MetricsUtils |
8 | 9 | { |
| 10 | + public static class Reduction |
| 11 | + { |
| 12 | + public const string SUM = "sum"; |
| 13 | + public const string SUM_OVER_BATCH_SIZE = "sum_over_batch_size"; |
| 14 | + public const string WEIGHTED_MEAN = "weighted_mean"; |
| 15 | + } |
| 16 | + |
| 17 | + public static class ConfusionMatrix |
| 18 | + { |
| 19 | + public const string TRUE_POSITIVES = "tp"; |
| 20 | + public const string FALSE_POSITIVES = "fp"; |
| 21 | + public const string TRUE_NEGATIVES = "tn"; |
| 22 | + public const string FALSE_NEGATIVES = "fn"; |
| 23 | + } |
| 24 | + |
| 25 | + public static class AUCCurve |
| 26 | + { |
| 27 | + public const string ROC = "ROC"; |
| 28 | + public const string PR = "PR"; |
| 29 | + |
| 30 | + public static string from_str(string key) => throw new NotImplementedException(); |
| 31 | + } |
| 32 | + |
| 33 | + public static class AUCSummationMethod |
| 34 | + { |
| 35 | + public const string INTERPOLATION = "interpolation"; |
| 36 | + public const string MAJORING = "majoring"; |
| 37 | + public const string MINORING = "minoring"; |
| 38 | + |
| 39 | + public static string from_str(string key) => throw new NotImplementedException(); |
| 40 | + } |
| 41 | + |
| 42 | + public static dynamic update_state_wrapper(Func<Args, KwArgs, Func<bool>> update_state_fn) => throw new NotImplementedException(); |
| 43 | + |
| 44 | + public static dynamic result_wrapper(Func<Args, Tensor> result_fn) => throw new NotImplementedException(); |
| 45 | + |
| 46 | + public static WeakReference weakmethod(MethodInfo method) => throw new NotImplementedException(); |
| 47 | + |
| 48 | + public static void assert_thresholds_range(float[] thresholds) => throw new NotImplementedException(); |
| 49 | + |
| 50 | + public static void parse_init_thresholds(float[] thresholds, float default_threshold = 0.5f) => throw new NotImplementedException(); |
| 51 | + |
| 52 | + public static Operation update_confusion_matrix_variables(variables variables_to_update, Tensor y_true, Tensor y_pred, float[] thresholds, |
| 53 | + int? top_k= null,int? class_id= null, Tensor sample_weight= null, bool multi_label= false, |
| 54 | + Tensor label_weights= null) => throw new NotImplementedException(); |
| 55 | + |
| 56 | + private static Tensor _filter_top_k(Tensor x, int k) => throw new NotImplementedException(); |
| 57 | + |
| 58 | + private static (Tensor[], Tensor) ragged_assert_compatible_and_get_flat_values(Tensor[] values, Tensor mask = null) => throw new NotImplementedException(); |
9 | 59 | } |
10 | 60 | } |
0 commit comments