Neural Network
A neural network is a machine learning model loosely inspired by the brain. It is made of layers of connected 'neurons' that pass numbers forward, multiplying them by adjustable weights to produce a prediction.
Data & AI
Each connection has a weight, and each neuron combines its inputs and passes the result through an activation function. During training, the network compares its output to the correct answer and nudges the weights to reduce the error — repeating this millions of times.
A simple network has an input layer, one or more hidden layers, and an output layer. When it has many hidden layers, we call it a deep neural network, the foundation of deep learning.
Examples
Python
import numpy as np
# One neuron: weighted sum + activation
inputs = np.array([0.5, 0.9])
weights = np.array([0.4, 0.2])
bias = 0.1
output = max(0, inputs @ weights + bias) # ReLU
print(round(output, 2))Output:
0.48