Closed owo closed 9 years ago
Good idea, I also use deterministic "random" sequences in other projects sometimes, never had the idea to use it here as well. Will merge now.
If you have any more ideas to improve the codebase please feel free to discuss it in tickets, would be more then happy to do so.
Thanks :) Will do. I'll even implement some things myself if time permits. Cheers.
Motive: Sometimes it is desired to have stable behaviour when using random projections. The current API does not allow to set a seed for the RandomBinaryProjections and* RandomDiscretizedProjections*.
Solution: I added an extra parameter to the constructor of these objects called 'rand_seed' that defaults to a value that replicates the current behaviour of these classes. This parameter can be set to a seed value (see here for more info) that allows for consistent behaviour. This addition is backwards compatible with the current API.
I will be more than happy to make any extra modifications if needed.