Neural-Network-with-Python | neural network with 3 layers | Machine Learning library
kandi X-RAY | Neural-Network-with-Python Summary
kandi X-RAY | Neural-Network-with-Python Summary
A neural network with 3 layers made with just numpy as dependency
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Train the neural network .
- Initializes the initial weights .
- Forward the forward pass through the network .
- Sigmoid function .
- Derivative of the sigmoid derivative .
Neural-Network-with-Python Key Features
Neural-Network-with-Python Examples and Code Snippets
Community Discussions
Trending Discussions on Neural-Network-with-Python
QUESTION
I'm trying to understand how a simple forward neural network works... starting off with the example here I have simplified it to make a trainer that generally gives a 100% accurate "AND" neuron:
...ANSWER
Answered 2018-Jul-26 at 05:02The result you see in your print
statements are after the softmax
operation.
[1 1] . [-.70 .77; -.64 .81] + [1.9 -0.62] = [.53 .96]
Then
exp(.53) = 1.69, exp(.96) = 2.62
so result is
[1.69/(1.69+2.62) 2.62/(1.69+2.62)] = [.39 .61]
(obviously with rounding errors)
Also note that before taking the softmax technically you have a relu
activation, but since that is the identity for positive numbers, it doesn't have an effect for the [1 1]
example. It would make a difference for the [1 0]
example, as the second component of your Wx + b
is negative, which would then be zeroed out.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Neural-Network-with-Python
You can use Neural-Network-with-Python like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
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