Home
last modified time | relevance | path

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

/external/libtextclassifier/common/
Dsoftmax.cc27 float ComputeSoftmaxProbability(const std::vector<float> &scores, int label) { in ComputeSoftmaxProbability() argument
28 if ((label < 0) || (label >= scores.size())) { in ComputeSoftmaxProbability()
30 << "[0, " << scores.size() << ")"; in ComputeSoftmaxProbability()
43 const float label_score = scores[label]; in ComputeSoftmaxProbability()
45 for (int i = 0; i < scores.size(); ++i) { in ComputeSoftmaxProbability()
47 const float delta_score = scores[i] - label_score; in ComputeSoftmaxProbability()
73 std::vector<float> ComputeSoftmax(const std::vector<float> &scores) { in ComputeSoftmax() argument
76 exp_scores.reserve(scores.size()); in ComputeSoftmax()
77 softmax.reserve(scores.size()); in ComputeSoftmax()
81 for (const auto &score : scores) { in ComputeSoftmax()
[all …]
Dembedding-network.cc235 Vector *scores) const { in ComputeLogits()
236 return EmbeddingNetwork::ComputeLogitsInternal(input, scores); in ComputeLogits()
240 Vector *scores) const { in ComputeLogits()
241 return EmbeddingNetwork::ComputeLogitsInternal(input, scores); in ComputeLogits()
245 Vector *scores) const { in ComputeLogitsInternal()
246 return FinishComputeFinalScoresInternal<SimpleAdder>(input, scores); in ComputeLogitsInternal()
251 const VectorSpan<float> &input, Vector *scores) const { in FinishComputeFinalScoresInternal()
274 true, softmax_weights_, softmax_bias_, h_in, scores)) { in FinishComputeFinalScoresInternal()
282 const std::vector<FeatureVector> &features, Vector *scores) const { in ComputeFinalScores()
283 return ComputeFinalScores(features, {}, scores); in ComputeFinalScores()
[all …]
Dembedding-network.h170 Vector *scores) const;
176 Vector *scores) const;
193 bool ComputeLogits(const Vector &input, Vector *scores) const;
196 bool ComputeLogits(const VectorSpan<float> &input, Vector *scores) const;
212 Vector *scores) const;
218 Vector *scores) const;
Dsoftmax.h28 float ComputeSoftmaxProbability(const std::vector<float> &scores, int label);
32 std::vector<float> ComputeSoftmax(const std::vector<float> &scores);
/external/mesa3d/src/gallium/state_trackers/wgl/
Dstw_ext_pixelformat.c339 struct stw_pixelformat_score *scores, in score_pixelformats() argument
374 scores[index].points = 0; in score_pixelformats()
383 scores[index].points = 0; in score_pixelformats()
385 scores[index].points -= (actual_value - expected_value) * ami->weight; in score_pixelformats()
402 struct stw_pixelformat_score *scores; in wglChoosePixelFormatARB() local
413scores = (struct stw_pixelformat_score *) MALLOC( count * sizeof( struct stw_pixelformat_score ) ); in wglChoosePixelFormatARB()
414 if (scores == NULL) in wglChoosePixelFormatARB()
417 scores[i].points = 0x7fffffff; in wglChoosePixelFormatARB()
418 scores[i].index = i; in wglChoosePixelFormatARB()
425 if (!score_pixelformats( scores, count, piAttribIList[0], piAttribIList[1] )) { in wglChoosePixelFormatARB()
[all …]
/external/libtextclassifier/smartselect/
Dtext-classification-model.cc267 std::vector<float> scores; in InferInternal() local
268 network.ComputeLogits(features, &scores); in InferInternal()
269 return scores; in InferInternal()
313 CodepointSpan original_click_indices, const std::vector<float>& scores, in BestSelectionSpan() argument
315 if (!scores.empty()) { in BestSelectionSpan()
317 std::max_element(scores.begin(), scores.end()) - scores.begin(); in BestSelectionSpan()
328 return {{selection.first, selection.second}, scores[prediction]}; in BestSelectionSpan()
331 << scores.size(); in BestSelectionSpan()
347 EmbeddingNetwork::Vector scores = InferInternal( in SuggestSelectionInternal() local
350 scores = nlp_core::ComputeSoftmax(scores); in SuggestSelectionInternal()
[all …]
/external/libtextclassifier/lang_id/
Dlang-id.cc163 std::vector<float> scores = ScoreLanguages(text); in FindLanguage() local
164 if (scores.empty()) { in FindLanguage()
169 int label = GetArgMax(scores); in FindLanguage()
170 float probability = scores[label]; in FindLanguage()
179 std::vector<float> scores = ScoreLanguages(text); in FindLanguages() local
182 for (int i = 0; i < scores.size(); i++) { in FindLanguages()
183 result.push_back({GetLanguageForSoftmaxLabel(i), scores[i]}); in FindLanguages()
217 EmbeddingNetwork::Vector scores; in ScoreLanguages() local
218 network_->ComputeFinalScores(features, &scores); in ScoreLanguages()
220 return ComputeSoftmax(scores); in ScoreLanguages()
/external/autotest/client/site_tests/firmware_TouchMTB/
Dfirmware_log.py463 def __init__(self, scores): argument
465 if scores:
466 self.average = np.average(np.array(scores))
467 self.ssd = _calc_sample_standard_deviation(scores)
468 self.count = len(scores)
509 def __init__(self, scores, metrics): argument
510 self.stat_scores = StatisticsScores(scores)
714 scores = [vlog.score for _key, vlogs in rows for vlog in vlogs]
718 return TestResult(scores, metrics)
725 scores = [self.get_result(fw=fw, validators=val).stat_scores.average
[all …]
Dtest_flow.py54 self.scores = []
361 self.scores += new_scores
363 def _final_scores(self, scores): argument
366 final_score = eval(conf.score_aggregator)(scores)
402 self._final_scores(self.scores)
/external/autotest/tko/
Dnightly.py161 scores = {} # kernel --> (platform --> list of perf scores)
164 scores[k] = collect_raw_scores(test_runs[k], metric)
166 for platform in scores[ref]:
167 if latest in scores and platform in scores[latest]:
169 elif prev in scores and platform in scores[prev]:
173 ref_avg, ref_std = plotgraph.avg_dev(scores[ref][platform])
174 avg, std = plotgraph.avg_dev(scores[ k ][platform])
261 scores = {}
267 scores[kernel] = d
285 if kernel in scores and attr in scores[kernel]:
[all …]
/external/v8/benchmarks/
Dbase.js109 BenchmarkSuite.scores = [];
126 var score = BenchmarkSuite.GeometricMean(BenchmarkSuite.scores);
180 BenchmarkSuite.scores.push(score);
DREADME.txt28 obtaining scores that are the result of an incorrect JavaScript engine
/external/freetype/src/autofit/
Dafwarp.c83 AF_WarpScore scores[65]; in af_warper_compute_line_best() local
87 scores[nn] = 0; in af_warper_compute_line_best()
130 scores[idx] += af_warper_weights[y & 63] * len; in af_warper_compute_line_best()
140 AF_WarpScore score = scores[idx]; in af_warper_compute_line_best()
Daflatin2.c2055 FT_Pos displacements[6], scores[6], org, fit, delta; in af_latin2_hint_edges() local
2090 scores[count++] = delta; in af_latin2_hint_edges()
2097 scores[count++] = delta; in af_latin2_hint_edges()
2107 scores[count++] = delta; in af_latin2_hint_edges()
2115 scores[count++] = delta; in af_latin2_hint_edges()
2120 FT_Pos best_score = scores[0]; in af_latin2_hint_edges()
2126 if ( scores[nn] < best_score ) in af_latin2_hint_edges()
2128 best_score = scores[nn]; in af_latin2_hint_edges()
/external/icu/android_icu4j/src/main/java/android/icu/util/
DLocaleMatcher.java500 …LinkedHashSet<Row.R3<LocalePatternMatcher,LocalePatternMatcher,Double>> scores = new LinkedHashSet… field in LocaleMatcher.ScoreData
517 boolean added = scores.add(data); in addDataToScores()
538 for (R3<LocalePatternMatcher,LocalePatternMatcher,Double> datum : scores) { // : result in getRawScore()
555 for (R3<LocalePatternMatcher, LocalePatternMatcher, Double> score : scores) { in toString()
566 …result.scores = (LinkedHashSet<R3<LocalePatternMatcher, LocalePatternMatcher, Double>>) result.sco… in cloneAsThawed()
587 for (R3<LocalePatternMatcher, LocalePatternMatcher, Double> item : scores) { in getMatchingLanguages()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DLocaleMatcher.java507 …LinkedHashSet<Row.R3<LocalePatternMatcher,LocalePatternMatcher,Double>> scores = new LinkedHashSet… field in LocaleMatcher.ScoreData
524 boolean added = scores.add(data); in addDataToScores()
545 for (R3<LocalePatternMatcher,LocalePatternMatcher,Double> datum : scores) { // : result in getRawScore()
562 for (R3<LocalePatternMatcher, LocalePatternMatcher, Double> score : scores) { in toString()
573 …result.scores = (LinkedHashSet<R3<LocalePatternMatcher, LocalePatternMatcher, Double>>) result.sco… in cloneAsThawed()
594 for (R3<LocalePatternMatcher, LocalePatternMatcher, Double> item : scores) { in getMatchingLanguages()
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/charsetdet/sbcs/
DStatisticsTool.java409 int[] scores = new int[file_count]; in main() local
413 scores[c] = checkers[c].checkBuffer(buffer, charCount); in main()
417 int score = scores[c]; in main()
/external/toolchain-utils/cros_utils/
Dstats.py365 scores = pstat.unique(inlist)
366 scores.sort()
368 for item in scores:
376 mode.append(scores[indx])
378 del scores[indx]
465 scores = pstat.unique(inlist)
466 scores.sort()
468 for item in scores:
470 return pstat.abut(scores, freq)
2228 scores = pstat.aunique(N.ravel(a)) # get ALL unique values
[all …]
/external/lisa/ipynb/examples/android/benchmarks/
DAndroid_PCMark.ipynb340 " # Get scores from logcat\n",
371 " scores = dict()\n",
376 " scores.update({info[0] : float(info[1])})\n",
381 " 'scores' : scores,\n",
389 "## Run PCMark and collect scores"
425 "After running the benchmark for the specified governors we can show and plot the scores:"
502 " for score_name, score in results[governor]['scores'].iteritems():\n",
529 " title='PCMark scores vs SchedFreq governors');"
DAndroid_Geekbench.ipynb328 … of 4000, which is the benchmark score of an Intel Core i7-6600U. Higher scores are better, with d…
379 " \"\"\"Get the overall scores of each benchmark\n",
387 " \"\"\"Get the detailed workload scores of each benchmark\n",
418 " scores = geekbench.global_scores()\n",
422 " for bench_type, score in scores.iteritems():\n",
425 " df = pd.DataFrame(data=row, index=scores.keys(), columns=[\"Global score\"])\n",
433 " scores = geekbench.detailed_scores()\n",
/external/python/cpython2/Doc/tutorial/
Dstdlib2.rst332 >>> scores = [(100, 'perl'), (200, 'tcl'), (400, 'lua'), (500, 'python')]
333 >>> bisect.insort(scores, (300, 'ruby'))
334 >>> scores
/external/eigen/doc/
DCustomizingEigen_CustomScalar.dox62 …representation (this is an example, not a recommendation). Note that the scores should always be n…
/external/brotli/tests/testdata/
Dlcet10.txt4211 received good scores in reasonable time, hardly ever had to give up, and
4217 through it and to find topics mentioned in the issue. The average scores
/external/selinux/python/sepolgen/tests/test_data/
Dhttpd.log4156 …680): avc: denied { read } for pid=8303 comm="yum" name="glines.Large.scores" dev=dm-0 ino=1443…
6828 …: avc: denied { add_name } for pid=8303 comm="yum" name="glines.Large.scores;455dcb57" scontext…
6829 …4): avc: denied { create } for pid=8303 comm="yum" name="glines.Large.scores;455dcb57" scontext…
6831 …vc: denied { remove_name } for pid=8303 comm="yum" name="glines.Large.scores;455dcb57" dev=dm-0…
6832 …5): avc: denied { rename } for pid=8303 comm="yum" name="glines.Large.scores;455dcb57" dev=dm-0…
6833 …5): avc: denied { unlink } for pid=8303 comm="yum" name="glines.Large.scores" dev=dm-0 ino=1443…
6835 …vc: denied { relabelfrom } for pid=8303 comm="yum" name="glines.Large.scores" dev=dm-0 ino=1443…
6836 … avc: denied { relabelto } for pid=8303 comm="yum" name="glines.Large.scores" dev=dm-0 ino=1443…
6838 …): avc: denied { setattr } for pid=8303 comm="yum" name="glines.Large.scores" dev=dm-0 ino=1443…
6840 …): avc: denied { unlink } for pid=8303 comm="yum" name="glines.Medium.scores" dev=dm-0 ino=1443…
/external/jline/src/src/test/resources/jline/example/
Denglish.gz