The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

548933 (1) [Avatar] Offline
I'm not sure about the calculation of layer_1 which uses np.mean for the word with left context + right context

layer_1 = np.mean(weights_0_1[left_context+right_context],axis=0)

The same question goes later when updating weights_0_1
weights_0_1[left_context+right_context] -= layer_1_delta * alpha

My guess is that it helps to link between nearby words in a sentence, but I'm not sure why np.mean will do the work?