Zubnet AIसीखेंWiki › Regression
मूल सिद्धांत

Regression

Linear Regression, Prediction
एक machine learning task जो एक category के बजाय एक continuous numerical value predict करती है। “कल temperature क्या होगा?” (regression: एक number predict करना) vs. “क्या कल बारिश होगी?” (classification: एक category predict करना)। Linear regression एक straight line fit करती है; neural network regression inputs और outputs के बीच arbitrary non-linear relationships सीख सकती है।

यह क्यों matter करता है

Regression दो fundamental ML tasks में से एक है (दूसरी classification) और stock price prediction से लेकर real estate valuation से लेकर scientific modeling तक हर चीज़ के नीचे है। ये machine learning समझने के लिए सबसे simple entry point भी है — data points को एक line fit करना कुछ ऐसा है जिसे अधिकांश लोग visualize कर सकते हैं, और linear regression से neural networks तक का jump conceptually small है।

Deep Dive

Linear regression: y = w1·x1 + w2·x2 + ... + bias. Find the weights that minimize the difference between predicted and actual values (usually mean squared error). This is the simplest ML model and is still widely used when relationships are roughly linear. Logistic regression (despite the name) is actually classification — it predicts probabilities of categories by applying a sigmoid function to the linear output.

Neural Network Regression

Replace the linear function with a neural network and you can learn arbitrarily complex relationships. The output layer has a single neuron with no activation function (or a linear activation), and the loss function is typically mean squared error or mean absolute error. This is used for: predicting prices, estimating time-to-completion, forecasting demand, and any task where the output is a number rather than a label.

Regression in LLMs

Interestingly, LLMs can perform regression through text: "Given these house features, predict the price" can be handled by prompting an LLM. Research shows LLMs perform surprisingly well on simple regression tasks, though they're less reliable than dedicated regression models for precision-critical applications. Where LLMs shine is when the regression requires understanding unstructured context: "Given this product review, predict the star rating" combines text understanding with numerical prediction.

संबंधित अवधारणाएँ

← सभी Terms
← Red Teaming Reinforcement सीखेंing →