Skip to content

There are 4 changes in this commit:#10

Open
plivesey wants to merge 3 commits intoSwift-AI:masterfrom
plivesey:master
Open

There are 4 changes in this commit:#10
plivesey wants to merge 3 commits intoSwift-AI:masterfrom
plivesey:master

Conversation

@plivesey
Copy link

  1. Added a podspec for NeuralNet. This should make it much easier for people to install and get started.
  2. Changed the sigmoid function so it doesn't break the compiler. Currently, it throws an error saying the expression is too complex.
  3. Added an initializer which allows you to copy a neural network
  4. When loading from JSON, assume that the numbers are Doubles. Sometimes, these numbers are not Floats so the parsing fails. I haven't really looked into this, but I think it may happen when one of the numbers is very small and so it's parsed into a double instead. This avoids any failures to load a NeuralNetwork from disk.

1. Added a podspec for NeuralNet. This should make it much easier for people to install and get started.
2. Changed the sigmoid function so it doesn't break the compiler. Currently, it throws an error saying the expression is too complex.
3. Added an initializer which allows you to copy a neural network
4. When loading from JSON, assume that the numbers are Doubles. Sometimes, these numbers are not Floats so the parsing fails. I haven't really looked into this, but I think it may happen when one of the numbers is very small and so it's parsed into a double instead. This avoids any failures to load a NeuralNetwork from disk.
Adding training error to the epoch callback. This is useful to know if the neural net is biased or has high variance (e.g. is the neural net overtraining)
@plivesey
Copy link
Author

I realize there's too much in this PR for one commit, but it seems like this library isn't really being maintained anymore. Happy to split this up when you get around to looking at it.

@plivesey
Copy link
Author

Two more changes:
Added biases to the storage (thanks to #6)
Added training error to the epoch callback which is useful to see if you're overfitting the data.

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.

1 participant