Skip to content

Commit a2049d6

Browse files
Small fixes (#439)
* forecasting PR draft * fix * 1.3.0 and script changes * dep * correct dep * fixes * revert * more fixes * tsml update * redirects * notebook * notebooks * eval and gpu update * workflow update * table util and original mcm params * skipif * table fix
1 parent b9743ca commit a2049d6

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/monthly_github_maintenance.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,5 @@ jobs:
3333
days-before-delete: 455
3434
comment-updates: true
3535
tag-committer: true
36-
stale-branch-label: "stale branch"
3736
compare-branches: "info"
3837
pr-check: true

tsml_eval/utils/publications.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,15 @@ def results_table_from_evaluation_csv(
120120
df = pd.read_csv(eval_csv_path)
121121
df.set_index(df.columns[0], inplace=True)
122122
df.index.name = None
123+
124+
def escape_underscores(s):
125+
if isinstance(s, str):
126+
return s.replace("_", r"\_")
127+
return s
128+
129+
df.index = df.index.map(escape_underscores)
130+
df.columns = df.columns.map(escape_underscores)
131+
123132
df = df.round(round_digits)
124133
best = df.eq(df.max(axis=0) if higher_is_better else df.min(axis=0))
125134
ranks = df.rank(method="min", ascending=False if higher_is_better else True)

0 commit comments

Comments
 (0)