Skip to content

weight

A weight is a learned scalar or tensor parameter that modulates the contribution of an input or intermediate signal through a linear or affine transformation, determining how strongly it influences the model’s output.

In neural networks, weights connect units within and across layers and are updated during training by gradient-based optimization.

They’re typically initialized from specific distributions and may be regularized with techniques like weight decay. They can be shared across positions as in convolutions or attention projections.

In practice, weights also refers collectively to a trained model’s full set of learned parameters. That artifact is what gets released, downloaded, quantized, and fine-tuned, as in an open-weights model.

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

Tutorial

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

In this step-by-step tutorial, 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 ai data-science machine-learning

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


By Leodanis Pozo Ramos • Updated Aug. 25, 2026