Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
2e44076
refactor: standardize string formatting and improve code readability …
davidberenstein1957 Mar 27, 2025
d8527a4
docs: update development environment setup instructions
davidberenstein1957 Mar 31, 2025
55c11e3
chore: update pre-commit configuration to skip ggshield hook
davidberenstein1957 Mar 31, 2025
e06317f
docs: update contribution guidelines for pre-commit hooks
davidberenstein1957 Mar 31, 2025
3c4d251
docs: enhance RAGET notebooks with detailed explanations and structure
davidberenstein1957 Apr 1, 2025
f1e0fbb
docs: update RAGET notebooks for improved clarity and structure
davidberenstein1957 Apr 1, 2025
41ff76d
docs: update documentation structure and content for clarity and cons…
davidberenstein1957 Apr 10, 2025
f0103ca
docs: update syntax highlighting styles in documentation configuration
davidberenstein1957 Apr 11, 2025
0c39663
docs: update README and notebooks for improved clarity and integration
davidberenstein1957 Apr 14, 2025
a631172
fix: enable ggshield pre-commit hook by removing skip flag
davidberenstein1957 Apr 14, 2025
772d374
docs: update installation command in Twitter sentiment analysis notebook
davidberenstein1957 Apr 14, 2025
cbaf3f4
Merge branch 'main' into docs/quality-of-life-updates
henchaves Apr 14, 2025
3be7eb5
Update docs/community/contribution_guidelines/dev-environment.md
davidberenstein1957 Apr 14, 2025
c2fafee
docs: update installation commands across notebooks and README
davidberenstein1957 Apr 16, 2025
0aefefa
docs: refine smoothness test documentation for clarity
davidberenstein1957 Apr 16, 2025
c89325d
Merge branch 'main' into docs/quality-of-life-updates
henchaves Apr 18, 2025
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
docs: refine smoothness test documentation for clarity
- Updated the mathematical notation in the smoothness test docstring for better readability and understanding.
  • Loading branch information
davidberenstein1957 committed Apr 16, 2025
commit 0aefefaab1048501f958d9ad321a946bfe648d3e
6 changes: 3 additions & 3 deletions giskard/testing/tests/stability.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,10 @@ def test_smoothness(
):
"""Test if the model is smooth with respect to given columns.
The smoothness score is computed as follows
$$S(y) = \frac{1}{N} \\sum_{i=1}^N (y_{i-1} - 2y_i + y_{i+1})^2$$
S(y) = 1/N * sum((y_{i-1} - 2y_i + y_{i+1})^2) for i=1 to N

Then a ratio $$S(y) / S(y_{\text{ref}})$$, where $$y_{\text{ref}}$$ is given through ref_function,
is compared to the threshold in log value. If ref_functino is None, $$S(y_{\text{ref}}) = 1$$
Then a ratio S(y) / S(y_ref), where y_ref is given through ref_function,
is compared to the threshold in log value. If ref_function is None, S(y_ref) = 1

Parameters
----------
Expand Down
Loading