Hello , in w_tmp = np.random.rand(X_tmp.shape[1]).reshape(-1,) - 0.5 why the need for reshape and also 0.5 subtracted.
Hello William @WILLIAM_AGYEKUM_ASIE,
reshape
is actually not needed. For -0.5
, it will makes the generated random number to be in the range of -0.5 to 0.5.
Raymond
okay , thanks Raymond.