Skip to content

Regularization implementation #40

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Regularization implementation #40

wants to merge 1 commit into from

Conversation

b0noI
Copy link
Collaborator

@b0noI b0noI commented Apr 13, 2018

No description provided.

@b0noI b0noI requested a review from andrey-kotkovets April 13, 2018 13:43
@@ -170,6 +170,24 @@ public void backwardSignalReceived(final Double error) {

final var dzLearningRate = dz * context.getLearningRate();
backwardConnections = backwardConnections.add(inputSignals.scalarMultiply(dzLearningRate));
if (context.getRegularizationRate() != 0.) {
backwardConnections.walkInColumnOrder(new RealMatrixChangingVisitor() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

@b0noI
backwardConnections is a 1:N vector.
So, in my view, it makes sense to use walkInRowOrder instead of walkInColumnOrder

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

Successfully merging this pull request may close these issues.

2 participants