← 返回 meta 的题目列表Neural Network Implementation
类型:online_judge
Implement a simple neural network capable of performing forward propagation. Assume the input layer has 4 neurons, the hidden layer has 3 neurons, and the output layer has 2 neurons. You need to define the network's architecture and parameters, and implement the forward propagation function, assuming ReLU as the activation function. Provide test cases.
Example
Input
1 2 3 4
0.2 0.4 0.6 0.8
0.1 0.3 0.5 0.7
0.9 0.11 0.13 0.17
0.1 0.1 0.1
0.3 0.3 0.3
0.2 0.2 0.2