Back to Browse

Visualizing Linear Regression Loss Function || Hindi || Lesson 10 || Machine Learning ||

3 views
Apr 24, 2026
5:21

In this video we visualize linear regression loss function and understand equations in hindi 0:00 - what we do in this video combing previous math to linear regression 0:41 - deep understanding on mean squared error loss function 1:44 - understanding unknown variables in mse loss function 2:34 - mathematical optimization problem notation for mse 3:12 - subscribe 3:42 - graphical intuition of loss function 4:21 - minimum loss point and relating to gradient descent नमस्ते सबको, and welcome back. आज के वीडियो और अगले वीडियो में, हम एक pivotal milestone पर पहुँच रहे हैं: हम उन सभी mathematical foundations को कम्बाइन करने जा रहे हैं जो हमने पिछले sessions में कवर किए हैं। आज हमारा मेन फोकस Mean Squared Error (MSE) loss function पर deep dive करना है। और इससे भी ज़रूरी बात, हम loss functions के बिहेवियर को समझने के लिए एक graphical intuition डेवलप करेंगे। Neural networks को डिज़ाइन और डीबग करने के लिए इस visual perspective को मास्टर करना एक absolute game-changer साबित होगा। आप एंड तक ज़रूर बने रहें, क्योंकि हम pure math और practical AI के बीच के डॉट्स को कनेक्ट करेंगे। Let’s dive in. चलिए, loss function के mathematical exploration की शुरुआत करते हैं, सबसे पहले हमारी predicted value को define करके, जिसे ŷ (y-hat) के रूप में दर्शाया जाता है। Basic algebra में, एक linear relationship को आमतौर पर ŷ = mx + c के रूप में represent किया जाता है, जहाँ m slope को और c intercept को दर्शाता है। लेकिन, machine learning और deep learning के context में, multi-dimensional models के साथ consistent रहने के लिए हम एक ज़्यादा standardized notation अपनाते हैं। खासकर, हम slope को w₁ और intercept को w₀ के रूप में represent करते हैं। नतीजतन, हमारी prediction equation, ŷ = w₁x + w₀ बन जाती है। इस foundation के साथ, अब हम Mean Squared Error (MSE) equation के expanded form को देख सकते हैं। Stay focused रहिए क्योंकि हम इस equation के mechanics में deep जाने वाले हैं। चलिए देखते हैं हमारे पास क्या है: हमारा dataset और हमारा loss function। इस equation में, n data points की संख्या को दर्शाता है, जो हमारे केस में 5 है। हमें x (bill amount) और y (tip amount) की values पहले से ही पता हैं, क्योंकि ये सीधे हमारे data से आती हैं। असली challenge w₁ और w₀ के साथ है—यही हमारे unknowns हैं। Machine learning का पूरा goal w₁ और w₀ के लिए ऐसी accurate values ढूंढना है जो हमारी predictions में error को minimize कर सकें। अब, चलिए जो कुछ भी हमने सीखा है उसे एक formal mathematical optimization problem में ट्रांसलेट करते हैं। यह machine learning की standard language है। हम अपने गोल को इस तरह लिखते हैं: argmin_{w₁, w₀} Loss। जब भी आप 'argmin' देखें, तो याद रखें कि यह पूछने का बस एक प्रोफेशनल तरीका है: 'Loss को जितना हो सके उतना कम करने के लिए w₁ और w₀ की बेस्ट वैल्यूज़ क्या हैं?' इसे सॉल्व करके, हम वो 'sweet spot' ढूंढ लेते हैं जहाँ हमारा मॉडल सबसे accurate predictions देता है। चलिए, हमारे loss function को थोड़ा और गहराई से देखते हैं। जैसा कि हमने पहले देखा, यह दो unknown parameters पर निर्भर करता है: w1 और w0। इन variables और loss के बीच का संबंध visualize करने के लिए, हम पूरे function को एक three-dimensional coordinate system पर project करते हैं। ग्राफ को ध्यान से देखिए: यहाँ X-axis w1 को, Y-axis w0 को, और Z-axis 'Loss' को दर्शाता है। एक बार हमारे ग्राफ को देखिए। हमारे ग्राफ पर यह खास पॉइंट 'minimum loss point' को दर्शाता है, जहाँ loss अपनी सबसे कम यानी lowest possible value पर पहुँच जाता है। इस पॉइंट को पहचानने के लिए, आमतौर पर हमारे पास दो रास्ते हैं: direct mathematical calculation या Gradient Descent algorithm। जबकि साधारण equations को analytically सॉल्व किया जा सकता है, complex equations के लिए Gradient Descent जैसे iterative approach की ज़रूरत होती है। अपनी पुरानी सीख को याद करें तो, क्योंकि हम यहाँ w1 और w0 जैसे दो unknown parameters के साथ काम कर रहे हैं, इसलिए हमें partial differentiation का उपयोग करना होगा। हमारा उद्देश्य यह पता लगाना है कि किन w1 और w0 के लिए loss मिनिमम होगा। हमारे अगले सेशन में, हम इस minimum loss को कैलकुलेट करने के लिए ज़रूरी final formulas को derive करेंगे और अपनी इस mathematical journey को पूरा करेंगे। visit our learning agent for quizzes and projects www.wisdomers.in

Download

0 formats

No download links available.

Visualizing Linear Regression Loss Function || Hindi || Lesson 10 || Machine Learning || | NatokHD