-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BaseRandomLayer Abstract Layer and RandomWidth Preprocessing Layer #7345
Merged
mattsoulanille
merged 24 commits into
tensorflow:master
from
CodeSmithDSMLProjects:randomLayers
Mar 15, 2023
Merged
Changes from 3 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
d676ae8
created baseRandomLayer Abstract layer, contains random generator fun…
RWallie c6a144c
renamed file to base_random_layer
RWallie a9fd524
created random_width preprocessing layer - extends baseRandomLayer an…
RWallie 253c0e7
tests for randomWidth preproccessing layer
RWallie 3159cc9
added randomWidth preprocessing layer to exports_layers
RWallie 97e9f66
reformatted tests using reshape property
Silvia42 17ff308
updated BaseRandomLayer to contain an instance of RandomGenerator cla…
Silvia42 0d7ff04
random generator handles pseudorandomness for autoincrementing seed a…
Silvia42 9188041
updated randomUniform call with RangomGenerator instance on BaseRando…
Silvia42 639712f
increment currentSeed before return in random_generator
RWallie 3086655
fixed linting
RWallie 9e79b22
removed reset method from RandomGenerator
RWallie f9bf89a
unpacked args and chaned conditionals
RWallie de0a7c6
merged master
Silvia42 de296dc
fix Safari compatibility
Silvia42 b1034a5
added test for RandomGenerator Class
Silvia42 5077b96
Merge branch 'master' into randomLayers
Silvia42 aba23b7
Change class RandomGenerator to class RandomSeed
Silvia42 384b758
Merge branch 'master' into randomLayers
Silvia42 f4b05b2
updated RandomSeed to handle undefined value, removed duplicate state…
Silvia42 9ae69a4
re-labeled currentSeed as seed
Silvia42 1d7fc23
Merge branch 'master' into randomLayers
mattsoulanille b183550
Merge branch 'master' into randomLayers
mattsoulanille c77e1c3
Merge branch 'master' into randomLayers
mattsoulanille File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note to other reviewer: When no seed is specified, the keras implementation does not choose a random seed. It just generates random values. Saving it yields something like this, with the seed set to
Null
:This is truly random, and there is no reproducibility here.
On the other hand, when the user sets the seed, it gets saved to the config.