<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Yu Zhu on Medium]]></title>
        <description><![CDATA[Stories by Yu Zhu on Medium]]></description>
        <link>https://medium.com/@zoey.yuzhu?source=rss-84460c5d5124------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*oawVUtzeoYg3coRc.jpg</url>
            <title>Stories by Yu Zhu on Medium</title>
            <link>https://medium.com/@zoey.yuzhu?source=rss-84460c5d5124------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 29 May 2026 18:19:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@zoey.yuzhu/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com" rel="hub"/>
        <item>
            <title><![CDATA[Cost function Vs. Loss Function]]></title>
            <link>https://medium.com/@zoey.yuzhu/cost-function-vs-loss-function-1546f4299365?source=rss-84460c5d5124------2</link>
            <guid isPermaLink="false">https://medium.com/p/1546f4299365</guid>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Yu Zhu]]></dc:creator>
            <pubDate>Thu, 30 Jul 2020 21:53:01 GMT</pubDate>
            <atom:updated>2020-07-30T21:53:01.537Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*K-rpWvpV0ZkqDtQN.png" /></figure><p>I have been confused with these two terms for a long time. They are very common words in machine learning and many said they are the same.</p><p>Today, I found a clear answer and they are slightly different. Have a look if you are concerned about it.</p><h3>Loss Function:</h3><p>measures how close the prediction is to the observed output, <strong>in a data point</strong>.</p><h3>Cost Function:</h3><p>the average loss <strong>over the training data</strong>. It is based on the loss function you chose.</p><p>When a model is learned, we are finding the parameter values that minimize the cost:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/414/1*t7z6V85E9mxPLpubcJTAGQ.jpeg" /><figcaption>one formula telling difference</figcaption></figure><p><em>Originally published at </em><a href="https://gist.github.com/f04dee2c6383a7c0d266fa16017aa5e7"><em>http://github.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1546f4299365" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>