Skip to content

Commit

Permalink
Deployed b9adf18 with MkDocs version: 1.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
programarivm committed Dec 31, 2024
1 parent 2f7eebf commit 545ffb5
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 28 deletions.
46 changes: 22 additions & 24 deletions data-mining/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -362,15 +362,15 @@ <h4 id="example_4">Example</h4>
36 rows in set (0.00 sec)
</code></pre>
<h2 id="functions">Functions</h2>
<h3 id="eval_array_count"><code>EVAL_ARRAY_COUNT()</code></h3>
<p>Average count of an evaluation feature.</p>
<h3 id="eval_array_steinitz"><code>EVAL_ARRAY_STEINITZ()</code></h3>
<p>Steinitz evaluation as per the docs at <a href="https://chesslablab.github.io/php-chess/heuristics/#evaluation-function">Evaluation Function</a>.</p>
<h4 id="res"><code>res</code></h4>
<p>The result of the game.</p>
<h4 id="i"><code>i</code></h4>
<p>The index of the PHP Chess function being used in the <a href="https://github.com/chesslablab/chess-data/blob/main/cli/mine/heuristics.php">cli/mine/heuristics.php</a> script.</p>
<pre><code class="language-sql">DELIMITER //
DROP FUNCTION IF EXISTS EVAL_ARRAY_COUNT//
CREATE FUNCTION EVAL_ARRAY_COUNT(res VARCHAR(7), i INT) RETURNS FLOAT
DROP FUNCTION IF EXISTS EVAL_ARRAY_STEINITZ//
CREATE FUNCTION EVAL_ARRAY_STEINITZ(res VARCHAR(7), i INT) RETURNS FLOAT
READS SQL DATA
DETERMINISTIC
BEGIN
Expand Down Expand Up @@ -410,24 +410,23 @@ <h4 id="i"><code>i</code></h4>
END//
DELIMITER ;
</code></pre>
<p>The example below returns the average count of the center evaluation of all games won with the white pieces.</p>
<pre><code class="language-text">mysql&gt; SELECT ROUND(EVAL_ARRAY_COUNT('1-0', 1), 2) as center_count;
+--------------+
| center_count |
+--------------+
| 25.28 |
+--------------+
1 row in set (0.19 sec)
<pre><code class="language-text">mysql&gt; SELECT ROUND(EVAL_ARRAY_STEINITZ('1-0', 1), 2) as center_steinitz;
+-----------------+
| center_steinitz |
+-----------------+
| 25.28 |
+-----------------+
1 row in set (0.21 sec)
</code></pre>
<h3 id="eval_array_sum"><code>EVAL_ARRAY_SUM()</code></h3>
<p>Average sum of an evaluation feature.</p>
<h3 id="eval_array_mean"><code>EVAL_ARRAY_MEAN()</code></h3>
<p>Mean evaluation as per the docs at <a href="https://chesslablab.github.io/php-chess/heuristics/#evaluation-function">Evaluation Function</a>.</p>
<h4 id="res_1"><code>res</code></h4>
<p>The result of the game.</p>
<h4 id="i_1"><code>i</code></h4>
<p>The index of the PHP Chess function being used in the <a href="https://github.com/chesslablab/chess-data/blob/main/cli/mine/heuristics.php">cli/mine/heuristics.php</a> script.</p>
<pre><code class="language-sql">DELIMITER //
DROP FUNCTION IF EXISTS EVAL_ARRAY_SUM//
CREATE FUNCTION EVAL_ARRAY_SUM(res VARCHAR(7), i INT) RETURNS FLOAT
DROP FUNCTION IF EXISTS EVAL_ARRAY_MEAN//
CREATE FUNCTION EVAL_ARRAY_MEAN(res VARCHAR(7), i INT) RETURNS FLOAT
READS SQL DATA
DETERMINISTIC
BEGIN
Expand Down Expand Up @@ -467,14 +466,13 @@ <h4 id="i_1"><code>i</code></h4>
END//
DELIMITER ;
</code></pre>
<p>The example below returns the average sum of the center evaluation of all games won with the white pieces.</p>
<pre><code class="language-text">mysql&gt; SELECT ROUND(EVAL_ARRAY_SUM('1-0', 1), 2) as center_sum;
+------------+
| center_sum |
+------------+
| 24.2 |
+------------+
1 row in set (0.18 sec)
<pre><code class="language-text">mysql&gt; SELECT ROUND(EVAL_ARRAY_MEAN('1-0', 1), 2) as center_mean;
+-------------+
| center_mean |
+-------------+
| 24.2 |
+-------------+
1 row in set (0.19 sec)
</code></pre></div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -240,5 +240,5 @@ <h4 class="modal-title" id="keyboardModalLabel">Keyboard Shortcuts</h4>

<!--
MkDocs version : 1.5.3
Build Date UTC : 2024-12-30 16:33:57.791027+00:00
Build Date UTC : 2024-12-31 17:04:32.775620+00:00
-->
Loading

0 comments on commit 545ffb5

Please sign in to comment.