Skip to content

Commit

Permalink
Flip label for rel-f1/driver-dnf task (#246)
Browse files Browse the repository at this point in the history
.
  • Loading branch information
rishabh-ranjan authored Jul 25, 2024
1 parent e416c3d commit c348273
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions relbench/tasks/f1.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,7 @@ def make_table(self, db: Database, timestamps: "pd.Series[pd.Timestamp]") -> Tab
SELECT
t.timestamp as date,
dri.driverId as driverId,
CASE
WHEN MAX(CASE WHEN re.statusId != 1 THEN 1 ELSE 0 END) = 1 THEN 0
ELSE 1
END AS did_not_finish
MAX(CASE WHEN re.statusId != 1 THEN 1 ELSE 0 END) AS did_not_finish
FROM
timestamp_df t
LEFT JOIN
Expand Down
2 changes: 1 addition & 1 deletion relbench/tasks/hashes.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"rel-stack/tasks/user-post-comment.zip": "ba934afc8833ca14035dc4bf6632dd4c64614ae4fef49ff3327909a2656ca60a",
"rel-stack/tasks/post-post-related.zip": "922457288d446c931fbb3f524675d135b759bf9747a1f239178241a5bbb5a7ba",
"rel-stack/tasks/user-engagement.zip": "98141d35e6471e6a4d391461c1ccf2bfb3aa363975e1c11e992223c1b2a82b2d",
"rel-f1/tasks/driver-dnf.zip": "948df149bc36537cb14d7624c46db886e75d9c793a48c35fde49ac9f41220655",
"rel-f1/tasks/driver-dnf.zip": "58553e0ecebff60e9f8c12202ae2d1109b206b6f8a1ec0589af2540ac2982178",
"rel-f1/tasks/driver-position.zip": "775b28a51604169539bbe712a2f0d15158c112bc6abf316cdd0995087a7ae03e",
"rel-f1/tasks/driver-top3.zip": "1a16abf993cbe58524054cf710bada8538e7c75d6f8f388c0b137ab3575a9a47",
"rel-hm/tasks/item-sales.zip": "92a2c71ebd6dc5ab67c14c33a3a45c9ccafee0e5f0c7c698871a88f74e8a0867",
Expand Down

0 comments on commit c348273

Please sign in to comment.