static void Main(string[] args) { // Inputs double[][] X = { new double[] { 1, 2, 3, 2.5 }, new double[] { 2, 5, -1, 2 }, new double[] { -1.5, 2.7, 3.3, -0.8 } }; // Defining Two Dense Layers Layer_Dense layer1 = new Layer_Dense(4, 5); // Passing Input Data Through the Layers layer1.Forward(X); // Initiation Activation Function Class Activation_ReLU activation = new Activation_ReLU(); // Passing Layer 1 Ouput as input to Activation Function double[][] activation_output = activation.Forward(layer1.output); // Displaying Activation Function Output as Matrix in Console DisplayOutput(layer2.output); Console.Read(); }
static void Main(string[] args) { // Inputs double[][] X = { new double[] { 1, 2, 3, 2.5 }, new double[] { 2, 5, -1, 2 }, new double[] { -1.5, 2.7, 3.3, -0.8 } }; // Defining Two Dense Layers Layer_Dense layer1 = new Layer_Dense(4, 5); Layer_Dense layer2 = new Layer_Dense(5, 2); // Passing Input Data Through the Layers layer1.Forward(X); layer2.Forward(layer1.output); // Passing Layer 1 Output as Input to Layer 2 // Displaying Jagged Array as Matrix in Console DisplayOutput(layer2.output); Console.Read(); }