Neural-Network-Playground | neural network Swift playground , with no third party | Math library
kandi X-RAY | Neural-Network-Playground Summary
kandi X-RAY | Neural-Network-Playground Summary
This project uses iOS Playgrounds to display a working neural network. No external libraries are used. The matrix and neural network code is written in pure Swift. This playground has only been tested on an 12.9‑inch iPad Pro.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Neural-Network-Playground
Neural-Network-Playground Key Features
Neural-Network-Playground Examples and Code Snippets
Community Discussions
Trending Discussions on Neural-Network-Playground
QUESTION
EDIT: I managed to get together couple of simple examples https://github.com/developer239/neural-network-playground
Could anyone help me with simple neat example teaching the net how to solve XOR or some other similar problem? But using the NEAT technique so that I would not have to specify training data set?
Using javascript: https://github.com/cazala/synaptic or https://github.com/wagenaartje/neataptic
1. Initialize network
2. Generate generation
3. Go through each genome in generation and evaluate its fitness (how good it is)
4. Take 2 best genomes from generation
5. Merge genomes 50 / 50 at random
6. Mutate final genome
7. Generate second generation
This would be extremely helpful. Same teqnique is being used here:
https://github.com/ivanseidel/IAMDinosaur
https://www.youtube.com/watch?v=P7XHzqZjXQs
I went through the source code but there is WAY to much stuff going on. I understand the general idea. However I have no idea how to implement the solution.
Thank you :)
...ANSWER
Answered 2017-Oct-08 at 13:52There is an example on Neataptic's README.md.
QUESTION
EDIT: I managed to get together couple of simple examples https://github.com/developer239/neural-network-playground
I just started playing with neataptic. I wanted to make the neural network to learn how to count using number: 1, 2, 3, 4, 5, 6, 7, 8, 9.
I normalized my inputs to 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9.
Then I wrote really simple training program that would teach the net how to add 1 + 2 (0.1 + 0.3).
...ANSWER
Answered 2017-Oct-08 at 13:50The dataset is too small for the neural network to learn from patterns. You have only provided it with samples that have 0.3
as output. The neural network minimizes its error by always outputting 0.3
, as that is exactly how it was trained. I have created an example with 1000 (dynamically generated) samples, which seems to work:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Neural-Network-Playground
Install the Swift Playgrounds app on your device.
Download or clone this repository.
AirDrop the Neural Network.playground folder from your Mac to your device.
Open the received playground in the Playground application.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page