You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use your model to generate all the results. For other tasks, please run the coir package(not MTEB) to directly obtain the results. For CodeSearchNet and CodeSearchNet-CCR, you will get results for six programming languages, namely Codesearchnet-go, Codesearchnet-java, xxx and CodeSearchNet-ccr-go, CodeSearchNet-ccr-java, xxx respectively. This will result in a total of 12 files. You need to calculate the average for all sub-tasks within these two tasks separately.
importcoirfromcoir.data_loaderimportget_tasksfromcoir.evaluationimportCOIRfromcoir.modelsimportYourCustomDEModelmodel_name="intfloat/e5-base-v2"# Load the modelmodel=YourCustomDEModel(model_name=model_name)
# Get tasks#all task ["codetrans-dl","stackoverflow-qa","apps","codefeedback-mt","codefeedback-st","codetrans-contest","synthetic-# text2sql","cosqa","codesearchnet","codesearchnet-ccr"]tasks=get_tasks(tasks=["codetrans-dl"])
# Initialize evaluationevaluation=COIR(tasks=tasks,batch_size=128)
# Run evaluationresults=evaluation.run(model, output_folder=f"results/{model_name}")
print(results)
Create a new issue in the repository with the following format:
Create a new issue in the repository with the following format:
The repository administrator will update the results on the website.
The text was updated successfully, but these errors were encountered: