Alexandre Piche commited on
Commit
dede6e9
·
1 Parent(s): e604193
Files changed (3) hide show
  1. .gitignore +1 -0
  2. app.py +1 -1
  3. pyproject.toml +0 -13
.gitignore CHANGED
@@ -5,6 +5,7 @@ __pycache__/
5
  .ipynb_checkpoints
6
  *ipynb
7
  .vscode/
 
8
 
9
  eval-queue/
10
  eval-results/
 
5
  .ipynb_checkpoints
6
  *ipynb
7
  .vscode/
8
+ .DS_Store
9
 
10
  eval-queue/
11
  eval-results/
app.py CHANGED
@@ -51,7 +51,7 @@ def get_dataframe_from_results(eval_results, split):
51
  df = pd.DataFrame(local_df)
52
  df = df.sort_values(by=["Return (%)"], ascending=False)
53
 
54
- numeric_cols = [c for c in local_df.column_names if "score" in c]
55
  df[numeric_cols] = df[numeric_cols].multiply(100).round(decimals=2)
56
  #df = df.style.format("{:.2%}", subset=numeric_cols)
57
 
 
51
  df = pd.DataFrame(local_df)
52
  df = df.sort_values(by=["Return (%)"], ascending=False)
53
 
54
+ numeric_cols = [c for c in local_df.column_names if "return" in c.lower()]
55
  df[numeric_cols] = df[numeric_cols].multiply(100).round(decimals=2)
56
  #df = df.style.format("{:.2%}", subset=numeric_cols)
57
 
pyproject.toml DELETED
@@ -1,13 +0,0 @@
1
- [tool.ruff]
2
- # Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default.
3
- select = ["E", "F"]
4
- ignore = ["E501"] # line too long (black is taking care of this)
5
- line-length = 119
6
- fixable = ["A", "B", "C", "D", "E", "F", "G", "I", "N", "Q", "S", "T", "W", "ANN", "ARG", "BLE", "COM", "DJ", "DTZ", "EM", "ERA", "EXE", "FBT", "ICN", "INP", "ISC", "NPY", "PD", "PGH", "PIE", "PL", "PT", "PTH", "PYI", "RET", "RSE", "RUF", "SIM", "SLF", "TCH", "TID", "TRY", "UP", "YTT"]
7
-
8
- [tool.isort]
9
- profile = "black"
10
- line_length = 119
11
-
12
- [tool.black]
13
- line-length = 119