Skip to content
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

Improve sampler. #6

Open
pushnyakov opened this issue May 24, 2018 · 0 comments
Open

Improve sampler. #6

pushnyakov opened this issue May 24, 2018 · 0 comments

Comments

@pushnyakov
Copy link

x.append(np.random.randn(*w.shape))

Actually, it makes sense to improve this step by the following.
Let's assume that we are solving a huge optimization problem. What is the point of generating a random gaussian at each step? We can generate a huge list of gaussian at the very beginning of the training and at each step we just sample subset of given length from the already generated list of gaussians.

Moreover, if a neural network is super huge (or our objective has a huge number of parameters) it might be costly to generate (or sample from already generated) gaussian at each step. We may do that for a small subset of weights (=parameters) which should significantly speed up convergence in the case of huge parameters space.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant