-
## 🐛 Bug
Categorical.sample(shape) calls _shape_ times ```torch.multinomial(probas, 1, True)```.
This is slow when we want to get many samples from a large number of classes.
## To Reproduce
…
-
### 🐛 Describe the bug
As in the [example](https://pytorch.org/docs/stable/generated/torch.multinomial.html), torch.multinomial should raise an error.
If errors are not raised to block developers,…
-
####Learning Goals
Binary Classification, Logistic regression and Data Preprocessing
###Exercise Statement
Credit card fraud classification using Logistic Regression
###Prerequisites
Basic un…
-
Hi, many thanks to the excellent package.
I'm wondering if the package is availble for multinomial logistic regression (the response variable has more than 2 levels)? The family argument only prov…
-
Hi, this bayespy is very interesting. Let me ask another question.
Let's say two people (c and c2) choose A or B at random. I would like to know how many people choose A.
I tried to make a node …
-
Probably using continuous -> quintiles approach rather than finding a third example. Good chance to discuss https://pubmed.ncbi.nlm.nih.gov/24487212/
- [ ] ATO: https://arxiv.org/pdf/1808.05339.pdf…
-
According to the transformer in Huggingface, beam-search multinomial sampling can be implemented by setting `num_beams>1` and `do_sample=True`. However, this is not supported in LAVIS. If I set `num_b…
-
def __sample(a, temperature=1.0):
a = np.log(a) / temperature
a = np.exp(a) / np.sum(np.exp(a))
return np.argmax(np.random.multinomial(1, a, 1))
It shows up multinomial has an error
…
-
found by chance (while looking at diagnostic for multinomial models)
https://en.wikipedia.org/wiki/Multinomial_distribution#Equivalence_tests_for_multinomial_distributions
"The equivalence test fo…
-
Multinomial logistic regression is implemented in `statsmodels` as `statsmodels.discrete.discrete_model.MNLogit`. After training, this model allows observations consisting of multiple quantitative fe…