Description Usage Arguments Value See Also Examples
A single layer perceptron
1 | simplePerc(X, yt, act.fn = "step", niter = 20, lrate = 0.6)
|
X |
Data frame with numeric columns |
yt |
Training labels (numeric) |
act.fn |
Activation function. Accepts "step","relu", "sigmoid", "tanh" and "gauss". Step is the default value. |
niter |
Number of iterations. Default is 20 |
lrate |
Learning rate. Default is 0.6 |
A list of errors at each iteration in classification
Sonar Sonar data set
1 | err = simplePerc(X,yt,"step",30,0.4)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.