Home
last modified time | relevance | path

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

123456789

/external/opencv3/samples/python2/
Dletter_recog.py33 samples, responses = a[:,1:], a[:,0]
34 return samples, responses
52 def unroll_responses(self, responses): argument
53 sample_n = len(responses)
55 resp_idx = np.int32( responses + np.arange(sample_n)*self.class_n )
63 def train(self, samples, responses): argument
68 … self.model.train(samples, cv2.CV_ROW_SAMPLE, responses, varType = var_types, params = params)
78 def train(self, samples, responses): argument
79 self.model.train(samples, responses)
90 def train(self, samples, responses): argument
[all …]
/external/opencv3/samples/cpp/
Dletter_recog.cpp47 vector<int> responses; in read_num_class_data() local
64 responses.push_back((int)buf[0]); in read_num_class_data()
77 Mat(responses).copyTo(*_responses); in read_num_class_data()
98 prepare_train_data(const Mat& data, const Mat& responses, int ntrain_samples) in prepare_train_data() argument
109 return TrainData::create(data, ROW_SAMPLE, responses, in prepare_train_data()
119 const Mat& data, const Mat& responses, in test_and_save_classifier() argument
132 r = std::abs(r + rdelta - responses.at<int>(i)) <= FLT_EPSILON ? 1.f : 0.f; in test_and_save_classifier()
159 Mat responses; in build_rtrees_classifier() local
160 bool ok = read_num_class_data( data_filename, 16, &data, &responses ); in build_rtrees_classifier()
186 Ptr<TrainData> tdata = prepare_train_data(data, responses, ntrain_samples); in build_rtrees_classifier()
[all …]
Dlogistic_regression.cpp149 Mat responses; in main() local
150 lr1->predict(data_test, responses); in main()
157 cout << responses.t() << endl; in main()
158 cout << "accuracy: " << calculateAccuracyPercent(labels_test, responses) << "%" << endl; in main()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/ocsp/
DResponseData.java25 private ASN1Sequence responses; field in ResponseData
32 ASN1Sequence responses, in ResponseData() argument
38 this.responses = responses; in ResponseData()
52 ASN1Sequence responses, in ResponseData() argument
55 …this(V1, responderID, ASN1GeneralizedTime.getInstance(producedAt), responses, Extensions.getInstan… in ResponseData()
61 ASN1Sequence responses, in ResponseData() argument
64 this(V1, responderID, producedAt, responses, responseExtensions); in ResponseData()
95 this.responses = (ASN1Sequence)seq.getObjectAt(index++); in ResponseData()
143 return responses; in getResponses()
173 v.add(responses); in toASN1Primitive()
/external/opencv/ml/src/
Dmltestset.cpp62 CvMat** responses, in cvCreateTestSet() argument
75 if( responses ) in cvCreateTestSet()
76 *responses = NULL; in cvCreateTestSet()
84 if( !responses ) in cvCreateTestSet()
106 CV_CALL( *responses = cvCreateMat( 1, num_samples, CV_32SC1 ) ); in cvCreateTestSet()
147 CV_MAT_ELEM( **responses, int, 0, elem.i ) = cur_class; in cvCreateTestSet()
162 if( responses ) in cvCreateTestSet()
163 cvReleaseMat( responses ); in cvCreateTestSet()
Dml_inner_functions.cpp630 cvPreprocessOrderedResponses( const CvMat* responses, const CvMat* sample_idx, int sample_all ) in cvPreprocessOrderedResponses() argument
643 if( !CV_IS_MAT(responses) ) in cvPreprocessOrderedResponses()
646 if( responses->rows != 1 && responses->cols != 1 ) in cvPreprocessOrderedResponses()
649 if( responses->rows + responses->cols - 1 != sample_count ) in cvPreprocessOrderedResponses()
653 r_type = CV_MAT_TYPE(responses->type); in cvPreprocessOrderedResponses()
657 r_step = responses->step ? responses->step / CV_ELEM_SIZE(responses->type) : 1; in cvPreprocessOrderedResponses()
659 if( r_type == CV_32FC1 && CV_IS_MAT_CONT(responses->type) && !sample_idx ) in cvPreprocessOrderedResponses()
661 out_responses = (CvMat*)responses; in cvPreprocessOrderedResponses()
681 const float* src = responses->data.fl; in cvPreprocessOrderedResponses()
691 const int* src = responses->data.i; in cvPreprocessOrderedResponses()
[all …]
Dmlboost.cpp248 const int* responses = data->get_class_labels(node); in find_split_ord_class() local
264 rcw[responses[idx]] -= w; in find_split_ord_class()
280 idx = responses[idx]; in find_split_ord_class()
304 idx = responses[idx]; in find_split_ord_class()
335 const int* responses = data->get_class_labels(node); in CV_IMPLEMENT_QSORT_EX() local
359 k = responses[i]; in CV_IMPLEMENT_QSORT_EX()
444 const float* responses = data->get_ord_responses(node); in find_split_ord_reg() local
457 rsum -= responses[idx]*w; in find_split_ord_reg()
466 double t = responses[idx]*w; in find_split_ord_reg()
492 const float* responses = data->get_ord_responses(node); in find_split_cat_reg() local
[all …]
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/
DRecordingOkAuthenticator.java26 public final List<Response> responses = new ArrayList<>(); field in RecordingOkAuthenticator
35 if (responses.size() != 1) throw new IllegalStateException(); in onlyResponse()
36 return responses.get(0); in onlyResponse()
45 responses.add(response); in authenticate()
53 responses.add(response); in authenticateProxy()
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/unit/cloudfront/
Dtest_invalidation_list.py54 responses = []
71 responses.append(mock_response)
72 return responses
79 responses = self._get_mock_responses(num=num_invals,
81 self.cf.make_request = mock.Mock(side_effect=responses)
104 responses = self._get_mock_responses(num=num_invals,
106 self.cf.make_request = mock.Mock(side_effect=responses)
/external/chromium-trace/catapult/third_party/typ/typ/
Dpool.py64 self.responses = multiprocessing.Queue()
71 args=(self.requests, self.responses,
82 msg_type, resp = self.responses.get()
121 msg_type, resp = self.responses.get()
155 def _loop(requests, responses, host, worker_num, argument
164 responses.put((_MessageType.Done,
169 responses.put((_MessageType.Response, resp))
172 responses.put((_MessageType.Interrupt, (worker_num, str(e))))
174 responses.put((_MessageType.Error,
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DRecordingCallback.java31 private final List<RecordedResponse> responses = new ArrayList<>(); field in RecordingCallback
34 responses.add(new RecordedResponse(request, null, null, null, e)); in onFailure()
43responses.add(new RecordedResponse(response.request(), response, null, buffer.readUtf8(), null)); in onResponse()
54 for (Iterator<RecordedResponse> i = responses.iterator(); i.hasNext(); ) { in await()
71 for (RecordedResponse recordedResponse : responses) { in assertNoResponse()
/external/opencv3/apps/traincascade/
Dold_ml.hpp197 CvNormalBayesClassifier( const CvMat* trainData, const CvMat* responses,
200 virtual bool train( const CvMat* trainData, const CvMat* responses,
206 CV_WRAP CvNormalBayesClassifier( const cv::Mat& trainData, const cv::Mat& responses,
208 CV_WRAP virtual bool train( const cv::Mat& trainData, const cv::Mat& responses,
242 CvKNearest( const CvMat* trainData, const CvMat* responses,
245 virtual bool train( const CvMat* trainData, const CvMat* responses,
252 CV_WRAP CvKNearest( const cv::Mat& trainData, const cv::Mat& responses,
255 CV_WRAP virtual bool train( const cv::Mat& trainData, const cv::Mat& responses,
472 CvSVM( const CvMat* trainData, const CvMat* responses,
476 virtual bool train( const CvMat* trainData, const CvMat* responses,
[all …]
Dold_ml_inner_functions.cpp560 cvPreprocessOrderedResponses( const CvMat* responses, const CvMat* sample_idx, int sample_all ) in cvPreprocessOrderedResponses() argument
573 if( !CV_IS_MAT(responses) ) in cvPreprocessOrderedResponses()
576 if( responses->rows != 1 && responses->cols != 1 ) in cvPreprocessOrderedResponses()
579 if( responses->rows + responses->cols - 1 != sample_count ) in cvPreprocessOrderedResponses()
583 r_type = CV_MAT_TYPE(responses->type); in cvPreprocessOrderedResponses()
587 r_step = responses->step ? responses->step / CV_ELEM_SIZE(responses->type) : 1; in cvPreprocessOrderedResponses()
589 if( r_type == CV_32FC1 && CV_IS_MAT_CONT(responses->type) && !sample_idx ) in cvPreprocessOrderedResponses()
591 out_responses = cvCloneMat( responses ); in cvPreprocessOrderedResponses()
611 const float* src = responses->data.fl; in cvPreprocessOrderedResponses()
621 const int* src = responses->data.i; in cvPreprocessOrderedResponses()
[all …]
/external/jetty/src/resources/org/eclipse/jetty/server/handler/jmx/
DStatisticsHandler-mbean.properties23 responses1xx: Number of responses with a 1xx status since statsReset() called.
24 responses2xx: Number of responses with a 2xx status since statsReset() called.
25 responses3xx: Number of responses with a 3xx status since statsReset() called.
26 responses4xx: Number of responses with a 4xx status since statsReset() called.
27 responses5xx: Number of responses with a 5xx status since statsReset() called.
28 responsesBytesTotal: Total number of bytes of all responses since statsReset() called.
/external/opencv3/modules/ml/src/
Ddata.cpp152 Mat getResponses() const { return responses; } in getResponses()
177 return getSubVector(responses, getTrainSampleIdx()); in getTrainResponses()
186 return idx.empty() ? Mat() : getSubVector(responses, idx); in getTestResponses()
216 responses.release(); in clear()
240 responses = _responses.getMat(); in setData()
282 if( !responses.empty() ) in setData()
284 CV_Assert( responses.type() == CV_32F || responses.type() == CV_32S ); in setData()
285 if( (responses.cols == 1 || responses.rows == 1) && (int)responses.total() == nsamples ) in setData()
289 CV_Assert( (layout == ROW_SAMPLE && responses.rows == nsamples) || in setData()
290 (layout == COL_SAMPLE && responses.cols == nsamples) ); in setData()
[all …]
Dinner_functions.cpp63 bool StatModel::train( InputArray samples, int layout, InputArray responses ) in train() argument
65 return train(TrainData::create(samples, layout, responses)); in train()
76 Mat responses = data->getResponses(); in calcError() local
94 float val0 = responses.at<float>(si); in calcError()
Dknearest.cpp90 new_responses.cols == responses.cols ); in train()
94 responses.push_back(new_responses); in train()
106 responses.release(); in clear()
116 fn["responses"] >> responses; in read()
125 fs << "responses" << responses; in write()
134 Mat responses; member in cv::ml::Impl
155 const float* rptr = responses.ptr<float>(); in findNearestCore()
/external/chromium-trace/catapult/third_party/gsutil/third_party/protorpc/protorpc/wsgi/
Dutil_test.py207 self.assertEquals(six.moves.http_client.responses[six.moves.http_client.NOT_FOUND], status_text)
208 …self.assertEquals(util.pad_string(six.moves.http_client.responses[six.moves.http_client.NOT_FOUND]…
220 self.assertEquals(six.moves.http_client.responses[six.moves.http_client.OK], status_text)
232 self.assertEquals(six.moves.http_client.responses[six.moves.http_client.OK], status_text)
242 self.assertEquals(six.moves.http_client.responses[six.moves.http_client.OK], status_text)
254 self.assertEquals(six.moves.http_client.responses[six.moves.http_client.OK], status_text)
266 self.assertEquals(six.moves.http_client.responses[six.moves.http_client.OK], status_text)
283 statuses_to_check = sorted(httplib.responses.keys())
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/tester/org/apache/http/
DFakeHttpLayer.java76 …c void addHttpResponseRule(RequestMatcher requestMatcher, List<? extends HttpResponse> responses) { in addHttpResponseRule() argument
77 addHttpResponseRule(new RequestMatcherResponseRule(requestMatcher, responses)); in addHttpResponseRule()
191 private List<? extends HttpResponse> responses; field in FakeHttpLayer.RequestMatcherResponseRule
208 …RequestMatcherResponseRule(RequestMatcher requestMatcher, List<? extends HttpResponse> responses) { in RequestMatcherResponseRule() argument
210 this.responses = responses; in RequestMatcherResponseRule()
225 if (responses.isEmpty()) { in getResponse()
228 return responses.remove(0); in getResponse()
/external/opencv3/modules/ml/test/
Dtest_svmtrainauto.cpp61 cv::Mat responses = cv::Mat::zeros( datasize, 1, CV_32S ); in run() local
69 responses.at<int>( i, 0 ) = response; in run()
72 cv::Ptr<TrainData> data = TrainData::create( samples, cv::ml::ROW_SAMPLE, responses ); in run()
Dtest_lr.cpp108 Mat responses; in run() local
109 p->predict(tdata->getSamples(), responses); in run()
114 if(!calculateError(responses, tdata->getResponses(), error)) in run()
128 s << "predicted1" << responses; in run()
Dtest_mltests2.cpp104 Mat responses = _data->getResponses(); in ann_get_new_responses() local
108 int nresponses = (int)responses.total(); in ann_get_new_responses()
114 int r = cvRound(responses.at<float>(sidx)); in ann_get_new_responses()
115 CV_DbgAssert( fabs(responses.at<float>(sidx) - r) < FLT_EPSILON ); in ann_get_new_responses()
124 int r = cvRound(responses.at<float>(sidx)); in ann_get_new_responses()
135 Mat responses = _data->getResponses(); in ann_calc_error() local
166 int r = cvRound(responses.at<float>(si)); in ann_calc_error()
167 CV_DbgAssert( fabs(responses.at<float>(si) - r) < FLT_EPSILON ); in ann_calc_error()
/external/autotest/client/cros/cellular/mbim_compliance/
Dmbim_channel_unittest.py289 def _queue_responses(self, responses): argument
291 for response in responses:
295 def _expect_transaction(self, requests, responses=None): argument
309 if responses:
311 lambda _: self._queue_responses(responses))
316 def _verify_transaction_successful(self, requests, responses): argument
324 self.assertEqual(responses,
/external/chromium-trace/catapult/third_party/WebOb/
DREADME.rst15 WebOb provides objects for HTTP requests and responses. Specifically
20 HTTP request and forming HTTP responses. Both objects are read/write:
22 parse HTTP responses.
/external/okhttp/mockwebserver/
DREADME.md10 makes HTTP and HTTPS calls. It lets you specify which responses to return and
14 testing everything. You can even copy & paste HTTP responses from your real web
16 awkward-to-reproduce situations like 500 errors or slow-loading responses.
36 // Schedule some responses.
84 Mock responses default to an empty response body and a `200` status code.
116 By default MockWebServer uses a queue to specify a series of responses. Use a

123456789