-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSoftMax.java
More file actions
35 lines (33 loc) · 752 Bytes
/
SoftMax.java
File metadata and controls
35 lines (33 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
By Brendan C. Reidy
Created 12/10/2019
Last Modified 12/10/2019
SoftMax activation function (under construction).
*/
public class SoftMax implements ActivationFunction{
String name = "SoftMax";
float currentHighest;
int highestIndex;
public float inverseSigmoidDerivative(float y)
{
return y*(1-y);
} // Ignore lol
public float[] activate(float[] aLayer)
{
//TODO: Implement softmax
return aLayer;
}
public float[] activationError(float[] aLayer)
{
// TODO Implement softmax derivative
return aLayer;
}
public String getName()
{
return this.name;
}
public String toString()
{
return this.name;
}
}