samedi 6 juin 2020

a question about the seed of np.random.permutation

I'm trying to shuffle my data along the first axis. The code is as following:

shuffle_indexes = np.random.permutation(new_data.shape[0])
new_data = new_data[shuffle_indexes]

I wanna set a random seed to the function in order to replicate the result and control variables. But I check the official website and I didn't find such parameters for the function. How can I solve this problem?




Aucun commentaire:

Enregistrer un commentaire