Skip to content

Bias not being applied? #1

Description

@dcuny

In line 231 of NeuralLua.lua, the comment says this line is applying bias:

  -- aplying BIAS
  b = #neural.bias
  i = 1 
  k = #neural.weights
  while i <= #neural.weights do
    neural.weights[i] = matrix.sum(neural.weights[i],deltas[k])
    i = i+1
    k = k-1
  end

However, it appears to be a cut and paste of the line above, without changing neural.weights[i] to neural.bias[i].

It's not clear how you're applying bias, but it's likely that it can be applied in the same loop that the weights are being applied, instead of requiring another loop.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions