On a set of data, a neural network is trained. This data is compiled as the network's "weights," and…