/third_party/boost/libs/accumulators/test/ |
D | p_square_quantile_extended.cpp | 39 std::vector<double> probs; in test_stat() local 41 probs.push_back(0.001); in test_stat() 42 probs.push_back(0.01 ); in test_stat() 43 probs.push_back(0.1 ); in test_stat() 44 probs.push_back(0.25 ); in test_stat() 45 probs.push_back(0.5 ); in test_stat() 46 probs.push_back(0.75 ); in test_stat() 47 probs.push_back(0.9 ); in test_stat() 48 probs.push_back(0.99 ); in test_stat() 49 probs.push_back(0.999); in test_stat() [all …]
|
D | extended_p_square_quantile.cpp | 42 std::vector<double> probs; in test_stat() local 44 probs.push_back(0.990); in test_stat() 45 probs.push_back(0.991); in test_stat() 46 probs.push_back(0.992); in test_stat() 47 probs.push_back(0.993); in test_stat() 48 probs.push_back(0.994); in test_stat() 49 probs.push_back(0.995); in test_stat() 50 probs.push_back(0.996); in test_stat() 51 probs.push_back(0.997); in test_stat() 52 probs.push_back(0.998); in test_stat() [all …]
|
D | extended_p_square.cpp | 40 std::vector<double> probs; in test_stat() local 42 probs.push_back(0.001); in test_stat() 43 probs.push_back(0.01 ); in test_stat() 44 probs.push_back(0.1 ); in test_stat() 45 probs.push_back(0.25 ); in test_stat() 46 probs.push_back(0.5 ); in test_stat() 47 probs.push_back(0.75 ); in test_stat() 48 probs.push_back(0.9 ); in test_stat() 49 probs.push_back(0.99 ); in test_stat() 50 probs.push_back(0.999); in test_stat() [all …]
|
/third_party/mindspore/mindspore/nn/probability/distribution/ |
D | categorical.py | 111 probs=None, argument 116 param['param_dict'] = {'probs': probs} 121 self._probs = self._add_parameter(probs, 'probs') 122 if self.probs is not None: 123 check_rank(self.probs) 124 check_prob(self.probs) 125 check_sum_equal_one(probs) 129 if self.probs.shape[:-1] == (): 167 def probs(self): member in Categorical 176 s = 'probs = {}'.format(self.probs) [all …]
|
D | geometric.py | 131 probs=None, argument 139 param['param_dict'] = {'probs': probs} 144 self._probs = self._add_parameter(probs, 'probs') 146 check_prob(self.probs) 172 s = 'probs = {}'.format(self.probs) 176 def probs(self): member in Geometric 189 probs1 = self.probs
|
D | bernoulli.py | 124 probs=None, argument 132 param['param_dict'] = {'probs': probs} 138 self._probs = self._add_parameter(probs, 'probs') 140 check_prob(self.probs) 158 s = 'probs = {}'.format(self.probs) 164 def probs(self): member in Bernoulli 178 probs1 = self.probs
|
/third_party/mindspore/tests/st/probability/distribution/ |
D | test_categorical_gpu.py | 29 probs = np.random.dirichlet(np.ones(shape[3]), size=1) 33 probs = np.vstack(((np.random.dirichlet(np.ones(shape[3]), size=1)), probs)) 34 probs = np.array([probs, probs]) 35 probs = np.array([probs, probs]) 36 return probs 40 def __init__(self, probs, seed=10, dtype=ms.int32, name='Categorical'): argument 42 self.b = msd.Categorical(probs, seed, dtype, name) 44 def construct(self, value, probs=None): argument 45 out1 = self.b.prob(value, probs) 46 out2 = self.b.log_prob(value, probs) [all …]
|
/third_party/gstreamer/gstplugins_bad/gst-libs/gst/codecparsers/ |
D | vp8utils.c | 442 gst_vp8_token_update_probs_init (GstVp8TokenProbs * probs) in gst_vp8_token_update_probs_init() argument 444 memcpy (probs->prob, vp8_token_update_probs, sizeof (vp8_token_update_probs)); in gst_vp8_token_update_probs_init() 448 gst_vp8_token_probs_init_defaults (GstVp8TokenProbs * probs) in gst_vp8_token_probs_init_defaults() argument 450 memcpy (probs->prob, vp8_default_token_probs, in gst_vp8_token_probs_init_defaults() 455 gst_vp8_mv_update_probs_init (GstVp8MvProbs * probs) in gst_vp8_mv_update_probs_init() argument 457 memcpy (probs->prob, vp8_mv_update_probs, sizeof (vp8_mv_update_probs)); in gst_vp8_mv_update_probs_init() 461 gst_vp8_mv_probs_init_defaults (GstVp8MvProbs * probs) in gst_vp8_mv_probs_init_defaults() argument 463 memcpy (probs->prob, vp8_default_mv_probs, sizeof (vp8_default_mv_probs)); in gst_vp8_mv_probs_init_defaults() 467 gst_vp8_mode_probs_init_defaults (GstVp8ModeProbs * probs, gboolean key_frame) in gst_vp8_mode_probs_init_defaults() argument 470 memcpy (probs->y_prob, vp8_kf_y_mode_probs, sizeof (vp8_kf_y_mode_probs)); in gst_vp8_mode_probs_init_defaults() [all …]
|
D | vp8utils.h | 29 gst_vp8_token_update_probs_init (GstVp8TokenProbs * probs); 32 gst_vp8_token_probs_init_defaults (GstVp8TokenProbs * probs); 35 gst_vp8_mv_update_probs_init (GstVp8MvProbs * probs); 38 gst_vp8_mv_probs_init_defaults (GstVp8MvProbs * probs); 41 gst_vp8_mode_probs_init_defaults (GstVp8ModeProbs * probs, gboolean key_frame);
|
/third_party/boost/libs/math/test/ |
D | test_hyperexponential_dist.cpp | 58 …const RealT probs[] = { static_cast<RealT>(0.2L), static_cast<RealT>(0.3L), static_cast<RealT>(0.5… in BOOST_AUTO_TEST_CASE_TEMPLATE() local 60 const std::size_t n = sizeof(probs) / sizeof(RealT); in BOOST_AUTO_TEST_CASE_TEMPLATE() 62 boost::math::hyperexponential_distribution<RealT> dist_it(probs, probs+n, rates, rates+n); in BOOST_AUTO_TEST_CASE_TEMPLATE() 64 …P_CHECK_CLOSE_COLLECTIONS(RealT, dist_it.probabilities(), std::vector<RealT>(probs, probs+n), tol); in BOOST_AUTO_TEST_CASE_TEMPLATE() 67 boost::math::hyperexponential_distribution<RealT> dist_r(probs, rates); in BOOST_AUTO_TEST_CASE_TEMPLATE() 69 …XP_CHECK_CLOSE_COLLECTIONS(RealT, dist_r.probabilities(), std::vector<RealT>(probs, probs+n), tol); in BOOST_AUTO_TEST_CASE_TEMPLATE() 75 …P_CHECK_CLOSE_COLLECTIONS(RealT, dist_il.probabilities(), std::vector<RealT>(probs, probs+n), tol); in BOOST_AUTO_TEST_CASE_TEMPLATE() 99 …const RealT probs[] = { static_cast<RealT>(0.2L), static_cast<RealT>(0.3L), static_cast<RealT>(0.5… in BOOST_AUTO_TEST_CASE_TEMPLATE() local 101 const std::size_t n = sizeof(probs) / sizeof(RealT); in BOOST_AUTO_TEST_CASE_TEMPLATE() 103 boost::math::hyperexponential_distribution<RealT> dist(probs, probs+n, rates, rates+n); in BOOST_AUTO_TEST_CASE_TEMPLATE() [all …]
|
/third_party/mindspore/mindspore/nn/probability/distribution/_utils/ |
D | utils.py | 164 def check_sum_equal_one(probs): argument 168 if probs is None: 170 if isinstance(probs, Parameter): 171 if not isinstance(probs.data, Tensor): 173 probs = probs.data 174 if isinstance(probs, Tensor): 175 probs = probs.asnumpy() 176 prob_sum = np.sum(probs, axis=-1) 183 def check_rank(probs): argument 187 if probs is None: [all …]
|
/third_party/boost/libs/random/test/ |
D | test_hyperexponential_distribution.cpp | 78 const std::vector<double> probs = boost::assign::list_of(0.1)(0.2)(0.3)(0.4); in BOOST_AUTO_TEST_CASE() local 82 boost::random::hyperexponential_distribution<> dist_r(probs, rates); in BOOST_AUTO_TEST_CASE() 84 BOOST_RANDOM_HYPEREXP_CHECK_CLOSE_COLLECTIONS(double, dist_r.probabilities(), probs, tol); in BOOST_AUTO_TEST_CASE() 88 …boost::random::hyperexponential_distribution<> dist_it(probs.begin(), probs.end(), rates.begin(), … in BOOST_AUTO_TEST_CASE() 90 BOOST_RANDOM_HYPEREXP_CHECK_CLOSE_COLLECTIONS(double, dist_it.probabilities(), probs, tol); in BOOST_AUTO_TEST_CASE() 125 const std::vector<double> probs = boost::assign::list_of(0.1)(0.2)(0.3)(0.4); in BOOST_AUTO_TEST_CASE() local 129 boost::random::hyperexponential_distribution<> dist(probs, rates); in BOOST_AUTO_TEST_CASE() 158 boost::random::hyperexponential_distribution<>::param_type param_r(probs, rates); in BOOST_AUTO_TEST_CASE() 159 BOOST_RANDOM_HYPEREXP_CHECK_CLOSE_COLLECTIONS(double, param_r.probabilities(), probs, tol); in BOOST_AUTO_TEST_CASE() 162 …boost::random::hyperexponential_distribution<>::param_type param_it(probs.begin(), probs.end(), ra… in BOOST_AUTO_TEST_CASE() [all …]
|
D | test_discrete_distribution.cpp | 56 std::vector<double> probs = boost::assign::list_of(1.0)(2.0)(1.0)(4.0); in BOOST_AUTO_TEST_CASE() local 58 boost::random::discrete_distribution<> dist_r(probs); in BOOST_AUTO_TEST_CASE() 61 boost::random::discrete_distribution<> dist_it(probs.begin(), probs.end()); in BOOST_AUTO_TEST_CASE() 82 std::vector<double> probs = boost::assign::list_of(1.0)(2.0)(1.0)(4.0); in BOOST_AUTO_TEST_CASE() local 83 boost::random::discrete_distribution<> dist(probs); in BOOST_AUTO_TEST_CASE() 107 boost::random::discrete_distribution<>::param_type parm_r(probs); in BOOST_AUTO_TEST_CASE() 111 parm_it(probs.begin(), probs.end()); in BOOST_AUTO_TEST_CASE() 120 std::vector<double> probs = boost::assign::list_of(1.0)(2.0)(1.0); in BOOST_AUTO_TEST_CASE() local 124 boost::random::discrete_distribution<> dist_r(probs); in BOOST_AUTO_TEST_CASE() 130 std::vector<double> probs = boost::assign::list_of(1.0)(2.0)(1.0)(4.0); in BOOST_AUTO_TEST_CASE() local [all …]
|
/third_party/mindspore/tests/ut/python/nn/probability/distribution/ |
D | test_categorical.py | 127 def construct(self, value, probs): argument 128 prob = self.c.prob(value, probs) 129 log_prob = self.c.log_prob(value, probs) 130 cdf = self.c.cdf(value, probs) 131 log_cdf = self.c.log_cdf(value, probs) 132 sf = self.c.survival_function(value, probs) 133 log_sf = self.c.log_survival(value, probs) 143 probs = Tensor([0.3, 0.7], dtype=dtype.float32) 144 ans = net(value, probs) 212 def construct(self, value, probs): argument [all …]
|
D | test_geometric.py | 103 def construct(self, value, probs): argument 104 prob = self.g.prob(value, probs) 105 log_prob = self.g.log_prob(value, probs) 106 cdf = self.g.cdf(value, probs) 107 log_cdf = self.g.log_cdf(value, probs) 108 sf = self.g.survival_function(value, probs) 109 log_sf = self.g.log_survival(value, probs) 119 probs = Tensor([0.5], dtype=dtype.float32) 120 ans = net(value, probs) 215 def construct(self, value, probs): argument [all …]
|
D | test_bernoulli.py | 103 def construct(self, value, probs): argument 104 prob = self.b.prob(value, probs) 105 log_prob = self.b.log_prob(value, probs) 106 cdf = self.b.cdf(value, probs) 107 log_cdf = self.b.log_cdf(value, probs) 108 sf = self.b.survival_function(value, probs) 109 log_sf = self.b.log_survival(value, probs) 119 probs = Tensor([0.5], dtype=dtype.float32) 120 ans = net(value, probs) 188 def construct(self, value, probs): argument [all …]
|
/third_party/gstreamer/gstplugins_bad/sys/v4l2codecs/ |
D | gstv4l2codecvp9dec.c | 174 struct v4l2_ctrl_vp9_compressed_hdr *probs = &self->v4l2_delta_probs; in gst_v4l2_codec_vp9_dec_fill_prob_updates() local 176 G_STATIC_ASSERT (sizeof (probs->tx8) == in gst_v4l2_codec_vp9_dec_fill_prob_updates() 178 G_STATIC_ASSERT (sizeof (probs->tx16) == in gst_v4l2_codec_vp9_dec_fill_prob_updates() 180 G_STATIC_ASSERT (sizeof (probs->tx32) == in gst_v4l2_codec_vp9_dec_fill_prob_updates() 182 G_STATIC_ASSERT (sizeof (probs->coef) == in gst_v4l2_codec_vp9_dec_fill_prob_updates() 184 G_STATIC_ASSERT (sizeof (probs->skip) == in gst_v4l2_codec_vp9_dec_fill_prob_updates() 186 G_STATIC_ASSERT (sizeof (probs->inter_mode) == in gst_v4l2_codec_vp9_dec_fill_prob_updates() 188 G_STATIC_ASSERT (sizeof (probs->interp_filter) == in gst_v4l2_codec_vp9_dec_fill_prob_updates() 190 G_STATIC_ASSERT (sizeof (probs->is_inter) == in gst_v4l2_codec_vp9_dec_fill_prob_updates() 192 G_STATIC_ASSERT (sizeof (probs->comp_mode) == in gst_v4l2_codec_vp9_dec_fill_prob_updates() [all …]
|
/third_party/mindspore/tests/st/ops/gpu/ |
D | test_ctcloss_op.py | 34 def construct(self, probs, label, input_length, indices): argument 35 x, _ = self.loss(probs, indices, label, input_length) 46 def construct(self, probs, indices, labels, input_lengths): argument 47 return self.grad(self.network)(probs, indices, labels, input_lengths) 54 …probs = Tensor([[[-4.4131, -4.6093, -3.4333, -3.9268, -2.8917, -3.4093, -4.2243, -1.1379, -7.1046,… 81 ctc_loss = net(probs, labels, input_lengths, indices) 85 grad = GradData(net)(probs, labels, input_lengths, indices)
|
/third_party/mindspore/tests/st/ops/cpu/ |
D | test_ctcloss_op.py | 34 def construct(self, probs, label, input_length, indices): argument 35 x, _ = self.loss(probs, indices, label, input_length) 46 def construct(self, probs, indices, labels, input_lengths): argument 47 return self.grad(self.network)(probs, indices, labels, input_lengths) 54 …probs = Tensor([[[-4.4131, -4.6093, -3.4333, -3.9268, -2.8917, -3.4093, -4.2243, -1.1379, -7.1046,… 81 ctc_loss = net(probs, labels, input_lengths, indices) 85 grad = GradData(net)(probs, labels, input_lengths, indices)
|
/third_party/vk-gl-cts/modules/gles2/stress/ |
D | es2sLongRunningTests.cpp | 79 const Probs probs; in init() member 80 …obs& probs_ = Probs()) : name(name_), desc(desc_), redundantBufferFactor(bufFact), probs(probs_) {} in init() 123 contexts, cases[caseNdx].probs, in init() 151 const Probs probs; in init() member 152 …st Probs& probs_ = Probs()) : name(name_), desc(desc_), numTextures(numTextures_), probs(probs_) {} in init() 191 contexts, cases[caseNdx].probs, in init() 208 const Probs probs; in init() member 210 …: name(name_), desc(desc_), drawCallsPerIteration(calls), numTrisPerDrawCall(tris), probs(probs_) … in init() 241 contexts, cases[caseNdx].probs, in init() 257 const Probs probs; in init() member [all …]
|
/third_party/vk-gl-cts/modules/gles3/stress/ |
D | es3sLongRunningTests.cpp | 79 const Probs probs; in init() member 80 …obs& probs_ = Probs()) : name(name_), desc(desc_), redundantBufferFactor(bufFact), probs(probs_) {} in init() 123 contexts, cases[caseNdx].probs, in init() 151 const Probs probs; in init() member 152 …st Probs& probs_ = Probs()) : name(name_), desc(desc_), numTextures(numTextures_), probs(probs_) {} in init() 191 contexts, cases[caseNdx].probs, in init() 208 const Probs probs; in init() member 210 …: name(name_), desc(desc_), drawCallsPerIteration(calls), numTrisPerDrawCall(tris), probs(probs_) … in init() 241 contexts, cases[caseNdx].probs, in init() 257 const Probs probs; in init() member [all …]
|
/third_party/boost/boost/math/distributions/ |
D | hyperexponential.hpp | 201 const std::vector<RealT> probs = dist.probabilities(); in quantile_impl() local 213 guess += probs[i]*quantile(complement(exp, p)); in quantile_impl() 222 guess += probs[i]*quantile(exp, p); in quantile_impl() 233 … q = detail::generic_quantile(hyperexponential_distribution<RealT,forwarding_policy>(probs, rates), in quantile_impl() 427 const std::vector<RealT> probs = dist.probabilities(); in pdf() local 434 result += probs[i]*pdf(exp, x); in pdf() 452 const std::vector<RealT> probs = dist.probabilities(); in cdf() local 459 result += probs[i]*cdf(exp, x); in cdf() 485 const std::vector<RealT> probs = dist.probabilities(); in cdf() local 492 result += probs[i]*cdf(complement(exp, x)); in cdf() [all …]
|
/third_party/mindspore/tests/st/ops/ascend/ |
D | test_sparseSoftmaxCrossEntropyWithLogits.py | 47 probs = e / np.reshape(np.sum(e, axis=class_dim), [batch_size, 1]) 48 labels_mat = np.zeros_like(probs).astype(probs.dtype) 50 bp = (probs - labels_mat) 51 loss = -np.sum(labels_mat * np.log(probs + 1.0e-20), axis=1)
|
/third_party/ffmpeg/libavcodec/ |
D | mss1.c | 95 static int arith_get_prob(ArithCoder *c, int16_t *probs) in arith_get_prob() argument 98 int val = ((c->value - c->low + 1) * probs[0] - 1) / range; in arith_get_prob() 101 while (probs[sym] > val) in arith_get_prob() 104 c->high = range * probs[sym - 1] / probs[0] + c->low - 1; in arith_get_prob() 105 c->low += range * probs[sym] / probs[0]; in arith_get_prob()
|
/third_party/gstreamer/gstplugins_bad/tests/examples/codecparsers/ |
D | parse-vp8.c | 219 print_mv_probs (GstVp8MvProbs * probs) in print_mv_probs() argument 225 g_print (" %-32s : %d", j == 0 ? "row" : "column", probs->prob[j][0]); in print_mv_probs() 227 g_print (", %d", probs->prob[j][i]); in print_mv_probs() 234 print_mode_probs (GstVp8ModeProbs * probs) in print_mode_probs() argument 239 g_print (" %-32s : %d", "luma", probs->y_prob[0]); in print_mode_probs() 241 g_print (", %d", probs->y_prob[i]); in print_mode_probs() 244 g_print (" %-32s : %d", "chroma", probs->uv_prob[0]); in print_mode_probs() 246 g_print (", %d", probs->uv_prob[i]); in print_mode_probs()
|