Home
last modified time | relevance | path

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

12345

/external/libtextclassifier/annotator/number/
Dnumber_test.cc118 ASSERT_EQ(result[0].classification.size(), 1); in TEST_F()
119 EXPECT_EQ(result[0].classification[0].collection, "number"); in TEST_F()
120 EXPECT_EQ(result[0].classification[0].numeric_value, 12345); in TEST_F()
121 ASSERT_EQ(result[1].classification.size(), 1); in TEST_F()
122 EXPECT_EQ(result[1].classification[0].collection, "number"); in TEST_F()
123 EXPECT_EQ(result[1].classification[0].numeric_value, 9); in TEST_F()
124 ASSERT_EQ(result[2].classification.size(), 1); in TEST_F()
125 EXPECT_EQ(result[2].classification[0].collection, "number"); in TEST_F()
126 EXPECT_EQ(result[2].classification[0].numeric_value, 99); in TEST_F()
127 ASSERT_EQ(result[3].classification.size(), 1); in TEST_F()
[all …]
Dnumber.cc38 ClassificationResult classification{Collections::Number(), 1.0}; in ClassifyText() local
66 ClassificationResult classification{Collections::Number(), in FindAll() local
68 classification.numeric_value = parsed_value; in FindAll()
69 classification.priority_score = options_->priority_score(); in FindAll()
74 annotated_span.classification.push_back(classification); in FindAll()
/external/libcups/filter/
Dcommon.c300 const char *classification; /* CLASSIFICATION environment variable */ in WriteLabelProlog() local
308 if ((classification = getenv("CLASSIFICATION")) == NULL) in WriteLabelProlog()
309 classification = ""; in WriteLabelProlog()
310 if (strcmp(classification, "none") == 0) in WriteLabelProlog()
311 classification = ""; in WriteLabelProlog()
318 if (!classification[0] && (label == NULL || !label[0])) in WriteLabelProlog()
329 if (strcmp(classification, "confidential") == 0) in WriteLabelProlog()
331 else if (strcmp(classification, "classified") == 0) in WriteLabelProlog()
333 else if (strcmp(classification, "secret") == 0) in WriteLabelProlog()
335 else if (strcmp(classification, "topsecret") == 0) in WriteLabelProlog()
[all …]
Dpstops.c3176 const char *classification; /* CLASSIFICATION environment variable */ in write_label_prolog() local
3184 if ((classification = getenv("CLASSIFICATION")) == NULL) in write_label_prolog()
3185 classification = ""; in write_label_prolog()
3186 if (strcmp(classification, "none") == 0) in write_label_prolog()
3187 classification = ""; in write_label_prolog()
3194 if (!classification[0] && (label == NULL || !label[0])) in write_label_prolog()
3205 if (!strcmp(classification, "confidential")) in write_label_prolog()
3207 else if (!strcmp(classification, "classified")) in write_label_prolog()
3209 else if (!strcmp(classification, "secret")) in write_label_prolog()
3211 else if (!strcmp(classification, "topsecret")) in write_label_prolog()
[all …]
/external/tensorflow/tensorflow/contrib/metrics/python/metrics/
Dclassification_test.py23 from tensorflow.contrib.metrics.python.metrics import classification
40 acc = classification.accuracy(pred, labels)
50 acc = classification.accuracy(pred, labels)
60 acc = classification.accuracy(pred, labels)
70 acc = classification.accuracy(pred, labels)
81 classification.accuracy(pred, labels)
87 classification.accuracy(pred, labels)
94 acc = classification.accuracy(pred, labels)
108 acc = classification.accuracy(pred, labels)
125 classification.f1_score(
[all …]
D__init__.py22 from tensorflow.contrib.metrics.python.metrics.classification import *
/external/libtextclassifier/actions/
Dlua-utils.cc73 void PushAnnotation(const ClassificationResult& classification, in PushAnnotation() argument
77 classification.serialized_entity_data.empty()) { in PushAnnotation()
83 classification.serialized_entity_data.data())); in PushAnnotation()
86 classification.datetime_parse_result.time_ms_utc); in PushAnnotation()
89 classification.datetime_parse_result.granularity); in PushAnnotation()
91 env->PushString(classification.collection); in PushAnnotation()
93 lua_pushnumber(env->state(), classification.score); in PushAnnotation()
95 env->PushString(classification.serialized_entity_data); in PushAnnotation()
99 void PushAnnotation(const ClassificationResult& classification, in PushAnnotation() argument
103 PushAnnotation(classification, entity_data_schema, env); in PushAnnotation()
[all …]
Dactions-suggestions_test.cc95 annotation.classification = {ClassificationResult("address", 1.0)}; in TEST_F()
140 annotation.classification = {ClassificationResult("address", 1.0)}; in TEST_F()
165 flight_annotation.classification = {ClassificationResult("flight", 2.5)}; in TEST_F()
168 flight_annotation2.classification = {ClassificationResult("flight", 3.0)}; in TEST_F()
171 email_annotation.classification = {ClassificationResult("email", 2.0)}; in TEST_F()
206 flight_annotation.classification = {ClassificationResult("flight", 2.5)}; in TEST_F()
209 flight_annotation2.classification = {ClassificationResult("flight", 3.0)}; in TEST_F()
212 email_annotation.classification = {ClassificationResult("email", 2.0)}; in TEST_F()
257 flight_annotation.classification = {ClassificationResult("flight", 2.0)}; in TestSuggestActionsFromAnnotations()
260 email_annotation.classification = {ClassificationResult("email", 1.0)}; in TestSuggestActionsFromAnnotations()
[all …]
Dlua-utils.h39 void PushAnnotation(const ClassificationResult& classification,
42 void PushAnnotation(const ClassificationResult& classification,
/external/libtextclassifier/annotator/duration/
Dduration_test.cc118 ClassificationResult classification; in TEST_F() local
121 AnnotationUsecase_ANNOTATION_USECASE_RAW, &classification)); in TEST_F()
123 EXPECT_THAT(classification, in TEST_F()
129 ClassificationResult classification; in TEST_F() local
132 AnnotationUsecase_ANNOTATION_USECASE_RAW, &classification)); in TEST_F()
134 EXPECT_THAT(classification, in TEST_F()
150 Field(&AnnotatedSpan::classification, in TEST_F()
169 Field(&AnnotatedSpan::classification, in TEST_F()
188 Field(&AnnotatedSpan::classification, in TEST_F()
206 Field(&AnnotatedSpan::classification, in TEST_F()
[all …]
Dduration.cc101 TC3_CHECK(!annotated_span.classification.empty()); in ClassifyText()
103 *classification_result = annotated_span.classification[0]; in ClassifyText()
176 ClassificationResult classification{Collections::Duration(), in FindDurationStartingAt() local
178 classification.priority_score = options_->priority_score(); in FindDurationStartingAt()
179 classification.duration_ms = in FindDurationStartingAt()
188 classification.duration_ms += ParsedDurationAtomsToMillis({atom}); in FindDurationStartingAt()
193 result->classification.push_back(classification); in FindDurationStartingAt()
/external/libtextclassifier/annotator/
Dannotator.cc594 return !span.classification.empty() && in FilteredForAnnotation()
596 span.classification[0].collection) != in FilteredForAnnotation()
601 const ClassificationResult& classification) const { in FilteredForClassification()
602 return filtered_collections_classification_.find(classification.collection) != in FilteredForClassification()
607 return !span.classification.empty() && in FilteredForSelection()
609 span.classification[0].collection) != in FilteredForSelection()
615 const std::vector<ClassificationResult>& classification) { in ClassifiedAsOther() argument
616 return !classification.empty() && in ClassifiedAsOther()
617 classification[0].collection == Collections::Other(); in ClassifiedAsOther()
621 const std::vector<ClassificationResult>& classification) { in GetPriorityScore() argument
[all …]
Dtypes.cc76 if (!span.classification.empty()) { in operator <<()
77 best_class = span.classification[0].collection; in operator <<()
78 best_score = span.classification[0].score; in operator <<()
/external/tensorflow/tensorflow/lite/g3doc/models/image_classification/
Doverview.md1 # Image classification
10 If you are unfamiliar with the concept of image classification, you should start
12 classification?</a>
14 If you understand image classification, you’re new to TensorFlow Lite, and
26 download our starter image classification model and the accompanying labels.
38 download our starter image classification model and the accompanying labels.
45 We have example applications for image classification for both Android and iOS.
52 The following screenshot shows the Android image classification example:
56 ## What is image classification?
65 classification_. An image classification model is trained to recognize various
[all …]
/external/clang/lib/Analysis/
DUninitializedValues.cpp495 const ClassifyRefs &classification; member in __anon3e74e5010511::TransferFunctions
502 const ClassifyRefs &classification, in TransferFunctions() argument
505 classification(classification), objCNoRet(ac.getASTContext()), in TransferFunctions()
730 switch (classification.get(dr)) { in VisitDeclRefExpr()
803 const ClassifyRefs &classification, in runOnBlock() argument
821 TransferFunctions tf(vals, cfg, block, ac, classification, handler); in runOnBlock()
881 ClassifyRefs classification(ac); in runUninitializedVariablesAnalysis() local
882 cfg.VisitBlockStmts(classification); in runUninitializedVariablesAnalysis()
905 classification, wasAnalyzed, PBH); in runUninitializedVariablesAnalysis()
919 runOnBlock(block, cfg, ac, vals, classification, wasAnalyzed, handler); in runUninitializedVariablesAnalysis()
/external/libtextclassifier/java/com/google/android/textclassifier/
DAnnotatorModel.java367 private final ClassificationResult[] classification; field in AnnotatorModel.AnnotatedSpan
369 AnnotatedSpan(int startIndex, int endIndex, ClassificationResult[] classification) { in AnnotatedSpan() argument
372 this.classification = classification; in AnnotatedSpan()
384 return classification; in getClassification()
/external/tensorflow/tensorflow/contrib/tensor_forest/
DREADME.md7 classification (binary and multiclass) and regression (scalar and vector).
41 turned into predictions. For classification problems, the statistics are
50 the quality of the split. For classification problems, that's usually
78 * `num_classes`. The number of classes in a classification problem, or
85 * `regression`. True for regression problems, False for classification tasks.
86 Defaults to False (classification).
88 values. For classification, the outputs are the per-class probabilities.
/external/tensorflow/tensorflow/contrib/tensor_forest/kernels/v4/
Dleaf_model_operators.cc75 *leaf->mutable_vector() = stat.classification().dense_counts(); in ExportModel()
109 *leaf->mutable_sparse_vector() = stat.classification().sparse_counts(); in ExportModel()
133 if (stat.classification().has_dense_counts()) { in ExportModel()
Dstat_utils.cc35 return 1.0 - ((stats.classification().gini().square() + in GiniImpurity()
49 stats->classification().gini().square() + weight * weight + in UpdateGini()
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_LRN.pbtxt44 For details, see [Krizhevsky et al., ImageNet classification with deep
45 convolutional neural networks (NIPS 2012)](http://papers.nips.cc/paper/4824-imagenet-classification
/external/tensorflow/tensorflow/lite/tools/accuracy/
DREADME.md35 ### ILSVRC (Imagenet Large Scale Visual Recognition Contest) classification task
36 For measuring accuracy for [ILSVRC 2012 image classification task](http://www.image-net.org/challen…
/external/autotest/server/cros/
Dautoupdater.py107 for err_pattern, classification in self._CLASSIFIERS:
109 return classification
115 classification = self._classify()
116 if classification:
117 return '%s: %s' % (self._SUMMARY, classification)
/external/tensorflow/tensorflow/contrib/kernel_methods/g3doc/
Dtutorial.md20 * Load and prepare MNIST data for classification.
25 ## Load and prepare MNIST data for classification
136 to reduce the classification error.
226 similarity measure used in classification. This parameter is typically
235 **On the role of stddev:** The classification quality is very sensitive to the
241 of the classification.
254 approximates the kernel which typically translates to better classification
/external/iproute2/doc/actions/
Dgact-usage13 - continue allows to restart classification lookup
15 - reclassify implies continue classification where we left off
/external/libtextclassifier/utils/intents/
Dintent-generator.cc708 const ClassificationResult& classification, in AnnotatorJniEnvironment() argument
713 classification_(classification), in AnnotatorJniEnvironment()
836 const jstring device_locales, const ClassificationResult& classification, in GenerateIntents() argument
846 auto it = generators_.find(classification.collection); in GenerateIntents()
858 ParseDeviceLocales(device_locales), entity_text, classification, in GenerateIntents()

12345