Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
orionw committed Nov 9, 2024
1 parent d557aac commit b19335b
Showing 1 changed file with 61 additions and 61 deletions.
122 changes: 61 additions & 61 deletions tests/test_benchmark/mock_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,7 @@ class MockRerankingTask(AbsTaskReranking):
metadata = TaskMetadata(
type="Reranking",
name="MockRerankingTask",
main_score="map_at_1000",
main_score="map_at_1000",
**general_args, # type: ignore
)

Expand Down Expand Up @@ -956,7 +956,7 @@ class MockMultilingualRerankingTask(AbsTaskReranking, MultilingualTask):
"num_samples": 4,
"number_of_characters": 56.0,
},
}
},
}
}

Expand Down Expand Up @@ -1249,18 +1249,18 @@ def load_data(self, **kwargs):

class MockInstructionRetrieval(AbsTaskRetrieval):
expected_stats = {
"test": {
"num_documents": 2,
"num_queries": 2,
"average_document_length": 15.0,
"average_query_length": 13.0,
"average_instruction_length": 29.0,
"average_relevant_docs_per_query": 1.0,
"average_top_ranked_per_query": 0,
"num_instructions": 2,
"num_samples": 4,
"number_of_characters": 56.0
}
"test": {
"num_documents": 2,
"num_queries": 2,
"average_document_length": 15.0,
"average_query_length": 13.0,
"average_instruction_length": 29.0,
"average_relevant_docs_per_query": 1.0,
"average_top_ranked_per_query": 0,
"num_instructions": 2,
"num_samples": 4,
"number_of_characters": 56.0,
}
}

metadata = TaskMetadata(
Expand Down Expand Up @@ -1303,16 +1303,16 @@ def load_data(self, **kwargs):
class MockInstructionReranking(AbsTaskReranking):
expected_stats = {
"test": {
"num_documents": 2,
"num_queries": 2,
"num_instructions": 2,
"average_document_length": 15.0,
"average_query_length": 13.0,
"average_instruction_length": 29.0,
"average_relevant_docs_per_query": 1.0,
"average_top_ranked_per_query": 2.0,
"num_samples": 4,
"number_of_characters": 56.0
"num_documents": 2,
"num_queries": 2,
"num_instructions": 2,
"average_document_length": 15.0,
"average_query_length": 13.0,
"average_instruction_length": 29.0,
"average_relevant_docs_per_query": 1.0,
"average_top_ranked_per_query": 2.0,
"num_samples": 4,
"number_of_characters": 56.0,
}
}

Expand Down Expand Up @@ -1360,7 +1360,7 @@ def load_data(self, **kwargs):

class MockMultilingualInstructionRetrieval(AbsTaskRetrieval, MultilingualTask):
expected_stats = {
"test": {
"test": {
"num_documents": 4,
"num_queries": 4,
"num_instructions": 4,
Expand Down Expand Up @@ -1457,43 +1457,43 @@ def load_data(self, **kwargs):
class MockMultilingualInstructionReranking(AbsTaskReranking, MultilingualTask):
expected_stats = {
"test": {
"num_documents": 4,
"num_queries": 4,
"num_instructions": 4,
"average_document_length": 7.5,
"average_query_length": 6.5,
"average_instruction_length": 29.0,
"average_relevant_docs_per_query": 1.0,
"average_top_ranked_per_query": 2.0,
"num_samples": 8,
"number_of_characters": 56.0,
"hf_subset_descriptive_stats": {
"eng": {
"num_documents": 2,
"num_queries": 2,
"num_instructions": 2,
"average_document_length": 15.0,
"average_query_length": 13.0,
"average_instruction_length": 29.0,
"average_relevant_docs_per_query": 1.0,
"average_top_ranked_per_query": 2.0,
"num_samples": 4,
"number_of_characters": 56.0,
},
"fra": {
"num_documents": 2,
"num_queries": 2,
"num_instructions": 2,
"average_document_length": 15.0,
"average_query_length": 13.0,
"average_instruction_length": 29.0,
"average_relevant_docs_per_query": 1.0,
"average_top_ranked_per_query": 2.0,
"num_samples": 4,
"number_of_characters": 56.0,
},
"num_documents": 4,
"num_queries": 4,
"num_instructions": 4,
"average_document_length": 7.5,
"average_query_length": 6.5,
"average_instruction_length": 29.0,
"average_relevant_docs_per_query": 1.0,
"average_top_ranked_per_query": 2.0,
"num_samples": 8,
"number_of_characters": 56.0,
"hf_subset_descriptive_stats": {
"eng": {
"num_documents": 2,
"num_queries": 2,
"num_instructions": 2,
"average_document_length": 15.0,
"average_query_length": 13.0,
"average_instruction_length": 29.0,
"average_relevant_docs_per_query": 1.0,
"average_top_ranked_per_query": 2.0,
"num_samples": 4,
"number_of_characters": 56.0,
},
}
"fra": {
"num_documents": 2,
"num_queries": 2,
"num_instructions": 2,
"average_document_length": 15.0,
"average_query_length": 13.0,
"average_instruction_length": 29.0,
"average_relevant_docs_per_query": 1.0,
"average_top_ranked_per_query": 2.0,
"num_samples": 4,
"number_of_characters": 56.0,
},
},
}
}

metadata = TaskMetadata(
Expand Down

0 comments on commit b19335b

Please sign in to comment.