<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de-AT">
	<id>https://mediawiki.fernfh.ac.at/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Metrics_in_Data_Science</id>
	<title>Metrics in Data Science - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://mediawiki.fernfh.ac.at/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Metrics_in_Data_Science"/>
	<link rel="alternate" type="text/html" href="https://mediawiki.fernfh.ac.at/mediawiki/index.php?title=Metrics_in_Data_Science&amp;action=history"/>
	<updated>2026-05-20T09:48:34Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in FernFH MediaWiki</subtitle>
	<generator>MediaWiki 1.37.0</generator>
	<entry>
		<id>https://mediawiki.fernfh.ac.at/mediawiki/index.php?title=Metrics_in_Data_Science&amp;diff=6553&amp;oldid=prev</id>
		<title>SAFFER Zsolt am 13. März 2025 um 21:14 Uhr</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.fernfh.ac.at/mediawiki/index.php?title=Metrics_in_Data_Science&amp;diff=6553&amp;oldid=prev"/>
		<updated>2025-03-13T21:14:17Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de-AT&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 13. März 2025, 21:14 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l22&quot;&gt;Zeile 22:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 22:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;div id=&amp;quot;fig:exa_conf_matrix&amp;quot; class=&amp;quot;figure&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;div id=&amp;quot;fig:exa_conf_matrix&amp;quot; class=&amp;quot;figure&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;File&lt;/del&gt;:&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;./figs/&lt;/del&gt;EvalMetric_ConfMatrExa.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;pdf&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Datei&lt;/ins&gt;:EvalMetric_ConfMatrExa.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;jpg|460px|thumb|center|Figure 16: An example confusion matrix for a classification model with 3 classes&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l164&quot;&gt;Zeile 164:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 164:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;div id=&amp;quot;fig:ill_ROC_curve&amp;quot; class=&amp;quot;figure&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;div id=&amp;quot;fig:ill_ROC_curve&amp;quot; class=&amp;quot;figure&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;File&lt;/del&gt;:./&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;figs&lt;/del&gt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ROC_curve&lt;/del&gt;.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;pdf&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Datei&lt;/ins&gt;:&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ROC_curve.jpg|460px|thumb|center|Figure 17: Illustrating the determination of probability threshold on ROC curve (Source:\url{https://www&lt;/ins&gt;.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;kdnuggets.com&lt;/ins&gt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;2019&lt;/ins&gt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;10/5-classification-evaluation-metrics-every-data-scientist-must-know&lt;/ins&gt;.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;html}&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>SAFFER Zsolt</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.fernfh.ac.at/mediawiki/index.php?title=Metrics_in_Data_Science&amp;diff=6525&amp;oldid=prev</id>
		<title>SAFFER Zsolt am 11. März 2025 um 22:21 Uhr</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.fernfh.ac.at/mediawiki/index.php?title=Metrics_in_Data_Science&amp;diff=6525&amp;oldid=prev"/>
		<updated>2025-03-11T22:21:17Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de-AT&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 11. März 2025, 22:21 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l230&quot;&gt;Zeile 230:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 230:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The accuracy of the KG, &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mu(\mathcal{G})&amp;lt;/math&amp;gt; can be also based on the correctness of the individual triplets &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;t \in \mathcal{T}&amp;lt;/math&amp;gt;, which can be assigned by human e.g. based on random sampling. Then &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mu(\mathcal{G})&amp;lt;/math&amp;gt; is given by&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The accuracy of the KG, &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mu(\mathcal{G})&amp;lt;/math&amp;gt; can be also based on the correctness of the individual triplets &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;t \in \mathcal{T}&amp;lt;/math&amp;gt;, which can be assigned by human e.g. based on random sampling. Then &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mu(\mathcal{G})&amp;lt;/math&amp;gt; is given by&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\mu(\mathcal{G}) = \frac{1}{|\mathcal{T}|} \sum_{t \in \mathcal{T}} \&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;mathbbm&lt;/del&gt;{1}_{\{t\}},&amp;lt;/math&amp;gt; where &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;mathbbm&lt;/del&gt;{1}_{\{t\}}&amp;lt;/math&amp;gt; is the indicator variable indicating the correctness of the individual triplets &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;t \in \mathcal{T}&amp;lt;/math&amp;gt; by &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;1&amp;lt;/math&amp;gt; otherwise taking the value &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;0&amp;lt;/math&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\mu(\mathcal{G}) = \frac{1}{|\mathcal{T}|} \sum_{t \in \mathcal{T}} \&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;mathbf&lt;/ins&gt;{1}_{\{t\}},&amp;lt;/math&amp;gt; where &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;mathbf&lt;/ins&gt;{1}_{\{t\}}&amp;lt;/math&amp;gt; is the indicator variable indicating the correctness of the individual triplets &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;t \in \mathcal{T}&amp;lt;/math&amp;gt; by &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;1&amp;lt;/math&amp;gt; otherwise taking the value &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;0&amp;lt;/math&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In case of human judging, the usual evaluation metric is accuracy or precision together with the total number of judged triplets and errors found.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In case of human judging, the usual evaluation metric is accuracy or precision together with the total number of judged triplets and errors found.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l270&quot;&gt;Zeile 270:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 270:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Mean reciprocal rank is the average of the reciprocal ranks of the correct entities: &amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;MRR = \frac{1}{|\mathcal{Q}_c|}\sum_{q \in \mathcal{Q}_c} \frac{1}{R(q)},&amp;lt;/math&amp;gt; where &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mathcal{Q}_c&amp;lt;/math&amp;gt; is set of correct entries and &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;R(q)&amp;lt;/math&amp;gt; is the rank of the entry q. Larger the MRR, better the entity prediction and hence also the used KG embedding model.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Mean reciprocal rank is the average of the reciprocal ranks of the correct entities: &amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;MRR = \frac{1}{|\mathcal{Q}_c|}\sum_{q \in \mathcal{Q}_c} \frac{1}{R(q)},&amp;lt;/math&amp;gt; where &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mathcal{Q}_c&amp;lt;/math&amp;gt; is set of correct entries and &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;R(q)&amp;lt;/math&amp;gt; is the rank of the entry q. Larger the MRR, better the entity prediction and hence also the used KG embedding model.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Hits@k is the proportion of the correct entities in the best k predictions: &amp;lt;math display=&amp;quot;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;block&lt;/del&gt;&amp;quot;&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Hits@k &lt;/del&gt;= \frac{|q \in \mathcal{Q}_c|: R(q) &amp;lt; k}{|\mathcal{Q}_c|}&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;.&lt;/del&gt;&amp;lt;/math&amp;gt; Larger the Hits@k better the entity prediction and hence also the used KG embedding model.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Hits@k is the proportion of the correct entities in the best k predictions:&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;br /&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Hits@k&lt;/ins&gt;&amp;lt;math display=&amp;quot;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;inline&lt;/ins&gt;&amp;quot;&amp;gt;= \frac{|q \in \mathcal{Q}_c|: R(q) &amp;lt; k}{|\mathcal{Q}_c|}&amp;lt;/math&amp;gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Larger the Hits@k better the entity prediction and hence also the used KG embedding model.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>SAFFER Zsolt</name></author>
	</entry>
	<entry>
		<id>https://mediawiki.fernfh.ac.at/mediawiki/index.php?title=Metrics_in_Data_Science&amp;diff=6521&amp;oldid=prev</id>
		<title>SAFFER Zsolt: Die Seite wurde neu angelegt: „&lt;span id=&quot;metrics-in-data-science&quot;&gt;&lt;/span&gt; = Metrics in Data Science  =  &lt;span id=&quot;evaluation-metrics-for-classification&quot;&gt;&lt;/span&gt; == Evaluation metrics for classification ==  A classification model is evaluated on the test data. The common metrics used to evaluate the model are listed as  * Accuracy, * Confusion matrix, * Precision and Recall, * Sensitivity and Specificity, * F1Score and weighted F1, * ROC curve and AUC ROC.  Accuracy is the ratio of corr…“</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.fernfh.ac.at/mediawiki/index.php?title=Metrics_in_Data_Science&amp;diff=6521&amp;oldid=prev"/>
		<updated>2025-03-04T23:09:23Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „&amp;lt;span id=&amp;quot;metrics-in-data-science&amp;quot;&amp;gt;&amp;lt;/span&amp;gt; = Metrics in Data Science  =  &amp;lt;span id=&amp;quot;evaluation-metrics-for-classification&amp;quot;&amp;gt;&amp;lt;/span&amp;gt; == Evaluation metrics for classification ==  A classification model is evaluated on the test data. The common metrics used to evaluate the model are listed as  * Accuracy, * Confusion matrix, * Precision and Recall, * Sensitivity and Specificity, * F1Score and weighted F1, * ROC curve and AUC ROC.  Accuracy is the ratio of corr…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;span id=&amp;quot;metrics-in-data-science&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
= Metrics in Data Science  =&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;evaluation-metrics-for-classification&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
== Evaluation metrics for classification ==&lt;br /&gt;
&lt;br /&gt;
A classification model is evaluated on the test data. The common metrics used to evaluate the model are listed as&lt;br /&gt;
&lt;br /&gt;
* Accuracy,&lt;br /&gt;
* Confusion matrix,&lt;br /&gt;
* Precision and Recall,&lt;br /&gt;
* Sensitivity and Specificity,&lt;br /&gt;
* F1Score and weighted F1,&lt;br /&gt;
* ROC curve and AUC ROC.&lt;br /&gt;
&lt;br /&gt;
Accuracy is the ratio of correctly classified examples to the total number of examples in the test set. Defining true examples (TE) and false examples (FE) the number of correctly and incorrectly classified examples in the test set, accuracy can be given as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\mathrm{Accuracy} = \frac{TE}{TE+FE}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The confusion matrix is a metric to visualize the classification performance. The rows of the matrix represent the true classes and the columns shows the predicted classes or vice versa. Both versions are used and can be found in the literature. Here we use the first version. The element (i,j) of the matrix shows the number of test examples belonging to class &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;i&amp;lt;/math&amp;gt; and classified as class &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;j&amp;lt;/math&amp;gt;. Thus besides showing the number of correctly classified examples for each class, the confusion matrix gives an idea of typical missclassifications the model makes. An example confusion matrix can be seen in Figure [[#fig:exa_conf_matrix|16]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;fig:exa_conf_matrix&amp;quot; class=&amp;quot;figure&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:./figs/EvalMetric_ConfMatrExa.pdf]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
The metrics precision and recall, sensitivity and specificity as well as F1Score and weighted F1 were originally introduced for binary classification models, but their usage can be extended to multiclass case. Therefore they will be defined and explained first for binary classification model.&lt;br /&gt;
&lt;br /&gt;
In terms of binary classification with positive and negative classes, the outcome of the classification task can fall in one of four cases: correctly/incorrectly classified examples belonging to positive/negative class. The prediction is true positive (TP) when a positive example is correctly classified, like e.g. presence of a disease. A false negative (FN) prediction occurs when a positive example is classified by the model as would belong to negative class. Similarly a true negative (TN) prediction occurs when a negative example is correctly classified. Finally the prediction is false positive (FP) when a negative example is classified as would belong to positive class. These cases are summarized in Table [[#tab:poss_predictions|8]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;tab:poss_predictions&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Possible cases of the outcome of the classification task (=prediction)&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;text-align: left;&amp;quot;| predicted &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\backslash&amp;lt;/math&amp;gt; true  &lt;br /&gt;
! style=&amp;quot;text-align: center;&amp;quot;|   positive  &lt;br /&gt;
! style=&amp;quot;text-align: center;&amp;quot;|   negative&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: left;&amp;quot;| positive  &lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot;|   &amp;lt;span&amp;gt;true positive (TP)&amp;lt;/span&amp;gt;  &lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot;|   &amp;lt;span&amp;gt;false positive (FP)&amp;lt;/span&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: left;&amp;quot;| negative  &lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot;|   &amp;lt;span&amp;gt;false negative (FN)&amp;lt;/span&amp;gt;  &lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot;|   &amp;lt;span&amp;gt;true negative (TN)&amp;lt;/span&amp;gt; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
For the case of binary classification the definition of Accuracy can be given alternatively as &amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\mathrm{Accuracy} = \frac{TP+TN}{TP+TN+FP+FN}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The terms TP, FN, TN and FP are also used to denote the number of corresponding cases, e.g. TP also denotes the number of true positives.&lt;br /&gt;
&lt;br /&gt;
Precision is the ratio of the correctly classified positive examples to the total number of examples classified as positive:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\mathrm{Precision} = \frac{TP}{TP+FP}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In contrast to that Recall is the ratio of the correctly classified positive examples to the total number of positive examples: &amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\mathrm{Recall} = \frac{TP}{TP+FN}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The measures sensitivity and specificity are also commonly used, especially in the healthcare.&lt;br /&gt;
&lt;br /&gt;
Sensitivity is the True Positive Rate (TPR), i.e. the proportion of captured trues and hence it equals to recall. &amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\mathrm{Sensitivity} = \mathrm{TPR} = \frac{TP}{TP+FN}  = \mathrm{Recall}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Specificity is the proportion of the captured negatives, i.e. True Negative Rate (TNR). &amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\mathrm{Specificity} = \frac{TN}{TN+FP}.&amp;lt;/math&amp;gt; It follows that &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;1-Specificity&amp;lt;/math&amp;gt; is the False Positive Rate (FPR), i.e. proportion of not captured negatives, which is needed to define the ROC curve (see below).&lt;br /&gt;
&lt;br /&gt;
The F1Score is a harmonic mean of precision and recall and therefore it is a number between &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;0&amp;lt;/math&amp;gt; and &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;1&amp;lt;/math&amp;gt;. &amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\mathrm{F1Score} =  F_1  = 2*\frac{Precision*Recall}{Precision+Recall}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;tab:use_metrics&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ The usage of the different metrics.&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;text-align: left;&amp;quot;| Metric  &lt;br /&gt;
! style=&amp;quot;text-align: center;&amp;quot;|   When to use ?  &lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: left;&amp;quot;| Accuracy  &lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot;|   In case of classification problem&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: left;&amp;quot;|  &lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot;|   with balanced classes.  &lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: left;&amp;quot;| Precision  &lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot;|   When it is important to be sure about the&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: left;&amp;quot;|  &lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot;|   positive prediction to avoid any negative&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: left;&amp;quot;|  &lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot;|   consequences, like e.g in case of decrease&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: left;&amp;quot;|  &lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot;|   of credit limit to avoid customer dissatisfaction.&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: left;&amp;quot;| Recall  &lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot;|   When it is important to capture positive even&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: left;&amp;quot;|  &lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot;|   with low probability, like e.g. to predict&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: left;&amp;quot;|  &lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot;|   whether a person has illness or not.&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: left;&amp;quot;| Sensitivity  &lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot;|   If the question of interest is TPR,&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: left;&amp;quot;|  &lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot;|   i.e. the proportion of the captured positives.&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: left;&amp;quot;| Specificity  &lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot;|   If the question of interest is TNR,&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: left;&amp;quot;|  &lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot;|   i.e. the proportion of the captured negatives.&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: left;&amp;quot;| F1Score  &lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot;|   When both Precision and Recall are important.&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: left;&amp;quot;| weighted F1 metric  &lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot;|   When importance of Precision and Recall&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: left;&amp;quot;|  &lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot;|   against each other can be characterized&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: left;&amp;quot;|  &lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot;|   by weights explicitly .&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: left;&amp;quot;| ROC curve  &lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot;|   It is used for determining probability threshold&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: left;&amp;quot;|  &lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot;|   for deciding the output class of the task,&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: left;&amp;quot;|  &lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot;|   see Figure x.&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: left;&amp;quot;| AUC ROC  &lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot;|   It is used to determine how well the positive class&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: left;&amp;quot;|  &lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot;|   is separated from the negative class.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
The weighted F1 metric is a refined version of F1Score, in which Precision and Recall can have different weights. &amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\mathrm{ weighted F1} = F_{\beta} = (1+ \beta^2)*\frac{Precision*Recall}{\beta^2 *Precision+Recall},&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where Recall has weight &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;1&amp;lt;/math&amp;gt; and &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\beta^2&amp;lt;/math&amp;gt; is the weight of Precision.&lt;br /&gt;
&lt;br /&gt;
In a multi-class setting the metrics precision and recall, sensitivity and specificity as well as F1Score and weighted F1 metric are calculated first for each class individually and then averaged. This way they quantify the overall classification performance.&lt;br /&gt;
&lt;br /&gt;
The metrics ROC curve and AUC ROC are defined for binary classification task. The Receiver Operating Characteristic (ROC) curve is the True Positive Rate (=Sensitivity) as a function of the False Positive Rate (= &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;1-Specificity&amp;lt;/math&amp;gt;). The Area Under Curve ROC is called AUC ROC. It indicates how well the positive class is separated from the negative class.&lt;br /&gt;
&lt;br /&gt;
The usage of the different metrics are summarized in the Table [[#tab:use_metrics|9]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;fig:ill_ROC_curve&amp;quot; class=&amp;quot;figure&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:./figs/ROC_curve.pdf]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
Depending on the use case strict, optimal or lenient (= moderate or high) probability threshold can be selected on the ROC curve. This is illustrated in Figure [[#fig:ill_ROC_curve|17]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;evaluation-metrics-for-regression&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
== Evaluation metrics for regression ==&lt;br /&gt;
&lt;br /&gt;
The common metrics used for evaluating regression models are are listed here.&lt;br /&gt;
&lt;br /&gt;
* Mean Squared Error (MSE),&lt;br /&gt;
* Root Mean Squared Error (RMSE)&lt;br /&gt;
* Mean Absolute Error (MAE),&lt;br /&gt;
* Mean Absolute Percentage Error (MAPE),&lt;br /&gt;
* Coefficient of Determination (COD), R-squared (&amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;R^2&amp;lt;/math&amp;gt;),&lt;br /&gt;
* modified R-squared,&lt;br /&gt;
&lt;br /&gt;
The Mean Squared Error (MSE) is one of the basic statistic used to evaluate the quality of a regression model. It is the average of the squares of the difference between the real and predicted values, in other words:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\mathrm{MSE} = \frac{1}{K} \sum_{k} (\hat{y}_k -  y_k)^2.&amp;lt;/math&amp;gt; Less the MSE, better the regression model fits the real values.&lt;br /&gt;
&lt;br /&gt;
A similar measure is the Root Mean Squared Error (RMSE), which is the square root of MSE and thus it is biven as &amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\mathrm{RMSE} = \sqrt{\frac{1}{K} \sum_{k} (\hat{y}_k -  y_k)^2}.&amp;lt;/math&amp;gt; RMSE is a measure in the same units as the considered variable, which makes it a commonly used measure.&lt;br /&gt;
&lt;br /&gt;
The Mean Absolute Error (MAE) is the average absolute difference between the real and predicted values. &amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\mathrm{MAE} = \frac{1}{K}\sum_{k}|y_k - \hat{y}_k|&amp;lt;/math&amp;gt; A nice property of MAE, that it is less likely influenced by extreme values. It is a common measure used in time series analysis as forecast error.&lt;br /&gt;
&lt;br /&gt;
The mean absolute percentage error (MAPE) quantifies the average of the ratio of the average absolute difference between the real and predicted values to the real value as a percentage. Hence the formula of MAPE can be given as &amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\mathrm{MAPE} = 100 \frac{1}{K}\sum_{k}|\frac{y_k - \hat{y}_k}{y_k}|&amp;lt;/math&amp;gt; MAPE is is commonly used for evaluating regression models and it is an appropriate metric where the scale of the considered value varies in a broad range. Intuitively it can be interpreted as a kind of relative error. This makes it also suitable to be used as a loss function as an objective in the optimization in regression problems.&lt;br /&gt;
&lt;br /&gt;
The metric Coefficient of Determination (COD) is also referred as R-squared and it is denoted by &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;R^2&amp;lt;/math&amp;gt; or &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;r^2&amp;lt;/math&amp;gt; and pronounced as &amp;amp;quot;R-squared&amp;amp;quot;. The coefficient of determination determines the predictable proportion of the variation in the dependent variable, &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;{\bf y}&amp;lt;/math&amp;gt;. Let &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\bar{y}&amp;lt;/math&amp;gt; denote the mean of the output values, in other words &amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\bar{y} = \frac{1}{K} \sum_{k} y_k).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The coefficient of determination is defined in terms of residual sum of squares, &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;SS_{\mathrm{res}}&amp;lt;/math&amp;gt; and total sum of squares (related to the variance of &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;{\bf y}&amp;lt;/math&amp;gt;), &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;SS_{\mathrm{tot}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\begin{aligned}&lt;br /&gt;
    SS_{\mathrm{res}} &amp;amp;= \sum_{k} ( y_k - \hat{y}_k)^2, \\&lt;br /&gt;
    SS_{\mathrm{tot}} &amp;amp;= \sum_{k} ( y_k - \bar{y}_k)^2&lt;br /&gt;
\end{aligned}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;R^2 = 1 -\frac{SS_{\mathrm{res}}}{SS_{\mathrm{tot}}}.&amp;lt;/math&amp;gt; &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;R^2&amp;lt;/math&amp;gt; as metric quantifies the predictable proportion of the variation in the dependent variable. Its value falls between 0 and 1 with greater values indicating better regression fit.&lt;br /&gt;
&lt;br /&gt;
The metric modified (or adjusted) R-squared is introduced to compensate that &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;R^2&amp;lt;/math&amp;gt; increases when the dimension &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;{bf y}&amp;lt;/math&amp;gt; becomes higher. Denoting the dimension of &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;{bf y}&amp;lt;/math&amp;gt; by &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;N&amp;lt;/math&amp;gt;, the modified R-squared, &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\bar{R}^2&amp;lt;/math&amp;gt; is defined as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\bar{R}^2 = 1 -\frac{SS_{\mathrm{res}}}{SS_{\mathrm{tot}}}\frac{K-1}{K-N-1} = 1 -(1-R^2)\frac{K-1}{K-N-1}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;evaluation-metrics-for-kg&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
== Evaluation metricS for KG ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;quality-of-kg&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=== Quality of KG ===&lt;br /&gt;
&lt;br /&gt;
The two most important quality measures of a KG are&lt;br /&gt;
&lt;br /&gt;
* completeness and&lt;br /&gt;
* accuracy.&lt;br /&gt;
&lt;br /&gt;
The completeness refers to evaluate the amount of existing triplets in the KG, while accuracy targets to measure the amounts of correct and incorrect triplets in the KG. After KG completion the resulted extraction graph is considered to be not yet a ready KG. Therefore quality measurement of KG is relevant only after KG refinement.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;evaluation-metric-for-kg-refinement&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=== Evaluation metric for KG refinement ===&lt;br /&gt;
&lt;br /&gt;
Usually completeness is measured in recall, precision and F-measure.&lt;br /&gt;
&lt;br /&gt;
The accuracy of the KG, i.e. the amounts of correct and incorrect triplets is evaluated in terms of accuracy and alternatively, or in addition by means of AUC (i.e. the area under the ROC curve).&lt;br /&gt;
&lt;br /&gt;
The accuracy of the KG, &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mu(\mathcal{G})&amp;lt;/math&amp;gt; can be also based on the correctness of the individual triplets &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;t \in \mathcal{T}&amp;lt;/math&amp;gt;, which can be assigned by human e.g. based on random sampling. Then &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mu(\mathcal{G})&amp;lt;/math&amp;gt; is given by&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\mu(\mathcal{G}) = \frac{1}{|\mathcal{T}|} \sum_{t \in \mathcal{T}} \mathbbm{1}_{\{t\}},&amp;lt;/math&amp;gt; where &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mathbbm{1}_{\{t\}}&amp;lt;/math&amp;gt; is the indicator variable indicating the correctness of the individual triplets &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;t \in \mathcal{T}&amp;lt;/math&amp;gt; by &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;1&amp;lt;/math&amp;gt; otherwise taking the value &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In case of human judging, the usual evaluation metric is accuracy or precision together with the total number of judged triplets and errors found.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;evaluation-metric-for-link-prediction-with-kg-embeddings&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=== Evaluation metric for link prediction with KG embeddings ===&lt;br /&gt;
&lt;br /&gt;
The used evaluation metric for link prediction with KG embeddings depends on the subtask of link prediction, see in Table [[#tab:Eval_metr_subt_LP|10]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;tab:Eval_metr_subt_LP&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Evaluation metric for subtasks of link prediction&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;text-align: left;&amp;quot;| &amp;lt;span&amp;gt;&amp;#039;&amp;#039;&amp;#039;Subtask&amp;#039;&amp;#039;&amp;#039;&amp;lt;/span&amp;gt;  &lt;br /&gt;
! style=&amp;quot;text-align: center;&amp;quot;|  &amp;lt;span&amp;gt;&amp;#039;&amp;#039;&amp;#039;Evaluation metrics&amp;#039;&amp;#039;&amp;#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: left;&amp;quot;| Entity prediction  &lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot;|   rank based measures&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: left;&amp;quot;| Entity type prediction  &lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot;|   Macro-&amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;F_1&amp;lt;/math&amp;gt; and Micro-&amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;F_1&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: left;&amp;quot;| Triple classification  &lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot;|   accuracy&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
The rank based evaluation metrics for entity prediction include&lt;br /&gt;
&lt;br /&gt;
* Mean Reciprocal Rank (MRR) and&lt;br /&gt;
* Hits@K.&lt;br /&gt;
&lt;br /&gt;
Mean reciprocal rank is the average of the reciprocal ranks of the correct entities: &amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;MRR = \frac{1}{|\mathcal{Q}_c|}\sum_{q \in \mathcal{Q}_c} \frac{1}{R(q)},&amp;lt;/math&amp;gt; where &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mathcal{Q}_c&amp;lt;/math&amp;gt; is set of correct entries and &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;R(q)&amp;lt;/math&amp;gt; is the rank of the entry q. Larger the MRR, better the entity prediction and hence also the used KG embedding model.&lt;br /&gt;
&lt;br /&gt;
Hits@k is the proportion of the correct entities in the best k predictions: &amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;Hits@k = \frac{|q \in \mathcal{Q}_c|: R(q) &amp;lt; k}{|\mathcal{Q}_c|}.&amp;lt;/math&amp;gt; Larger the Hits@k better the entity prediction and hence also the used KG embedding model.&lt;/div&gt;</summary>
		<author><name>SAFFER Zsolt</name></author>
	</entry>
</feed>