Skip to content

Mathmatics problem in the code, emergency!!! #11

Description

@chibai

Dear antirez:
Thank you very much for sharing this amazing code. And I have a problem to figure out or I can not sleep.
In function float AnnGlobalError(struct Ann *net, float *desired), Root Mean Square (RMS) error is used to record the loss, which means:
image

thus, I suppose in function AnnCalculateOutputError(struct Ann *net, float *desired) should be the derivation, which means:
image

but in your real implementation, it is like this(let n = classification number):
image

And I do integration on your real implementation to get the real loss function:
image

can you explain this a little bit for me??
what is the real loss function in your code??

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