Skip to content

Commit

Permalink
b1 checks
Browse files Browse the repository at this point in the history
  • Loading branch information
joel99 committed Aug 11, 2024
1 parent 9ce5779 commit bd6308e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions falcon_challenge/evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,15 +241,15 @@ def evaluate(
dataset_pred = dataset_pred[:dataset_mask.shape[0]] # In case excess timesteps are predicted due to batching, reduce

if dataset in DATASET_HELDINOUT_MAP[datasplit]['held_in']:
if 'h2' not in datasplit:
if 'h2' not in datasplit and 'b1' not in datasplit:
# For splits with multiple datasets per session (H1 and M2), we need to map predictions, targets, and masks for each dataset to the session ID
session_id = reduce_key(dataset)
dset_len_dict['held_in'][session_id].append(dataset_mask.shape[0])
pred_dict['held_in'].append(dataset_pred)
tgt_dict['held_in'].append(dataset_tgt)
mask_dict['held_in'].append(dataset_mask)
elif dataset in DATASET_HELDINOUT_MAP[datasplit]['held_out']:
if not 'h2' in datasplit:
if not 'h2' in datasplit and 'b1' not in datasplit:
# For splits with multiple datasets per session (H1 and M2), we need to map predictions, targets, and masks for each dataset to the session ID
session_id = reduce_key(dataset)
dset_len_dict['held_out'][session_id].append(dataset_mask.shape[0])
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='falcon_challenge',
version='0.4.0',
version='0.4.1',

url='https://github.com/snel-repo/stability-benchmark',
author='Joel Ye',
Expand Down

0 comments on commit bd6308e

Please sign in to comment.