Skip to content

neural network

A neural network is a computational model composed of layered, interconnected units (neurons) that learn input-to-output mappings by adjusting weighted connections and applying nonlinear activation functions.

Training typically consists of a forward pass that produces predictions and a loss/objective, followed by gradient-based optimization: gradients are computed via backpropagation (automatic differentiation using the chain rule) and used to update parameters.

Architectures vary by data and task, including the following:

Despite the biological inspiration, modern neural networks are mathematically defined, differentiable function approximators whose parameters (weights and biases) are learned from data by minimizing a loss under supervised, self-supervised, unsupervised, or reinforcement learning setups.

Python AI: How to Build a Neural Network & Make Predictions

Course

Building a Neural Network & Making Predictions With Python AI

In this step-by-step course, you'll build a neural network from scratch as an introduction to the world of artificial intelligence (AI) in Python. You'll learn how to train your neural network and make accurate predictions based on a given dataset.

intermediate data-science machine-learning

For additional information on related topics, take a look at the following resources:


By Leodanis Pozo Ramos • Updated July 29, 2026