Home
last modified time | relevance | path

Searched refs:MetricKey (Results 1 – 18 of 18) sorted by relevance

/external/setupcompat/main/java/com/google/android/setupcompat/logging/
DMetricKey.java33 public final class MetricKey implements Parcelable { class
52 public static MetricKey get(@NonNull String name, @NonNull String screenName) { in get()
62 return new MetricKey(name, screenName); in get()
66 public static Bundle fromMetricKey(MetricKey metricKey) { in fromMetricKey()
76 public static MetricKey toMetricKey(Bundle bundle) { in toMetricKey()
78 return MetricKey.get( in toMetricKey()
83 public static final Creator<MetricKey> CREATOR =
84 new Creator<MetricKey>() {
86 public MetricKey createFromParcel(Parcel in) {
87 return new MetricKey(in.readString(), in.readString());
[all …]
DCustomEvent.java51 MetricKey metricKey, PersistableBundle bundle, PersistableBundle piiValues) { in create()
66 public static CustomEvent create(MetricKey metricKey, PersistableBundle bundle) { in create()
77 MetricKey.toMetricKey(bundle.getBundle(BUNDLE_KEY_METRICKEY)), in toCustomEvent()
88 bundle.putBundle(BUNDLE_KEY_METRICKEY, MetricKey.fromMetricKey(customEvent.metricKey())); in toBundle()
101 in.readParcelable(MetricKey.class.getClassLoader()),
102 in.readPersistableBundle(MetricKey.class.getClassLoader()),
103 in.readPersistableBundle(MetricKey.class.getClassLoader()));
118 public MetricKey metricKey() { in metricKey()
170 MetricKey metricKey, in CustomEvent()
186 private final MetricKey metricKey;
DTimer.java26 public Timer(MetricKey metricKey) { in Timer()
76 MetricKey getMetricKey() { in getMetricKey()
82 private final MetricKey metricKey;
DSetupMetricsLogger.java41 @NonNull Context context, @NonNull MetricKey counterName, int times) { in logCounter()
65 @NonNull Context context, @NonNull MetricKey timerName, long timeInMillis) { in logDuration()
/external/tensorflow/tensorflow/contrib/learn/python/learn/estimators/
Dlogistic_regressor_test.py78 0.0, eval_metrics[metric_key.MetricKey.PREDICTION_MEAN], err=1e-3)
80 0.5, eval_metrics[metric_key.MetricKey.LABEL_MEAN], err=1e-6)
82 0.5, eval_metrics[metric_key.MetricKey.ACCURACY_BASELINE], err=1e-6)
83 self.assertNear(0.5, eval_metrics[metric_key.MetricKey.AUC], err=1e-6)
85 0.5, eval_metrics[metric_key.MetricKey.ACCURACY_MEAN % 0.5], err=1e-6)
87 0.0, eval_metrics[metric_key.MetricKey.PRECISION_MEAN % 0.5], err=1e-6)
89 0.0, eval_metrics[metric_key.MetricKey.RECALL_MEAN % 0.5], err=1e-6)
96 0.5, eval_metrics[metric_key.MetricKey.PREDICTION_MEAN], err=1e-2)
99 0.5, eval_metrics[metric_key.MetricKey.LABEL_MEAN], err=1e-6)
101 0.5, eval_metrics[metric_key.MetricKey.ACCURACY_BASELINE], err=1e-6)
[all …]
Dlogistic_regressor.py151 metrics[metric_key.MetricKey.PREDICTION_MEAN] = metrics_lib.streaming_mean(
153 metrics[metric_key.MetricKey.LABEL_MEAN] = metrics_lib.streaming_mean(
157 metrics[metric_key.MetricKey.ACCURACY_BASELINE] = metrics_lib.streaming_mean(
160 metrics[metric_key.MetricKey.AUC] = metrics_lib.streaming_auc(
168 metrics[metric_key.MetricKey.ACCURACY_MEAN % threshold] = (
172 metrics[metric_key.MetricKey.PRECISION_MEAN % threshold] = (
176 metrics[metric_key.MetricKey.RECALL_MEAN % threshold] = (
Dmetric_key.py26 class MetricKey(object): class
D__init__.py329 from tensorflow.contrib.learn.python.learn.estimators.metric_key import MetricKey
Dmodel_fn.py285 if key != metric_key.MetricKey.LOSS:
Destimator.py1294 if metric_key.MetricKey.LOSS not in model_fn_ops.eval_metric_ops:
1295 model_fn_ops.eval_metric_ops[metric_key.MetricKey.LOSS] = (
Dhead.py35 from tensorflow.contrib.learn.python.learn.estimators.metric_key import MetricKey as mkey
/external/setupcompat/main/java/com/google/android/setupcompat/logging/internal/
DMetricBundleConverter.java5 import com.google.android.setupcompat.logging.MetricKey;
17 public static Bundle createBundleForLoggingCounter(MetricKey counterName, int times) { in createBundleForLoggingCounter()
19 bundle.putParcelable(MetricBundleKeys.METRIC_KEY_BUNDLE, MetricKey.fromMetricKey(counterName)); in createBundleForLoggingCounter()
24 public static Bundle createBundleForLoggingTimer(MetricKey timerName, long timeInMillis) { in createBundleForLoggingTimer()
26 bundle.putParcelable(MetricBundleKeys.METRIC_KEY_BUNDLE, MetricKey.fromMetricKey(timerName)); in createBundleForLoggingTimer()
DPartnerCustomizedResourceListMetric.java26 import com.google.android.setupcompat.logging.MetricKey;
39 CustomEvent.create(MetricKey.get("PartnerCustomizationResource", screenName), logBundle)); in logMetrics()
DSetupMetricsLoggingConstants.java22 import com.google.android.setupcompat.logging.MetricKey;
/external/robolectric-shadows/utils/src/main/java/org/robolectric/util/
DPerfStatsCollector.java19 private final Map<MetricKey, Metric> metricMap = new HashMap<>();
132 MetricKey key = new MetricKey(name, success); in finished()
225 private static class MetricKey { class in PerfStatsCollector
229 MetricKey(String name, boolean success) { in MetricKey() method in PerfStatsCollector.MetricKey
243 MetricKey metricKey = (MetricKey) o; in equals()
/external/setupcompat/main/java/com/google/android/setupcompat/internal/
DLifecycleFragment.java28 import com.google.android.setupcompat.logging.MetricKey;
37 private MetricKey metricKey;
90 metricKey = MetricKey.get("ScreenDuration", getActivity().getClass().getSimpleName()); in onAttach()
/external/setupcompat/main/java/com/google/android/setupcompat/
DPartnerCustomizationLayout.java38 import com.google.android.setupcompat.logging.MetricKey;
216 MetricKey.get("SetupCompatMetrics", activity.getClass().getSimpleName()), in onDetachedFromWindow()
/external/tensorflow/tensorflow/contrib/learn/python/learn/utils/
Dsaved_model_export_utils.py562 default_key = metric_key.MetricKey.LOSS