<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Künstliche Intelligenz I (CS188) on Johannes Karl Arnold</title><link>https://johannes.arnold.onl/page/notes/ai/</link><description>Recent content in Künstliche Intelligenz I (CS188) on Johannes Karl Arnold</description><generator>Hugo</generator><language>en-US</language><copyright>&amp;copy; Johannes Arnold.</copyright><lastBuildDate>Tue, 22 Jul 2025 08:47:49 +0200</lastBuildDate><atom:link href="https://johannes.arnold.onl/page/notes/ai/index.xml" rel="self" type="application/rss+xml"/><item><title>(Passive) Reinforcement Learning</title><link>https://johannes.arnold.onl/page/notes/ai/rl/</link><pubDate>Wed, 05 Jul 2023 00:00:00 +0000</pubDate><guid>https://johannes.arnold.onl/page/notes/ai/rl/</guid><description>&lt;p&gt;Similar to a &lt;a href="https://johannes.arnold.onl/page/notes/ai/mdp/"&gt;Markov Decision Problem&lt;/a&gt; with states \(s \in S\) and actions \(a \in A\), with \(T(s, a, s^\prime)\) and \(R(s, a, s^\prime)\) &lt;strong&gt;being unknown!&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;States and actions must be tried out&lt;/li&gt;
&lt;/ul&gt;
&lt;h1 id="passive-reinforcement-learning" class="relative group"&gt;Passive Reinforcement Learning &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100"&gt;&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#passive-reinforcement-learning" aria-label="Anchor"&gt;#&lt;/a&gt;&lt;/span&gt;&lt;/h1&gt;&lt;p&gt;The agent learns from its experiences.&lt;/p&gt;
&lt;h2 id="model-based" class="relative group"&gt;Model-Based &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100"&gt;&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#model-based" aria-label="Anchor"&gt;#&lt;/a&gt;&lt;/span&gt;&lt;/h2&gt;&lt;h3 id="step-1-learn-empirical-mdp-model" class="relative group"&gt;Step 1: Learn empirical MDP model &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100"&gt;&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#step-1-learn-empirical-mdp-model" aria-label="Anchor"&gt;#&lt;/a&gt;&lt;/span&gt;&lt;/h3&gt;&lt;ul&gt;
&lt;li&gt;Count outcomes \(s^\prime\) for each \(s, a\)&lt;/li&gt;
&lt;li&gt;Normalize to give an estimate \(\hat{T}(s, a, s^\prime)\)&lt;/li&gt;
&lt;li&gt;Discover each \(\hat{R}(s, a, s^\prime)\) when we experience \((s, a, s^\prime)\)&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="step-2-solve-the-learned-mdp" class="relative group"&gt;Step 2: Solve the learned MDP &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100"&gt;&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#step-2-solve-the-learned-mdp" aria-label="Anchor"&gt;#&lt;/a&gt;&lt;/span&gt;&lt;/h3&gt;&lt;p&gt;Use value iteration as with normal MDPs. Repeat steps one and two as needed.&lt;/p&gt;</description></item><item><title>Markov Decision Problems</title><link>https://johannes.arnold.onl/page/notes/ai/mdp/</link><pubDate>Wed, 21 Jun 2023 00:00:00 +0000</pubDate><guid>https://johannes.arnold.onl/page/notes/ai/mdp/</guid><description>&lt;p&gt;Markov Decision Processes consist of:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Set of states \(s_n \in S\)&lt;/li&gt;
&lt;li&gt;Start state \(s_0\)&lt;/li&gt;
&lt;li&gt;Set of actions \(a_n \in A\)&lt;/li&gt;
&lt;li&gt;Transition functions \(T(s,a,s^\prime)\)
&lt;ul&gt;
&lt;li&gt;Gives the probability of transitioning from state \(s\) to \(s^\prime\) when taking action \(a\)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Reward functions \(R(s,a,s^\prime)\)
&lt;ul&gt;
&lt;li&gt;Typically, a positive value is &amp;ldquo;good,&amp;rdquo; a negativ is &amp;ldquo;punishment&amp;rdquo;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Discount factor \(\gamma\)
&lt;ul&gt;
&lt;li&gt;Coefficient that determines how strongly the next iteration is influenced by the previous&lt;/li&gt;
&lt;li&gt;Helps the algorithms converge&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;MDP quantities are&lt;/p&gt;</description></item><item><title>Search</title><link>https://johannes.arnold.onl/page/notes/ai/search/</link><pubDate>Thu, 27 Apr 2023 00:00:00 +0000</pubDate><guid>https://johannes.arnold.onl/page/notes/ai/search/</guid><description>&lt;h2 id="heuristics-of-aast" class="relative group"&gt;Heuristics of \(A^\ast\) &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100"&gt;&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#heuristics-of-aast" aria-label="Anchor"&gt;#&lt;/a&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p&gt;&lt;strong&gt;Admissability:&lt;/strong&gt; heuristic cost is less than or equal to the actual cost to the goal.&lt;/p&gt;
&lt;p&gt;\begin{equation}
h(A) \leq \text{actual cost from A to G}
\end{equation}&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Consistency:&lt;/strong&gt; heuristic &amp;ldquo;arc&amp;rdquo; cost is less than or equal to the actual cost of each arc.&lt;/p&gt;
&lt;p&gt;\begin{equation}
h(A) - h(C) \leq \text{cost}&lt;del&gt;A&lt;/del&gt;\text{to}~C
\end{equation}&lt;/p&gt;
&lt;h2 id="alpha--beta-pruning" class="relative group"&gt;\(\alpha / \beta\) Pruning &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100"&gt;&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#alpha--beta-pruning" aria-label="Anchor"&gt;#&lt;/a&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p&gt;An extension of the Minimax algorithm. It is a &lt;strong&gt;depth-first-search&lt;/strong&gt; which saves time and space by &amp;ldquo;pruning&amp;rdquo; branches where there already are established minimums or maximums.&lt;/p&gt;</description></item></channel></rss>