kandi X-RAY | bpnn Summary
kandi X-RAY | bpnn Summary
bpnn
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Example example function
- Updates the layer weights
- Calculate the activation layer
- Train the model
- Save weights to file
- Get weights for each unit
- Calculate the error for a set of points
- Run test
- Get the weighted weight
- D sigmoid function
- Load weights from file
- Set weights for each unit
- Set weight
- Calculate sigmoid
- Return the sigmoid of x x
bpnn Key Features
bpnn Examples and Code Snippets
Community Discussions
Trending Discussions on bpnn
QUESTION
I am given a dataset where the class labels are continuous values between [-1,1]
. Based on this, I have few questions:
- Can I use Back-Propagation Neural Network (BPNN) for this problem? Previously, I had a different dataset where the labels are binary classes but for this dataset I am not sure since it is now a regression problem.
- In case neural network can work with this dataset, what activation function should I use?
Sigmoid
, hyperbolic tan function (tanh
), or rectified linear unit (relu
)?
Thank you.
...ANSWER
Answered 2017-Oct-23 at 06:36Basically yes, Backpropagation works fine for both classification and regression problems.
At the output layer you should use tanh, as it matches the range of your output ([-1, 1]), but for hidden layers you should use ReLU or similar. Do not use sigmoid or tanh for hidden layers (only in recurrent networks) as they will produce the vanishing gradient problem
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install bpnn
You can use bpnn 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