Hi,
I'm trying to decipher some python code located here:
Minimal character-level language model with a Vanilla Recurrent Neural Network, in Python/numpy * GitHub
I'm unable to understand what line 75 is doing?
ix = np.random.choice(range(vocab_size), p=p.ravel())
Anyone know what this might mean? I've looked at the documentation for p.ravel located here:
numpy.ravel � NumPy v1.13 Manual
and I still feel lost !
Could anyone explain this to me in layman terms, I'm no expert in programming or math.