in sourcecode/scoring/scoring_rules.py [0:0]
def _get_value(row):
idx = row.first_valid_index()
# If either core or expansion had an intercept then return whether it was in the valid
# range. If neither had an intercept, return False. Preference is given to core due
# to the ordering when selecting columns from noteStats below.
if idx is None:
return False
elif row[idx] == 1.0:
return True
elif row[idx] == 0.0:
return False
else:
assert False, f"unexpected value: {row[idx]}"