Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes docs break with matplotlib >=3.8 #837

Merged
merged 3 commits into from
Sep 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@
# modules that require this module before setting the type checking flag.
import scipy.stats # isort:skip

# Matplotlib >=3.8 has a type-checking-flag-guarded import of a symbol that does
# not exist in the shipped version.
import matplotlib.pyplot # isort:skip

# The autodocs typehints plugin does not resolve circular imports caused by type
# annotations, so we have to manually break the circles.
import rich.console # isort:skip
Expand Down
1 change: 1 addition & 0 deletions docs/source/vara-ts-api/tools/vara-cs-gui.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ The gui is started by::

The gui provides 3 Strategies to generate case studies:
- Manual revision selection: Select revision from the revision history of a project. Multiple revisions can be selected by holding `ctrl` and ranges by holding `shift`. Revisions which are blocked because of bugs in the compilation of the project are marked blue.

.. figure:: vara-cs-gui-manual.png

- Random Sampling: Sample a number of revisions using a random a Normal or HalfNormal Distribution.
Expand Down
12 changes: 7 additions & 5 deletions varats/varats/data/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def gini_coefficient(distribution: pd.Series) -> float:
Calculates the Gini coefficient of the data.

For more information see online
`gini coefficient <https://en.wikipedia.org/wiki/Gini_coefficient>`_.
`Gini coefficient <https://en.wikipedia.org/wiki/Gini_coefficient>`_.

Args:
distribution: sorted series to calculate the Gini coefficient for
Expand Down Expand Up @@ -141,10 +141,12 @@ class ConfusionMatrix(tp.Generic[T]):
"""
Helper class to automatically calculate classification results.

| Predicted Positive (PP) | Predicted Negative (PN)
--------------------|---------------------------|--------------------------
Actual Positive (P) | True Positive (TP) | False Negative (FN)
Actual Negative (N) | False Positive (FP) | True Negative (TN)
+---------------------+-------------------------+-------------------------+
| | Predicted Positive (PP) | Predicted Negative (PN) |
+---------------------+-------------------------+-------------------------+
| Actual Positive (P) | True Positive (TP) | False Negative (FN) |
| Actual Negative (N) | False Positive (FP) | True Negative (TN) |
+---------------------+-------------------------+-------------------------+

Reference: https://en.wikipedia.org/wiki/Precision_and_recall
"""
Expand Down
Loading