Skip to content

Commit c3cc8d3

Browse files
authored
Add back module __all__ to fix docs (#56)
Verified locally. Tried using `:ignore-module-all:` but that didn't work.
1 parent 79fefa2 commit c3cc8d3

File tree

2 files changed

+35
-5
lines changed

2 files changed

+35
-5
lines changed

src/metrax/__init__.py

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,29 @@
1818
from metrax import ranking_metrics
1919
from metrax import regression_metrics
2020

21-
Average = base.Average
2221
AUCPR = classification_metrics.AUCPR
2322
AUCROC = classification_metrics.AUCROC
24-
Precision = classification_metrics.Precision
25-
Recall = classification_metrics.Recall
26-
Perplexity = nlp_metrics.Perplexity
27-
WER = nlp_metrics.WER
23+
Average = base.Average
2824
AveragePrecisionAtK = ranking_metrics.AveragePrecisionAtK
2925
MSE = regression_metrics.MSE
26+
Perplexity = nlp_metrics.Perplexity
27+
Precision = classification_metrics.Precision
3028
RMSE = regression_metrics.RMSE
3129
RSQUARED = regression_metrics.RSQUARED
30+
Recall = classification_metrics.Recall
31+
WER = nlp_metrics.WER
32+
33+
34+
__all__ = [
35+
"AUCPR",
36+
"AUCROC",
37+
"Average",
38+
"AveragePrecisionAtK",
39+
"MSE",
40+
"Perplexity",
41+
"Precision",
42+
"RMSE",
43+
"RSQUARED",
44+
"Recall",
45+
"WER",
46+
]

src/metrax/nnx/__init__.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,18 @@
2525
RSQUARED = nnx_metrics.RSQUARED
2626
Recall = nnx_metrics.Recall
2727
WER = nnx_metrics.WER
28+
29+
30+
__all__ = [
31+
"AUCPR",
32+
"AUCROC",
33+
"Average",
34+
"AveragePrecisionAtK",
35+
"MSE",
36+
"Perplexity",
37+
"Precision",
38+
"RMSE",
39+
"RSQUARED",
40+
"Recall",
41+
"WER",
42+
]

0 commit comments

Comments
 (0)