You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/cfr/kuhn/index.html
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -72,10 +72,10 @@
72
72
<h1><ahref="../index.html">Counterfactual Regret Minimization (CFR)</a> on Kuhn Poker</h1>
73
73
<p>This applies <ahref="../index.html">Counterfactual Regret Minimization (CFR)</a> to Kuhn poker.</p>
74
74
<p><ahref="https://en.wikipedia.org/wiki/Kuhn_poker">Kuhn Poker</a> is a two player 3-card betting game. The players are dealt one card each out of Ace, King and Queen (no suits). There are only three cards in the pack so one card is left out. Ace beats King and Queen and King beats Queen - just like in normal ranking of cards.</p>
75
-
<p>Both players ante <spanclass="katex"><spanaria-hidden="true" class="katex-html"><spanclass="base"><spanclass="strut" style="height:0.64444em;vertical-align:0em;"></span><spanclass="mord coloredeq eqf" style=""><spanclass="mord" style="">1</span></span></span></span></span> chip (blindly bet <spanclass="katex"><spanaria-hidden="true" class="katex-html"><spanclass="base"><spanclass="strut" style="height:0.64444em;vertical-align:0em;"></span><spanclass="mord coloredeq eqf" style=""><spanclass="mord" style="">1</span></span></span></span></span> chip). After looking at the cards, the first player can either pass or bet <spanclass="katex"><spanaria-hidden="true" class="katex-html"><spanclass="base"><spanclass="strut" style="height:0.64444em;vertical-align:0em;"></span><spanclass="mord coloredeq eqf" style=""><spanclass="mord" style="">1</span></span></span></span></span> chip. If first player passes, the the player with higher card wins the pot. If first player bets, the second play can bet (i.e. call) <spanclass="katex"><spanaria-hidden="true" class="katex-html"><spanclass="base"><spanclass="strut" style="height:0.64444em;vertical-align:0em;"></span><spanclass="mord coloredeq eqf" style=""><spanclass="mord" style="">1</span></span></span></span></span> chip or pass (i.e. fold). If the second player bets and the player with the higher card wins the pot. If the second player passes (i.e. folds) the first player gets the pot. This game is played repeatedly and a good strategy will optimize for the long term utility (or winnings).</p>
75
+
<p>Both players ante <spanclass="katex"><spanaria-hidden="true" class="katex-html"><spanclass="base"><spanclass="strut" style="height:0.64444em;vertical-align:0em;"></span><spanclass="mord coloredeq eqg" style=""><spanclass="mord" style="">1</span></span></span></span></span> chip (blindly bet <spanclass="katex"><spanaria-hidden="true" class="katex-html"><spanclass="base"><spanclass="strut" style="height:0.64444em;vertical-align:0em;"></span><spanclass="mord coloredeq eqg" style=""><spanclass="mord" style="">1</span></span></span></span></span> chip). After looking at the cards, the first player can either pass or bet <spanclass="katex"><spanaria-hidden="true" class="katex-html"><spanclass="base"><spanclass="strut" style="height:0.64444em;vertical-align:0em;"></span><spanclass="mord coloredeq eqg" style=""><spanclass="mord" style="">1</span></span></span></span></span> chip. If first player passes, the the player with higher card wins the pot. If first player bets, the second play can bet (i.e. call) <spanclass="katex"><spanaria-hidden="true" class="katex-html"><spanclass="base"><spanclass="strut" style="height:0.64444em;vertical-align:0em;"></span><spanclass="mord coloredeq eqg" style=""><spanclass="mord" style="">1</span></span></span></span></span> chip or pass (i.e. fold). If the second player bets and the player with the higher card wins the pot. If the second player passes (i.e. folds) the first player gets the pot. This game is played repeatedly and a good strategy will optimize for the long term utility (or winnings).</p>
- Player 1 gets K. Player 2 gets A. Player 1 passes. Player 2 doesn't get a betting chance and Player 2 wins the pot of <spanclass="katex"><spanaria-hidden="true" class="katex-html"><spanclass="base"><spanclass="strut" style="height:0.64444em;vertical-align:0em;"></span><spanclass="mord coloredeq eqe" style=""><spanclass="mord" style="">2</span></span></span></span></span> chips. </li>
78
+
- Player 1 gets K. Player 2 gets A. Player 1 passes. Player 2 doesn't get a betting chance and Player 2 wins the pot of <spanclass="katex"><spanaria-hidden="true" class="katex-html"><spanclass="base"><spanclass="strut" style="height:0.64444em;vertical-align:0em;"></span><spanclass="mord coloredeq eqh" style=""><spanclass="mord" style="">2</span></span></span></span></span> chips. </li>
- Player 1 gets Q. Player 2 gets K. Player 1 bets a chip. Player 2 passes (folds). Player 1 gets the pot of <spanclass="katex"><spanaria-hidden="true" class="katex-html"><spanclass="base"><spanclass="strut" style="height:0.64444em;vertical-align:0em;"></span><spanclass="mord">4</span></span></span></span> because Player 2 folded. </li>
<p><spanclass="katex"><spanaria-hidden="true" class="katex-html"><spanclass="base"><spanclass="strut" style="height:0.72777em;vertical-align:-0.08333em;"></span><spanclass="mord">+</span><spanclass="mord coloredeq eqf" style=""><spanclass="mord" style="">1</span></span></span></span></span> if Player 1 has a better card and <spanclass="katex"><spanaria-hidden="true" class="katex-html"><spanclass="base"><spanclass="strut" style="height:0.72777em;vertical-align:-0.08333em;"></span><spanclass="mord">−</span><spanclass="mord coloredeq eqf" style=""><spanclass="mord" style="">1</span></span></span></span></span> otherwise </p>
358
+
<p><spanclass="katex"><spanaria-hidden="true" class="katex-html"><spanclass="base"><spanclass="strut" style="height:0.72777em;vertical-align:-0.08333em;"></span><spanclass="mord">+</span><spanclass="mord coloredeq eqg" style=""><spanclass="mord" style="">1</span></span></span></span></span> if Player 1 has a better card and <spanclass="katex"><spanaria-hidden="true" class="katex-html"><spanclass="base"><spanclass="strut" style="height:0.72777em;vertical-align:-0.08333em;"></span><spanclass="mord">−</span><spanclass="mord coloredeq eqg" style=""><spanclass="mord" style="">1</span></span></span></span></span> otherwise </p>
<p>First player passed, the player with better card wins <spanclass="katex"><spanaria-hidden="true" class="katex-html"><spanclass="base"><spanclass="strut" style="height:0.64444em;vertical-align:0em;"></span><spanclass="mord coloredeq eqf" style=""><spanclass="mord" style="">1</span></span></span></span></span> chip </p>
396
+
<p>First player passed, the player with better card wins <spanclass="katex"><spanaria-hidden="true" class="katex-html"><spanclass="base"><spanclass="strut" style="height:0.64444em;vertical-align:0em;"></span><spanclass="mord coloredeq eqg" style=""><spanclass="mord" style="">1</span></span></span></span></span> chip </p>
Copy file name to clipboardExpand all lines: docs/conv_mixer/index.html
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -283,7 +283,7 @@ <h2>ConvMixer layer</h2>
283
283
</div>
284
284
<p><aid="PatchEmbeddings"></a></p>
285
285
<h2>Get patch embeddings</h2>
286
-
<p>This splits the image into patches of size <spanclass="katex"><spanaria-hidden="true" class="katex-html"><spanclass="base"><spanclass="strut" style="height:0.7777700000000001em;vertical-align:-0.19444em;"></span><spanclass="mord coloredeq eqe" style=""><spanclass="mord mathnormal" style="">p</span></span><spanclass="mspace" style="margin-right:0.2222222222222222em;"></span><spanclass="mbin">×</span><spanclass="mspace" style="margin-right:0.2222222222222222em;"></span></span><spanclass="base"><spanclass="strut" style="height:0.625em;vertical-align:-0.19444em;"></span><spanclass="mord coloredeq eqe" style=""><spanclass="mord mathnormal" style="">p</span></span></span></span></span> and gives an embedding for each patch.</p>
286
+
<p>This splits the image into patches of size <spanclass="katex"><spanaria-hidden="true" class="katex-html"><spanclass="base"><spanclass="strut" style="height:0.7777700000000001em;vertical-align:-0.19444em;"></span><spanclass="mord coloredeq eqc" style=""><spanclass="mord mathnormal" style="">p</span></span><spanclass="mspace" style="margin-right:0.2222222222222222em;"></span><spanclass="mbin">×</span><spanclass="mspace" style="margin-right:0.2222222222222222em;"></span></span><spanclass="base"><spanclass="strut" style="height:0.625em;vertical-align:-0.19444em;"></span><spanclass="mord coloredeq eqc" style=""><spanclass="mord mathnormal" style="">p</span></span></span></span></span> and gives an embedding for each patch.</p>
is the number of channels in patch embeddings <spanclass="katex"><spanaria-hidden="true" class="katex-html"><spanclass="base"><spanclass="strut" style="height:0.69444em;vertical-align:0em;"></span><spanclass="mord mathnormal">h</span></span></span></span></li>
is the size of the patch, <spanclass="katex"><spanaria-hidden="true" class="katex-html"><spanclass="base"><spanclass="strut" style="height:0.625em;vertical-align:-0.19444em;"></span><spanclass="mord coloredeq eqe" style=""><spanclass="mord mathnormal" style="">p</span></span></span></span></span></li>
301
+
is the size of the patch, <spanclass="katex"><spanaria-hidden="true" class="katex-html"><spanclass="base"><spanclass="strut" style="height:0.625em;vertical-align:-0.19444em;"></span><spanclass="mord coloredeq eqc" style=""><spanclass="mord mathnormal" style="">p</span></span></span></span></span></li>
0 commit comments