Closed zachlefevre closed 4 years ago
cc @matthew-mcateer want to take a look?
Hi there, the second version is for TF, the first includes numpy-functions. I suggest to get rid of the first variant and just state this code in order to demonstrate the "lambda-function":
lambda_ = tf.gather( [lambda_1, lambda_2], indices=tf.to_int32(tau * tf.to_float(tf.size(count_data)) <= tf.to_float(tf.range(tf.size(count_data))))) rv_observation = tfd.Poisson(rate=lambda_)
THanks for pointing this out, @Pindar777 I'll take a look
The first joint log probability function is defined as:
Which is defined again below as:
The first will not run, as the Tensor object does not have a
mean
method