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/beta/code/Alhazen.py
+15-5Lines changed: 15 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
4
4
# "Learning from Failures" - a chapter of "The Debugging Book"
5
5
# Web site: https://www.debuggingbook.org/html/Alhazen.html
6
-
# Last change: 2025-01-07 11:04:38+01:00
6
+
# Last change: 2025-01-07 11:35:49+01:00
7
7
#
8
8
# Copyright (c) 2021-2023 CISPA Helmholtz Center for Information Security
9
9
# Copyright (c) 2018-2020 Saarland University, authors, and contributors
@@ -66,7 +66,10 @@
66
66
If the predicate evaluates to `True`, follow the left path; if it evaluates to `False`, follow the right path.
67
67
A leaf node (no children) will give you the final decision `class = BUG` or `class = NO_BUG`.
68
68
69
-
So if the predicate states ` == 'sqrt' <= 0.5`, this means that if the function is _not_ `sqrt`, follow the left (`True`) path. If it is `sqrt`, follow the right (`False`) path.
69
+
So if the predicate states ` == 'sqrt' <= 0.5`, this means that
70
+
71
+
* If the function is _not_ `sqrt` (the predicate ` == 'sqrt'` is negative, see above, and hence less than 0.5), follow the left (`True`) path.
72
+
* If the function _is_ `sqrt` (the predicate ` == 'sqrt'` is positive), follow the right (`False`) path.
70
73
71
74
The `samples` field shows the number of sample inputs that contributed to this decision.
72
75
The `gini` field (aka Gini impurity) indicates how many samples fall into the displayed class (`BUG` or `NO_BUG`).
<li><code>CachingCallReducer</code> class — <ahref="DeltaDebugger.html#Testing,-Logging,-and-Caching">Reducing Failure-Inducing Inputs (Testing, Logging, and Caching)</a></li>
12123
-
<li><code>CALC_GRAMMAR</code> — <ahref="Alhazen.html#Inputs-and-Grammars">Learning from Failures (Inputs and Grammars)</a>, <ahref="Alhazen.html#Decision-Trees">Learning from Failures (Decision Trees)</a></li>
12123
+
<li><code>CALC_GRAMMAR</code> — <ahref="Alhazen.html#Inputs-and-Grammars">Learning from Failures (Inputs and Grammars)</a>, <ahref="Alhazen.html#Internal-and-"Friendly"-Feature-Names">Learning from Failures (Internal and "Friendly" Feature Names)</a>, <ahref="Alhazen.html#Decision-Trees">Learning from Failures (Decision Trees)</a></li>
Copy file name to clipboardExpand all lines: docs/beta/html/00_Table_of_Contents.html
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -12311,7 +12311,7 @@ <h4 id="Inspecting-Call-Stacks"><a href="StackInspector.html">Inspecting Call St
12311
12311
The content of this project is licensed under the
12312
12312
<ahref="https://creativecommons.org/licenses/by-nc-sa/4.0/" target=_blank>Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>.
12313
12313
The source code that is part of the content, as well as the source code used to format and display that content is licensed under the <ahref="https://github.com/uds-se/debuggingbook/blob/master/LICENSE.md#mit-license">MIT License</a>.
@@ -12327,7 +12327,7 @@ <h4 id="Inspecting-Call-Stacks"><a href="StackInspector.html">Inspecting Call St
12327
12327
<aname="citation"></a>
12328
12328
<h2>How to Cite this Work</h2>
12329
12329
<p>
12330
-
Andreas Zeller: "<ahref="https://www.debuggingbook.org/beta/html/00_Table_of_Contents.html">The Debugging Book</a>". In Andreas Zeller, "<ahref="https://www.debuggingbook.org/beta/">The Debugging Book</a>", <ahref="https://www.debuggingbook.org/beta/html/00_Table_of_Contents.html">https://www.debuggingbook.org/beta/html/00_Table_of_Contents.html</a>. Retrieved 2025-01-07 11:05:13+01:00.
12330
+
Andreas Zeller: "<ahref="https://www.debuggingbook.org/beta/html/00_Table_of_Contents.html">The Debugging Book</a>". In Andreas Zeller, "<ahref="https://www.debuggingbook.org/beta/">The Debugging Book</a>", <ahref="https://www.debuggingbook.org/beta/html/00_Table_of_Contents.html">https://www.debuggingbook.org/beta/html/00_Table_of_Contents.html</a>. Retrieved 2025-01-07 11:36:02+01:00.
0 commit comments