Home
last modified time | relevance | path

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

12345

/external/tensorflow/tensorflow/contrib/distributions/python/kernel_tests/
Dnegative_binomial_test.py38 probs = [.1] * 5
41 total_count=total_count, probs=probs)
50 probs = [[.1, .2, .3]] * 5
53 total_count=total_count, probs=probs)
66 self.assertEqual([1, 3], negbinom.probs.get_shape())
75 5., probs=invalid_ps, validate_args=True)
76 negbinom.probs.eval()
82 5., probs=invalid_ps, validate_args=True)
83 negbinom.probs.eval()
90 total_count=invalid_rs, probs=0.1, validate_args=True)
[all …]
Dgeometric_test.py38 probs = constant_op.constant([.1] * 5)
39 geom = geometric.Geometric(probs=probs)
50 geom = geometric.Geometric(probs=invalid_ps, validate_args=True)
51 geom.probs.eval()
56 geom = geometric.Geometric(probs=invalid_ps, validate_args=True)
57 geom.probs.eval()
62 probs = constant_op.constant([.2] * batch_size)
65 geom = geometric.Geometric(probs=probs)
78 probs = constant_op.constant([.9] * batch_size)
81 geom = geometric.Geometric(probs=probs, validate_args=True)
[all …]
Drelaxed_bernoulli_test.py36 dist = relaxed_bernoulli.RelaxedBernoulli(temperature, probs=p)
38 self.assertAllClose(p, dist.probs.eval())
48 self.assertAllClose(scipy.special.expit(logits), dist.probs.eval())
51 dist = relaxed_bernoulli.RelaxedBernoulli(temperature, probs=p)
62 probs=p,
64 dist.probs.eval()
71 probs=p,
73 dist.probs.eval()
79 probs=p)
80 self.assertEqual(p, dist.probs.eval())
[all …]
Dbinomial_test.py33 binom = binomial.Binomial(total_count=1., probs=p)
43 binom = binomial.Binomial(total_count=n, probs=p)
54 binom = binomial.Binomial(total_count=n, probs=p)
61 binom = binomial.Binomial(total_count=3., probs=p)
62 self.assertEqual((1, 3), binom.probs.get_shape())
64 self.assertAllClose(p, binom.probs.eval())
70 self.assertEqual((1, 3), binom.probs.get_shape())
78 binom = binomial.Binomial(total_count=n, probs=p, validate_args=True)
97 binom = binomial.Binomial(total_count=n, probs=p, validate_args=True)
111 binom = binomial.Binomial(total_count=n, probs=p, validate_args=False)
[all …]
Dmixture_same_family_test.py40 mixture_distribution=categorical_lib.Categorical(probs=[0.3, 0.7]),
51 mixture_distribution=categorical_lib.Categorical(probs=[[0.3, 0.7]]),
64 mixture_distribution=categorical_lib.Categorical(probs=mix_probs),
65 components_distribution=bernoulli_lib.Bernoulli(probs=bern_probs))
77 mixture_distribution=categorical_lib.Categorical(probs=[0.3, 0.7]),
88 mixture_distribution=categorical_lib.Categorical(probs=[0.3, 0.7]),
103 mixture_distribution=categorical_lib.Categorical(probs=[0.3, 0.7]),
116 mixture_distribution=categorical_lib.Categorical(probs=[0.3, 0.7]),
133 mixture_distribution=categorical_lib.Categorical(probs=[0.3, 0.7]),
141 mixture_distribution=categorical_lib.Categorical(probs=[0.3, 0.7]),
/external/tensorflow/tensorflow/contrib/distributions/python/ops/
Dgeometric.py69 probs=None, argument
98 with ops.name_scope(name, values=[logits, probs]) as name:
100 logits, probs, validate_args=validate_args, name=name)
121 def probs(self): member in Geometric
129 return self.probs.get_shape()
153 math_ops.log(sampled) / math_ops.log1p(-self.probs))
162 x *= array_ops.ones_like(self.probs)
166 -math_ops.expm1((1. + x) * math_ops.log1p(-self.probs)))
174 x *= array_ops.ones_like(self.probs)
175 probs = self.probs * array_ops.ones_like(x)
[all …]
Dbinomial.py153 probs=None, argument
184 with ops.name_scope(name, values=[total_count, logits, probs]) as name:
190 probs=probs,
215 def probs(self): member in Binomial
222 array_ops.shape(self.probs))
227 self.probs.get_shape())
245 probs = self.probs
247 and self.probs.shape.is_fully_defined()
248 and counts.shape.is_compatible_with(self.probs.shape)):
250 probs += array_ops.zeros_like(counts)
[all …]
/external/xz-java/src/org/tukaani/xz/rangecoder/
DRangeEncoder.java99 public void encodeBit(short[] probs, int index, int bit) in encodeBit() argument
101 int prob = probs[index]; in encodeBit()
107 probs[index] = (short)( in encodeBit()
112 probs[index] = (short)(prob - (prob >>> MOVE_BITS)); in encodeBit()
128 public void encodeBitTree(short[] probs, int symbol) throws IOException { in encodeBitTree() argument
130 int mask = probs.length; in encodeBitTree()
135 encodeBit(probs, index, bit); in encodeBitTree()
144 public static int getBitTreePrice(short[] probs, int symbol) { in getBitTreePrice() argument
146 symbol |= probs.length; in getBitTreePrice()
151 price += getBitPrice(probs[symbol], bit); in getBitTreePrice()
[all …]
DRangeDecoder.java22 public int decodeBit(short[] probs, int index) throws IOException { in decodeBit() argument
25 int prob = probs[index]; in decodeBit()
32 probs[index] = (short)( in decodeBit()
38 probs[index] = (short)(prob - (prob >>> MOVE_BITS)); in decodeBit()
45 public int decodeBitTree(short[] probs) throws IOException { in decodeBitTree() argument
49 symbol = (symbol << 1) | decodeBit(probs, symbol); in decodeBitTree()
50 } while (symbol < probs.length); in decodeBitTree()
52 return symbol - probs.length; in decodeBitTree()
55 public int decodeReverseBitTree(short[] probs) throws IOException { in decodeReverseBitTree() argument
61 int bit = decodeBit(probs, symbol); in decodeReverseBitTree()
[all …]
/external/tensorflow/tensorflow/python/kernel_tests/distributions/
Dbernoulli_test.py51 return bernoulli.Bernoulli(probs=p, dtype=dtype)
64 dist = bernoulli.Bernoulli(probs=p)
65 self.assertAllClose(p, self.evaluate(dist.probs))
76 self.assertAllClose(special.expit(logits), self.evaluate(dist.probs))
79 dist = bernoulli.Bernoulli(probs=p)
87 dist = bernoulli.Bernoulli(probs=p, validate_args=True)
88 self.evaluate(dist.probs)
93 dist = bernoulli.Bernoulli(probs=p, validate_args=True)
94 self.evaluate(dist.probs)
98 dist = bernoulli.Bernoulli(probs=p)
[all …]
Dmultinomial_test.py41 dist = multinomial.Multinomial(total_count=1., probs=p)
52 dist = multinomial.Multinomial(total_count=n, probs=p)
63 dist = multinomial.Multinomial(total_count=n, probs=p)
71 dist = multinomial.Multinomial(total_count=3., probs=p)
72 self.assertEqual((1, 3), dist.probs.get_shape())
74 self.assertAllClose(p, dist.probs.eval())
82 self.assertEqual((1, 3), multinom.probs.get_shape())
84 self.assertAllClose(p, multinom.probs.eval())
100 dist = multinomial.Multinomial(total_count=n, probs=p, validate_args=True)
115 total_count=n, probs=p, validate_args=True)
[all …]
/external/tensorflow/tensorflow/contrib/training/python/training/
Dsampling_ops_test.py45 probs = [.2] * 5
54 probs,
62 probs,
71 probs, batch_size, init_probs)
76 array_ops.zeros([1, 3]), label, probs, batch_size, init_probs)
83 probs,
93 probs,
167 probs = np.array([0, 1, 0, 0, 0])
169 val_input_batch, lbl_input_batch, probs, batch_size, init_probs=probs)
171 val_input_batch, lbl_input_batch, probs, batch_size, init_probs=probs)
[all …]
/external/u-boot/lib/lzma/
DLzmaDec.c30 #define TREE_GET_BIT(probs, i) { GET_BIT((probs + i), i); } argument
31 #define TREE_DECODE(probs, limit, i) \ argument
32 { i = 1; do { TREE_GET_BIT(probs, i); } while (i < limit); i -= limit; }
37 #define TREE_6_DECODE(probs, i) TREE_DECODE(probs, (1 << 6), i) argument
39 #define TREE_6_DECODE(probs, i) \ argument
41 TREE_GET_BIT(probs, i); \
42 TREE_GET_BIT(probs, i); \
43 TREE_GET_BIT(probs, i); \
44 TREE_GET_BIT(probs, i); \
45 TREE_GET_BIT(probs, i); \
[all …]
/external/libvpx/libvpx/vp9/encoder/
Dvp9_cost.c39 static void cost(int *costs, vpx_tree tree, const vpx_prob *probs, int i, in cost() argument
41 const vpx_prob prob = probs[i / 2]; in cost()
52 cost(costs, tree, probs, ii, cc); in cost()
56 void vp9_cost_tokens(int *costs, const vpx_prob *probs, vpx_tree tree) { in vp9_cost_tokens() argument
57 cost(costs, tree, probs, 0, 0); in vp9_cost_tokens()
60 void vp9_cost_tokens_skip(int *costs, const vpx_prob *probs, vpx_tree tree) { in vp9_cost_tokens_skip() argument
63 costs[-tree[0]] = vp9_cost_bit(probs[0], 0); in vp9_cost_tokens_skip()
64 cost(costs, tree, probs, 2, 0); in vp9_cost_tokens_skip()
Dvp9_segmentation.c80 static int cost_segmap(int *segcounts, vpx_prob *probs) { in cost_segmap() argument
89 int cost = c0123 * vp9_cost_zero(probs[0]) + c4567 * vp9_cost_one(probs[0]); in cost_segmap()
93 cost += c01 * vp9_cost_zero(probs[1]) + c23 * vp9_cost_one(probs[1]); in cost_segmap()
96 cost += segcounts[0] * vp9_cost_zero(probs[3]) + in cost_segmap()
97 segcounts[1] * vp9_cost_one(probs[3]); in cost_segmap()
99 cost += segcounts[2] * vp9_cost_zero(probs[4]) + in cost_segmap()
100 segcounts[3] * vp9_cost_one(probs[4]); in cost_segmap()
104 cost += c45 * vp9_cost_zero(probs[2]) + c67 * vp9_cost_one(probs[2]); in cost_segmap()
107 cost += segcounts[4] * vp9_cost_zero(probs[5]) + in cost_segmap()
108 segcounts[5] * vp9_cost_one(probs[5]); in cost_segmap()
[all …]
/external/lzma/C/
DLzmaDec.c29 #define TREE_GET_BIT(probs, i) { GET_BIT2(probs + i, i, ;, ;); } argument
38 #define TREE_DECODE(probs, limit, i) \ argument
39 { i = 1; do { TREE_GET_BIT(probs, i); } while (i < limit); i -= limit; }
44 #define TREE_6_DECODE(probs, i) TREE_DECODE(probs, (1 << 6), i) argument
46 #define TREE_6_DECODE(probs, i) \ argument
48 TREE_GET_BIT(probs, i); \
49 TREE_GET_BIT(probs, i); \
50 TREE_GET_BIT(probs, i); \
51 TREE_GET_BIT(probs, i); \
52 TREE_GET_BIT(probs, i); \
[all …]
DLzmaEnc.c692 static void LitEnc_Encode(CRangeEnc *p, CLzmaProb *probs, UInt32 sym) in LitEnc_Encode() argument
700 CLzmaProb *prob = probs + (sym >> 8); in LitEnc_Encode()
709 static void LitEnc_EncodeMatched(CRangeEnc *p, CLzmaProb *probs, UInt32 sym, UInt32 matchByte) in LitEnc_EncodeMatched() argument
721 prob = probs + (offs + (matchByte & offs) + (sym >> 8)); in LitEnc_EncodeMatched()
771 static UInt32 LitEnc_GetPrice(const CLzmaProb *probs, UInt32 sym, const CProbPrice *ProbPrices) in LitEnc_GetPrice() argument
779 price += GET_PRICEa(probs[sym], bit); in LitEnc_GetPrice()
786 static UInt32 LitEnc_Matched_GetPrice(const CLzmaProb *probs, UInt32 sym, UInt32 matchByte, const C… in LitEnc_Matched_GetPrice() argument
794 price += GET_PRICEa(probs[offs + (matchByte & offs) + (sym >> 8)], (sym >> 7) & 1); in LitEnc_Matched_GetPrice()
803 static void RcTree_ReverseEncode(CRangeEnc *rc, CLzmaProb *probs, unsigned numBits, unsigned sym) in RcTree_ReverseEncode() argument
813 RC_BIT(rc, probs + m, bit); in RcTree_ReverseEncode()
[all …]
/external/lzma/Asm/x86/
DLzmaDecOpt.asm8 ; CLzmaDec structure, (probs) array layout, input and output of
77 ; r11 probs
110 probs equ r11 define
256 PLOAD prob, probs + 1 * PMULT
257 PLOAD probNext, probs + 1 * PMULT_2
262 PLOAD t0, probs + 1 * PMULT_2 + PMULT
268 PUP_SUB prob, probs + 1 * PMULT, 0 - 1
273 PLOAD probNext, probs + sym_R * PMULT_2
279 PLOAD t0, probs + sym_R * PMULT + PMULT
281 PUP_COD prob, probs + t1_R * PMULT_HALF, 0 - 1
[all …]
/external/tensorflow/tensorflow/python/ops/distributions/
Dutil.py155 probs=None,
183 with ops.name_scope(name, values=[probs, logits]):
184 if (probs is None) == (logits is None):
187 if probs is None:
199 probs = ops.convert_to_tensor(probs, name="probs", dtype=dtype)
200 if not probs.dtype.is_floating:
205 one = constant_op.constant(1., probs.dtype)
206 dependencies = [check_ops.assert_non_negative(probs)]
208 probs = embed_check_categorical_event_shape(probs)
211 math_ops.reduce_sum(probs, -1),
[all …]
Dbernoulli.py53 probs=None, argument
87 probs=probs,
109 def probs(self): member in Bernoulli
128 new_shape, seed=seed, dtype=self.probs.dtype)
129 sample = math_ops.less(uniform, self.probs)
159 return array_ops.identity(self.probs)
162 return self._mean() * (1. - self.probs)
166 return math_ops.cast(self.probs > 0.5, self.dtype)
/external/lzma/Java/SevenZip/Compression/RangeCoder/
DDecoder.java54 public int DecodeBit(short []probs, int index) throws IOException in DecodeBit() argument
56 int prob = probs[index]; in DecodeBit()
61 probs[index] = (short)(prob + ((kBitModelTotal - prob) >>> kNumMoveBits)); in DecodeBit()
73 probs[index] = (short)(prob - ((prob) >>> kNumMoveBits)); in DecodeBit()
83 public static void InitBitModels(short []probs) in InitBitModels() argument
85 for (int i = 0; i < probs.length; i++) in InitBitModels()
86 probs[i] = (kBitModelTotal >>> 1); in InitBitModels()
DEncoder.java96 public static void InitBitModels(short []probs) in InitBitModels() argument
98 for (int i = 0; i < probs.length; i++) in InitBitModels()
99 probs[i] = (kBitModelTotal >>> 1); in InitBitModels()
102 public void Encode(short []probs, int index, int symbol) throws IOException in Encode() argument
104 int prob = probs[index]; in Encode()
109 probs[index] = (short)(prob + ((kBitModelTotal - prob) >>> kNumMoveBits)); in Encode()
115 probs[index] = (short)(prob - ((prob) >>> kNumMoveBits)); in Encode()
/external/libvpx/libvpx/vpx_dsp/
Dprob.c30 vpx_prob *probs) { in tree_merge_probs_impl() argument
34 : tree_merge_probs_impl(l, tree, pre_probs, counts, probs); in tree_merge_probs_impl()
38 : tree_merge_probs_impl(r, tree, pre_probs, counts, probs); in tree_merge_probs_impl()
40 probs[i >> 1] = mode_mv_merge_probs(pre_probs[i >> 1], ct); in tree_merge_probs_impl()
45 const unsigned int *counts, vpx_prob *probs) { in vpx_tree_merge_probs() argument
46 tree_merge_probs_impl(0, tree, pre_probs, counts, probs); in vpx_tree_merge_probs()
/external/tensorflow/tensorflow/lite/tools/accuracy/ilsvrc/
Dimagenet_topk_eval.cc66 auto probs = output.flat<float>(); in ComputeEval() local
67 for (size_t i = 0; i < probs.size(); i++) { in ComputeEval()
68 probabilities.push_back(probs(i)); in ComputeEval()
71 auto probs = output.flat<uint8>(); in ComputeEval() local
72 for (size_t i = 0; i < probs.size(); i++) { in ComputeEval()
73 probabilities.push_back(probs(i)); in ComputeEval()
76 auto probs = output.flat<int8>(); in ComputeEval() local
77 for (size_t i = 0; i < probs.size(); i++) { in ComputeEval()
78 probabilities.push_back(probs(i)); in ComputeEval()
/external/deqp/modules/gles2/stress/
Des2sLongRunningTests.cpp79 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 …]

12345