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

Create Network.Error class or factory #89

Open
levithomason opened this issue Dec 21, 2015 · 2 comments
Open

Create Network.Error class or factory #89

levithomason opened this issue Dec 21, 2015 · 2 comments

Comments

@levithomason
Copy link
Owner

Just as with Neuron activations in #88, there are Network error functions in an ERROR namespace. We should do the same thing and pull these into a class or factory. For better cohesion, it should live on as a static on the Network class. You should be able to create new error functions with validation. When created, they should be added to the Network.ERROR namespace.

@ckcollab
Copy link
Contributor

What different kinds of errors are there?

@levithomason
Copy link
Owner Author

Anny currently includes crossEntropy, meanSquared, rootMeanSquared, and arcTan. You can define any error function you like. An error function takes the Network's actual output (array of the output value of every Neuron in the output Layer) and the expected output and returns a number. See here.

There are different error functions for different use cases. For example, classification problems are best served by the "cross entropy" error function. Some material I've read of late suggests only to use cross entropy and soft max activations for most problems, including object recognition.

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

2 participants