Home
last modified time | relevance | path

Searched refs:metrics (Results 1 – 25 of 946) sorted by relevance

12345678910>>...38

/external/tensorflow/tensorflow/contrib/metrics/
D__init__.py85 from tensorflow.contrib.metrics.python.metrics import *
87 from tensorflow.contrib.metrics.python.ops.confusion_matrix_ops import confusion_matrix
88 from tensorflow.contrib.metrics.python.ops.histogram_ops import auc_using_histogram
89 from tensorflow.contrib.metrics.python.ops.metric_ops import aggregate_metric_map
90 from tensorflow.contrib.metrics.python.ops.metric_ops import aggregate_metrics
91 from tensorflow.contrib.metrics.python.ops.metric_ops import auc_with_confidence_intervals
92 from tensorflow.contrib.metrics.python.ops.metric_ops import cohen_kappa
93 from tensorflow.contrib.metrics.python.ops.metric_ops import count
94 from tensorflow.contrib.metrics.python.ops.metric_ops import precision_at_recall
95 from tensorflow.contrib.metrics.python.ops.metric_ops import precision_recall_at_equal_thresholds
[all …]
/external/opencensus-java/contrib/dropwizard/src/test/java/io/opencensus/contrib/dropwizard/
DDropWizardMetricsTest.java22 import com.codahale.metrics.Counter;
23 import com.codahale.metrics.Gauge;
24 import com.codahale.metrics.Histogram;
25 import com.codahale.metrics.Meter;
26 import com.codahale.metrics.Timer;
28 import io.opencensus.metrics.LabelKey;
29 import io.opencensus.metrics.export.Metric;
30 import io.opencensus.metrics.export.MetricDescriptor;
31 import io.opencensus.metrics.export.MetricDescriptor.Type;
32 import io.opencensus.metrics.export.Summary;
[all …]
/external/tensorflow/tensorflow/contrib/keras/api/keras/metrics/
D__init__.py22 from tensorflow.python.keras.metrics import binary_accuracy
23 from tensorflow.python.keras.metrics import binary_crossentropy
24 from tensorflow.python.keras.metrics import categorical_accuracy
25 from tensorflow.python.keras.metrics import categorical_crossentropy
26 from tensorflow.python.keras.metrics import cosine_similarity
27 from tensorflow.python.keras.metrics import hinge
28 from tensorflow.python.keras.metrics import kullback_leibler_divergence
29 from tensorflow.python.keras.metrics import mean_absolute_error
30 from tensorflow.python.keras.metrics import mean_absolute_percentage_error
31 from tensorflow.python.keras.metrics import mean_squared_error
[all …]
/external/freetype/src/cff/
Dcffgload.c241 glyph->x_scale = size->root.metrics.x_scale; in cff_slot_load()
242 glyph->y_scale = size->root.metrics.y_scale; in cff_slot_load()
262 TT_SBit_MetricsRec metrics; in cff_slot_load() local
271 &metrics ); in cff_slot_load()
283 glyph->root.metrics.width = (FT_Pos)metrics.width * 64; in cff_slot_load()
284 glyph->root.metrics.height = (FT_Pos)metrics.height * 64; in cff_slot_load()
286 glyph->root.metrics.horiBearingX = (FT_Pos)metrics.horiBearingX * 64; in cff_slot_load()
287 glyph->root.metrics.horiBearingY = (FT_Pos)metrics.horiBearingY * 64; in cff_slot_load()
288 glyph->root.metrics.horiAdvance = (FT_Pos)metrics.horiAdvance * 64; in cff_slot_load()
290 glyph->root.metrics.vertBearingX = (FT_Pos)metrics.vertBearingX * 64; in cff_slot_load()
[all …]
/external/ImageMagick/MagickCore/
Dannotate.c302 metrics; in AnnotateImage() local
349 (void) GetTypeMetrics(image,annotate,&metrics,exception); in AnnotateImage()
350 height=(ssize_t) (metrics.ascent-metrics.descent+ in AnnotateImage()
365 (metrics.ascent+metrics.descent); in AnnotateImage()
368 metrics.ascent; in AnnotateImage()
375 annotate_info->affine.sx*metrics.width/2.0+annotate_info->affine.ry* in AnnotateImage()
376 (metrics.ascent+metrics.descent); in AnnotateImage()
379 metrics.ascent-annotate_info->affine.rx*metrics.width/2.0; in AnnotateImage()
386 annotate_info->affine.sx*metrics.width+annotate_info->affine.ry* in AnnotateImage()
387 (metrics.ascent+metrics.descent)-1.0; in AnnotateImage()
[all …]
/external/opencensus-java/contrib/zpages/src/main/java/io/opencensus/contrib/zpages/
DRpczZPageHandler.java19 import static io.opencensus.contrib.grpc.metrics.RpcViewConstants.RPC_CLIENT_ERROR_COUNT_HOUR_VIEW;
20 import static io.opencensus.contrib.grpc.metrics.RpcViewConstants.RPC_CLIENT_ERROR_COUNT_MINUTE_VIE…
21 import static io.opencensus.contrib.grpc.metrics.RpcViewConstants.RPC_CLIENT_ERROR_COUNT_VIEW;
22 import static io.opencensus.contrib.grpc.metrics.RpcViewConstants.RPC_CLIENT_FINISHED_COUNT_CUMULAT…
23 import static io.opencensus.contrib.grpc.metrics.RpcViewConstants.RPC_CLIENT_FINISHED_COUNT_HOUR_VI…
24 import static io.opencensus.contrib.grpc.metrics.RpcViewConstants.RPC_CLIENT_FINISHED_COUNT_MINUTE_…
25 import static io.opencensus.contrib.grpc.metrics.RpcViewConstants.RPC_CLIENT_REQUEST_BYTES_HOUR_VIE…
26 import static io.opencensus.contrib.grpc.metrics.RpcViewConstants.RPC_CLIENT_REQUEST_BYTES_MINUTE_V…
27 import static io.opencensus.contrib.grpc.metrics.RpcViewConstants.RPC_CLIENT_REQUEST_BYTES_VIEW;
28 import static io.opencensus.contrib.grpc.metrics.RpcViewConstants.RPC_CLIENT_REQUEST_COUNT_HOUR_VIE…
[all …]
/external/fonttools/Lib/fontTools/ttLib/tables/
D_h_m_t_x.py41 metrics = struct.unpack(metricsFmt, data[:4 * numberOfMetrics])
50 self.metrics = {}
54 advanceWidth, lsb = metrics[i*2:i*2+2]
60 self.metrics[glyphName] = (advanceWidth, lsb)
61 lastAdvance = metrics[-2]
64 self.metrics[glyphName] = (lastAdvance, sideBearings[i])
67 metrics = []
70 advanceWidth, sideBearing = self.metrics[glyphName]
75 metrics.append([advanceWidth, sideBearing])
79 lastAdvance = metrics[-1][0]
[all …]
DE_B_D_T_.py135 glyph.exportMetrics = glyph.metrics
137 glyph.exportMetrics = curIndexSubTable.metrics
271 metrics = bitmapObject.exportMetrics
276 writer.begintag('rowimagedata', bitDepth=bitDepth, width=metrics.width, height=metrics.height)
278 for curRow in range(metrics.height):
279 rowData = bitmapObject.getRow(curRow, bitDepth=bitDepth, metrics=metrics)
287 metrics = SmallGlyphMetrics()
288 metrics.width = safeEval(attrs['width'])
289 metrics.height = safeEval(attrs['height'])
299 bitmapObject.setRows(dataRows, bitDepth=bitDepth, metrics=metrics)
[all …]
/external/freetype/src/sfnt/
Dttsbit.c290 FT_Size_Metrics* metrics ) in tt_face_load_strike_metrics() argument
321 metrics->x_ppem = (FT_UShort)strike[44]; in tt_face_load_strike_metrics()
322 metrics->y_ppem = (FT_UShort)strike[45]; in tt_face_load_strike_metrics()
324 metrics->ascender = (FT_Char)strike[16] * 64; /* hori.ascender */ in tt_face_load_strike_metrics()
325 metrics->descender = (FT_Char)strike[17] * 64; /* hori.descender */ in tt_face_load_strike_metrics()
337 if ( metrics->descender > 0 ) in tt_face_load_strike_metrics()
341 metrics->descender = -metrics->descender; in tt_face_load_strike_metrics()
344 else if ( metrics->descender == 0 ) in tt_face_load_strike_metrics()
346 if ( metrics->ascender == 0 ) in tt_face_load_strike_metrics()
353 metrics->x_ppem, metrics->y_ppem )); in tt_face_load_strike_metrics()
[all …]
/external/ImageMagick/coders/
Dcaption.c124 metrics; in ReadCAPTIONImage() local
172 (void) memset(&metrics,0,sizeof(metrics)); in ReadCAPTIONImage()
176 i=FormatMagickCaption(image,draw_info,split,&metrics,&text, in ReadCAPTIONImage()
181 -metrics.bounds.x1,metrics.ascent); in ReadCAPTIONImage()
184 status=GetMultilineTypeMetrics(image,draw_info,&metrics,exception); in ReadCAPTIONImage()
185 width=(size_t) floor(metrics.width+draw_info->stroke_width+0.5); in ReadCAPTIONImage()
192 i=FormatMagickCaption(image,draw_info,split,&metrics,&text,exception); in ReadCAPTIONImage()
196 -metrics.bounds.x1,metrics.ascent); in ReadCAPTIONImage()
199 status=GetMultilineTypeMetrics(image,draw_info,&metrics,exception); in ReadCAPTIONImage()
200 image->rows=(size_t) ((i+1)*(metrics.ascent-metrics.descent+ in ReadCAPTIONImage()
[all …]
Dlabel.c107 metrics; in ReadLABELImage() local
141 (void) memset(&metrics,0,sizeof(metrics)); in ReadLABELImage()
142 status=GetMultilineTypeMetrics(image,draw_info,&metrics,exception); in ReadLABELImage()
145 image->columns=(size_t) floor(metrics.width+draw_info->stroke_width+0.5); in ReadLABELImage()
146 image->rows=(size_t) floor(metrics.height+draw_info->stroke_width+0.5); in ReadLABELImage()
166 -metrics.bounds.x1,metrics.ascent); in ReadLABELImage()
169 status=GetMultilineTypeMetrics(image,draw_info,&metrics,exception); in ReadLABELImage()
172 width=(size_t) floor(metrics.width+draw_info->stroke_width+0.5); in ReadLABELImage()
173 height=(size_t) floor(metrics.height+draw_info->stroke_width+0.5); in ReadLABELImage()
196 -metrics.bounds.x1,metrics.ascent); in ReadLABELImage()
[all …]
/external/freetype/src/autofit/
Dafindic.c36 af_indic_metrics_init( AF_CJKMetrics metrics, in af_indic_metrics_init() argument
43 metrics->units_per_em = face->units_per_EM; in af_indic_metrics_init()
49 af_cjk_metrics_init_widths( metrics, face ); in af_indic_metrics_init()
52 af_cjk_metrics_init_blues( metrics, face, af_cjk_blue_chars ); in af_indic_metrics_init()
54 af_cjk_metrics_check_digits( metrics, face ); in af_indic_metrics_init()
64 af_indic_metrics_scale( AF_CJKMetrics metrics, in af_indic_metrics_scale() argument
68 af_cjk_metrics_scale( metrics, scaler ); in af_indic_metrics_scale()
74 AF_CJKMetrics metrics ) in af_indic_hints_init() argument
77 return af_cjk_hints_init( hints, metrics ); in af_indic_hints_init()
85 AF_CJKMetrics metrics ) in af_indic_hints_apply() argument
[all …]
/external/opencensus-java/contrib/dropwizard/src/main/java/io/opencensus/contrib/dropwizard/
DDropWizardMetrics.java19 import com.codahale.metrics.Counter;
20 import com.codahale.metrics.Gauge;
21 import com.codahale.metrics.Histogram;
22 import com.codahale.metrics.Meter;
23 import com.codahale.metrics.Timer;
29 import io.opencensus.metrics.LabelKey;
30 import io.opencensus.metrics.LabelValue;
31 import io.opencensus.metrics.export.Metric;
32 import io.opencensus.metrics.export.MetricDescriptor;
33 import io.opencensus.metrics.export.MetricDescriptor.Type;
[all …]
/external/freetype/src/cid/
Dcidgload.c236 FT_Incremental_MetricsRec metrics; in cid_load_glyph() local
239 metrics.bearing_x = FIXED_TO_INT( decoder->builder.left_bearing.x ); in cid_load_glyph()
240 metrics.bearing_y = 0; in cid_load_glyph()
241 metrics.advance = FIXED_TO_INT( decoder->builder.advance.x ); in cid_load_glyph()
242 metrics.advance_v = FIXED_TO_INT( decoder->builder.advance.y ); in cid_load_glyph()
245 glyph_index, FALSE, &metrics ); in cid_load_glyph()
247 decoder->builder.left_bearing.x = INT_TO_FIXED( metrics.bearing_x ); in cid_load_glyph()
248 decoder->builder.advance.x = INT_TO_FIXED( metrics.advance ); in cid_load_glyph()
249 decoder->builder.advance.y = INT_TO_FIXED( metrics.advance_v ); in cid_load_glyph()
364 glyph->x_scale = cidsize->metrics.x_scale; in cid_slot_load_glyph()
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowDisplayTest.java45 DisplayMetrics metrics = new DisplayMetrics(); in shouldProvideDisplayMetrics() local
47 display.getMetrics(metrics); in shouldProvideDisplayMetrics()
49 assertEquals(1.5f, metrics.density, 0.05); in shouldProvideDisplayMetrics()
50 assertEquals(DisplayMetrics.DENSITY_HIGH, metrics.densityDpi); in shouldProvideDisplayMetrics()
51 assertEquals(1.6f, metrics.scaledDensity, 0.05); in shouldProvideDisplayMetrics()
52 assertEquals(1024, metrics.widthPixels); in shouldProvideDisplayMetrics()
53 assertEquals(600, metrics.heightPixels); in shouldProvideDisplayMetrics()
54 assertEquals(183.0f, metrics.xdpi, 0.05); in shouldProvideDisplayMetrics()
55 assertEquals(184.0f, metrics.ydpi, 0.05); in shouldProvideDisplayMetrics()
57 metrics = new DisplayMetrics(); in shouldProvideDisplayMetrics()
[all …]
/external/freetype/src/type1/
Dt1gload.c143 FT_Incremental_MetricsRec metrics; in T1_Parse_Glyph_And_Get_Char_String() local
146 metrics.bearing_x = FIXED_TO_INT( decoder->builder.left_bearing.x ); in T1_Parse_Glyph_And_Get_Char_String()
147 metrics.bearing_y = 0; in T1_Parse_Glyph_And_Get_Char_String()
148 metrics.advance = FIXED_TO_INT( decoder->builder.advance.x ); in T1_Parse_Glyph_And_Get_Char_String()
149 metrics.advance_v = FIXED_TO_INT( decoder->builder.advance.y ); in T1_Parse_Glyph_And_Get_Char_String()
152 glyph_index, FALSE, &metrics ); in T1_Parse_Glyph_And_Get_Char_String()
154 decoder->builder.left_bearing.x = INT_TO_FIXED( metrics.bearing_x ); in T1_Parse_Glyph_And_Get_Char_String()
155 decoder->builder.advance.x = INT_TO_FIXED( metrics.advance ); in T1_Parse_Glyph_And_Get_Char_String()
156 decoder->builder.advance.y = INT_TO_FIXED( metrics.advance_v ); in T1_Parse_Glyph_And_Get_Char_String()
393 glyph->x_scale = t1size->metrics.x_scale; in T1_Load_Glyph()
[all …]
/external/tensorflow/tensorflow/python/keras/
Dmetrics_confusion_matrix_test.py29 from tensorflow.python.keras import metrics
41 fp_obj = metrics.FalsePositives(name='my_fp', thresholds=[0.4, 0.9])
47 fp_obj2 = metrics.FalsePositives.from_config(fp_obj.get_config())
53 fp_obj = metrics.FalsePositives()
67 fp_obj = metrics.FalsePositives()
78 fp_obj = metrics.FalsePositives(thresholds=[0.15, 0.5, 0.85])
92 fp_obj = metrics.FalsePositives(thresholds=[0.15, 0.5, 0.85])
109 metrics.FalsePositives(thresholds=[-1, 0.5, 2])
114 metrics.FalsePositives(thresholds=[None])
121 fn_obj = metrics.FalseNegatives(name='my_fn', thresholds=[0.4, 0.9])
[all …]
Dmetrics_functional_test.py25 from tensorflow.python.keras import metrics
35 for metric in [metrics.binary_accuracy, metrics.categorical_accuracy]:
41 metric = metrics.sparse_categorical_accuracy
60 metric = metrics.sparse_categorical_accuracy
68 metric = metrics.sparse_categorical_accuracy
76 metric = metrics.sparse_categorical_accuracy
87 metrics.sparse_top_k_categorical_accuracy(y_true, y_pred, k=3))
90 metrics.sparse_top_k_categorical_accuracy(y_true, y_pred, k=2))
93 metrics.sparse_top_k_categorical_accuracy(y_true, y_pred, k=1))
100 metrics.sparse_top_k_categorical_accuracy(y_true, y_pred, k=3))
[all …]
Dmetrics_test.py34 from tensorflow.python.keras import metrics
49 m = metrics.Sum(name='my_sum')
76 m = metrics.Sum(dtype=dtypes.float64)
115 m = metrics.Sum()
134 m = metrics.Sum()
152 restore_sum = metrics.Sum()
167 m = metrics.Mean(name='my_mean')
198 m2 = metrics.Mean.from_config(m.get_config())
205 m = metrics.Mean(dtype=dtypes.float64)
249 m = metrics.Mean()
[all …]
/external/ImageMagick/MagickWand/
Dmagick-wand.c527 metrics; in MagickQueryFontMetrics() local
550 (void) memset(&metrics,0,sizeof(metrics)); in MagickQueryFontMetrics()
551 status=GetTypeMetrics(wand->images,draw_info,&metrics,wand->exception); in MagickQueryFontMetrics()
558 font_metrics[0]=metrics.pixels_per_em.x; in MagickQueryFontMetrics()
559 font_metrics[1]=metrics.pixels_per_em.y; in MagickQueryFontMetrics()
560 font_metrics[2]=metrics.ascent; in MagickQueryFontMetrics()
561 font_metrics[3]=metrics.descent; in MagickQueryFontMetrics()
562 font_metrics[4]=metrics.width; in MagickQueryFontMetrics()
563 font_metrics[5]=metrics.height; in MagickQueryFontMetrics()
564 font_metrics[6]=metrics.max_advance; in MagickQueryFontMetrics()
[all …]
/external/tensorflow/tensorflow/contrib/eager/python/
Dmetrics_test.py24 from tensorflow.contrib.eager.python import metrics
44 m = metrics.Mean()
54 m = metrics.Mean()
66 m = metrics.Mean(use_global_variables=True)
77 m = metrics.Mean()
86 m = metrics.Mean()
110 m = metrics.Mean()
117 m = metrics.Mean(dtype=dtypes.float32)
124 m = metrics.Accuracy()
135 m = metrics.CategoricalAccuracy()
[all …]
/external/opencensus-java/contrib/grpc_metrics/src/main/java/io/opencensus/contrib/grpc/metrics/
DRpcViewConstants.java17 package io.opencensus.contrib.grpc.metrics;
19 import static io.opencensus.contrib.grpc.metrics.RpcMeasureConstants.GRPC_CLIENT_METHOD;
20 import static io.opencensus.contrib.grpc.metrics.RpcMeasureConstants.GRPC_CLIENT_RECEIVED_BYTES_PER…
21 import static io.opencensus.contrib.grpc.metrics.RpcMeasureConstants.GRPC_CLIENT_RECEIVED_MESSAGES_…
22 import static io.opencensus.contrib.grpc.metrics.RpcMeasureConstants.GRPC_CLIENT_ROUNDTRIP_LATENCY;
23 import static io.opencensus.contrib.grpc.metrics.RpcMeasureConstants.GRPC_CLIENT_SENT_BYTES_PER_RPC;
24 import static io.opencensus.contrib.grpc.metrics.RpcMeasureConstants.GRPC_CLIENT_SENT_MESSAGES_PER_…
25 import static io.opencensus.contrib.grpc.metrics.RpcMeasureConstants.GRPC_CLIENT_SERVER_LATENCY;
26 import static io.opencensus.contrib.grpc.metrics.RpcMeasureConstants.GRPC_CLIENT_STARTED_RPCS;
27 import static io.opencensus.contrib.grpc.metrics.RpcMeasureConstants.GRPC_CLIENT_STATUS;
[all …]
/external/webrtc/webrtc/system_wrappers/include/
Dmetrics.h82 webrtc::metrics::HistogramFactoryGetCounts(name, min, max, bucket_count))
103 webrtc::metrics::HistogramFactoryGetCounts(name, min, max, bucket_count))
118 webrtc::metrics::HistogramFactoryGetEnumeration(name, boundary))
124 webrtc::metrics::HistogramFactoryGetEnumeration(name, boundary))
131 static webrtc::metrics::Histogram* atomic_histogram_pointer = nullptr; \
132 webrtc::metrics::Histogram* histogram_pointer = \
136 webrtc::metrics::Histogram* prev_pointer = \
139 static_cast<webrtc::metrics::Histogram*>(nullptr), \
144 webrtc::metrics::HistogramAdd(histogram_pointer, constant_name, sample); \
152 webrtc::metrics::Histogram* histogram_pointer = factory_get_invocation; \
[all …]
/external/skqp/src/pdf/
DSkPDFFont.cpp103 static bool can_embed(const SkAdvancedTypefaceMetrics& metrics) { in can_embed() argument
104 return !SkToBool(metrics.fFlags & SkAdvancedTypefaceMetrics::kNotEmbeddable_FontFlag); in can_embed()
120 std::unique_ptr<SkAdvancedTypefaceMetrics> metrics = typeface->getAdvancedMetrics(); in GetMetrics() local
121 if (!metrics) { in GetMetrics()
122 metrics = skstd::make_unique<SkAdvancedTypefaceMetrics>(); in GetMetrics()
125 if (0 == metrics->fStemV || 0 == metrics->fCapHeight) { in GetMetrics()
130 if (0 == metrics->fStemV) { in GetMetrics()
140 metrics->fStemV = stemV; in GetMetrics()
142 if (0 == metrics->fCapHeight) { in GetMetrics()
151 metrics->fCapHeight = SkToS16(SkScalarRoundToInt(capHeight / 2)); in GetMetrics()
[all …]
/external/skia/src/pdf/
DSkPDFFont.cpp104 static bool can_embed(const SkAdvancedTypefaceMetrics& metrics) { in can_embed() argument
105 return !SkToBool(metrics.fFlags & SkAdvancedTypefaceMetrics::kNotEmbeddable_FontFlag); in can_embed()
121 std::unique_ptr<SkAdvancedTypefaceMetrics> metrics = typeface->getAdvancedMetrics(); in GetMetrics() local
122 if (!metrics) { in GetMetrics()
123 metrics = skstd::make_unique<SkAdvancedTypefaceMetrics>(); in GetMetrics()
126 if (0 == metrics->fStemV || 0 == metrics->fCapHeight) { in GetMetrics()
131 if (0 == metrics->fStemV) { in GetMetrics()
141 metrics->fStemV = stemV; in GetMetrics()
143 if (0 == metrics->fCapHeight) { in GetMetrics()
152 metrics->fCapHeight = SkToS16(SkScalarRoundToInt(capHeight / 2)); in GetMetrics()
[all …]

12345678910>>...38