Where should I add seed?

where should I add seed?

Hey @debjanihome, since we have used, np.choice() there is randomness in the output produced. But since we need to judge the submission, we need a method so that every individual’s output is same, So np.random.seed(11) will solve the purpose, If everything is same in two codes, it will pick same characters on both system.

Hope this resolved your doubt.
Plz mark the doubt as resolved in my doubts section. :blush:

what about using possible_Chars,p=possible_values

Hey @debjanihome, they give me possible characters with their correspondinb probabilities, like i = 0.5, j = 0.2, k = 0.3 Now this means if youf pass this to np.random.choice() and predicted 100 times, than nearly 50 times ‘i’ will be predicted, '20 times j and nearly 30 times k would be produced.

Also don’t fall in the trap that i has maximum probability so only i wil be produced.

Hope this resolved your doubt.
Plz mark the doubt as resolved in my doubts section. :blush: