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

MLP: Fix step size initialization based on learning rate policy #240

Closed

Conversation

njayaram2
Copy link
Contributor

JIRA: MADLIB-1212

The step_size is supposed to be updated based on the learning rate. The
formulae for different policies depend on the current iteration number,
which was not consumed correctly. This commit fixes it by using
it.iteration for the current iteration number in that update.

Co-authored-by: Nikhil Kak nkak@pivotal.io

JIRA: MADLIB-1212

The step_size is supposed to be updated based on the learning rate. The
formulae for different policies depend on the current iteration number,
which was not consumed correctly. This commit fixes it by using
it.iteration for the current iteration number in that update.

Co-authored-by: Nikhil Kak <nkak@pivotal.io>
@asfgit
Copy link

asfgit commented Mar 10, 2018

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/madlib-pr-build/364/

@@ -112,6 +112,7 @@ def mlp(schema_madlib, source_table, output_table, independent_varname,
num_output_nodes = 0
classes = []
dependent_type = get_expr_type(dependent_varname, source_table)
classes_str = None
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't really need this classes_str variable, right ?

@asfgit
Copy link

asfgit commented Mar 19, 2018

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/madlib-pr-build/381/

@asfgit asfgit closed this in 403afbf Mar 19, 2018
@jingyimei
Copy link

We manually tested the bug fix by printing the step_size and step_size_init for each iteration and then called mlp with all the possible policies.
step_size was updated as expected. +1 for the changes

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