mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-10 04:08:31 +00:00
fix ruff check
This commit is contained in:
parent
5ec1881c85
commit
e4c3f43a99
3 changed files with 3 additions and 1 deletions
|
@ -89,7 +89,7 @@ class BFCLScoringFn(RegisteredBaseScoringFn):
|
||||||
) -> ScoringResultRow:
|
) -> ScoringResultRow:
|
||||||
test_category = re.sub(r'_[0-9_-]+$', '', input_row['id'])
|
test_category = re.sub(r'_[0-9_-]+$', '', input_row['id'])
|
||||||
score_result = postprocess(input_row, test_category)
|
score_result = postprocess(input_row, test_category)
|
||||||
if (test_category in set(['irrelevance', 'live_relevance', 'live_irrelevance'])):
|
if (test_category in {'irrelevance', 'live_relevance', 'live_irrelevance'}):
|
||||||
score = gen_relevance_acc(score_result)['valid']
|
score = gen_relevance_acc(score_result)['valid']
|
||||||
else:
|
else:
|
||||||
score = gen_valid(score_result)['valid']
|
score = gen_valid(score_result)['valid']
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#ruff: noqa
|
||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#ruff: noqa
|
||||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
#
|
#
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue