Papers with Code · CC BY-SA 4.0

데이터셋 탐색

데이터셋의 설명·홈페이지를 찾고, 관련 태스크의 평가 기록을 살펴보세요.

관련 논문 1편

COFFE: A Code Efficiency Benchmark for Code Generation

COFFE
COFFE 설명 보기

COFFE COFFE is a Python benchmark for evaluating the time efficiency of LLM-generated code. It is released by the FSE'25 paper "COFFE: A Code Efficiency Benchmark for Code Generation". You can also refer to the project webpage for more details. ## Data COFFE is designed for evaluating both function-level code and file-level code. It contains selected instances from HumanEval, MBPP, APPS and Code Contests. COFFE keeps the original test cases in these benchmarks as correctness test cases and adds new test cases designed for time efficiency evaluation as stressful test cases. Statistics: |Category|#Instance|#Solution/Instance|#Correctness/Instance | #Stressful/Instance| |----|----|----|----|----| |Function-Level|398|1.00|5.72|4.99| |File-Level|358|66.93|43.68|4.95| Data Files: All instances in COFFE are in Coffe/datasets, where Coffe/datasets/function contains all function-level instances and Coffe/datasets/file contains all file-level instances. In each repo: - best_solutions.json contains the best ground truth solution COFFE uses to calculate efficient@1 and speedup. - stressful_testcases.json contains all stressful test cases COFFE adds. - solutions.json contains all ground truth solutions in original benchmarks. - testcases.json contains all correctness test cases in original benchmarks. ## Installation Requirements: - Linux Machine - Docker - Python>=3.10 We suggest you create a virtural environment before installing COFFE. 1. To use COFFE, please clone this repo in your current workspace workspace/ and execute: bash cd Coffe && pip install . 2. COFFE comes with a docker image, to install it: bash docker build . -t coffe Note that if your network requires proxy, please modify the Dockerfile in Coffe/ to indicate it, otherwise the docker image building process could fail. 3. Go back to your workspace and initialize COFFE: bash cd .. && coffe init If your installation succeeds, you could see the statistics of COFFE. ## Usage ### Pipeline When you prepare the predictions from LLMs, COFFE provides a pipeline to calculate the efficient@1 and speedup defined in the paper: bash coffe pipe <benchmark_name> <output_repo> -p <pred_file_1>,...,<pred_file_n> -f <efficient_at_1/speedup> -n <number_of_workers> This command has four phases: 1. santize the predictions. 2. select the correct predictions based on correctness test cases. 3. evaluate the GPU instruction count based on stressful test cases. 4. calculate the final metrics. For example: bash coffe pipe function Coffe/examples/function -p Coffe/examples/function/GPT-4o.json -f efficient_at_1 -n 8 This command evaluates the predictions from GPT-4o on the function-level instances of COFFE. If you want to evaluate other LLMs, please prepare a JSON file with the same format as Coffe/examples/function/GPT-4o.json. Prediction File Format: In the JSON file, the key is the prompt used to query the LLM for the results, you could get the prompts in datasets/function/prompts.json and datasets/file/prompts.json. The value contains two objects, the first is a list contains the raw outputs from LLMs and the second is an indicator for the whether the raw output is valid. Note: In default, COFFE will run all predictions in docker. However, if you could not successfully install the docker or want to run the predictions on the host machine, you can add the -x option. ### Single Evaluation The pipe command provides an entire pipeline for calculating the final metrics. This pipeline could also be completed by executing the following four single evaluation commands. 1. Sanitize the predictions bash coffe eval <benchmark_name> <output_repo> -p <pred_file_1>,...,<pred_file_n> -m compilable_rate This commands output a file ending with SOLUTIONS.json that contains the predictions without syntax errors. 2. Select correct predictions bash coffe eval <benchmark_name> <output_repo> -p <pred_file_1>,...,<pred_file_n> -m correctness -n <number_of_workers> This commands accept prediction files ending with SOLUTIONS.json and output a file ending with PASSED_SOLUTIONS.json that contains the predictions pass all correctness solutions. Note: This command will combine all correct solutions and ground truth solutions together into files <dataset_name>_all_indexes.json (used in step 4) and <dataset_name>_all_PASSED_SOLUTIONS.json for the next step. 3. Evaluate the GPU instruction count bash coffe eval <benchmark_name> <output_repo> -p <pred_file> -m instr_count -n <number_of_workers> This command will evaluate the GPU instruction count each prediction consumes and output a file ending with STRESSFUL_INSTRUCTION.json. Note: This command could only accept one single prediction file ending with PASSED_SOLUTIONS.json. 4. Calculating the efficient@1/speedup bash coffe eval <benchmark_name> <output_repo> -p <index_file>,<pred_file> -m instr_count -f <efficient_at_1/speedup> This command calculate the efficient@1 or speedup. Note: This command requires the index file and the instruction file as COFFE compares the performance of predictions with grouth truth solutions to calculate the metrics. ## STGen For details about the stressful test case generation approach STGen, please see stgen/. ## Cite If you use COFFE, please cite us: @misc{peng2025coffe, title={COFFE: A Code Efficiency Benchmark for Code Generation}, author={Yun Peng and Jun Wan and Yichen Li and Xiaoxue Ren}, year={2025}, eprint={2502.02827}, archivePrefix={arXiv}, primaryClass={cs.SE}, url={https://arxiv.org/abs/2502.02827}, }

관련 논문 2편

Brazilian Coffee Scenes Dataset

Brazilian Coffee Scenes Dataset 설명 보기

This dataset is a composition of scenes taken by SPOT sensor in 2005 over four counties in the State of Minas Gerais, Brazil: Arceburgo, Guaranesia, Guaxupé and Monte Santo. It has multispectral high-resolution scenes of coffee crops and non-coffee areas. It has many intraclass variance caused by different crop management technique, as well as scenes with different plant ages and/or with spectral distortions caused by shadows.

관련 논문 1편

Coffee Leaf Diseases YOLO

Coffee Leaf Diseases YOLO 설명 보기

Click to add a brief description of the dataset (Markdown and LaTeX enabled). Provide: * a high-level explanation of the dataset characteristics * explain motivations and summary of its content * potential use cases of the dataset

관련 논문 1편

Coffereview Dataset

Coffereview Dataset 설명 보기

The data set is based on roughly 6,000 coffee bean review spublished on the website Coffereviews going back to 1997. All of these reviews are scored with the q-grading scale (Coffee Review, 2021)

관련 논문 0편

Coffee Bean Dataset Resized

Coffee Bean Dataset Resized 설명 보기

Description: <a href="https://gts.ai/dataset-download/coffee-bean-dataset-resized/" target="_blank">👉 Download the dataset here</a> This dataset is a resized version of the original Coffee Bean Dataset Version 1, offering high-quality images of roasted coffee beans, meticulously captured to aid in various machine learning and image recognition tasks. Dataset Details: Roasting Levels: The dataset includes coffee beans roasted at four distinct levels: Green (Unroasted) Coffee Beans: Laos Typica Bolaven (Coffea arabica) Lightly Roasted Beans: Laos Typica Bolaven (Coffea arabica) Medium Roasted Beans: Doi Chaang (Coffea arabica) Dark Roasted Beans: Brazil Cerrado (Coffea arabica) Photography Details: The images were captured using an iPhone 12 Mini, equipped with a 12-megapixel back camera, featuring Ultra-wide and WideCamera capabilities. The camera setup was designed to ensure a plane parallel to the object’s path during image capture, guaranteeing consistency and clarity. Photographs were taken under various lighting conditions, including both LED light from a lightbox and natural light, to simulate different real-world environments and enhance the dataset’s versatility. Download Dataset Image Specifications: Format: PNG Resolution: Each image measures 3024×3032 pixels, ensuring high-resolution details suitable for detailed analysis and machine learning tasks. Quantity: The dataset comprises a total of 4800 images, divided evenly across the four roasting levels, with 1200 images per level. Additional Features: Noise Enhancement: To simulate real-world scenarios, images include enhanced noise by placing each variety of coffee beans in a container. This feature aims to improve the robustness of machine learning models trained using this dataset. Diverse Settings: The dataset includes images captured in a variety of settings, providing a broad spectrum of inputs to validate and train image recognition systems effectively. Applications: This comprehensive dataset is ideal for: Machine Learning: Training models for image classification, object detection, and other AI tasks. Quality Control: Automated inspection systems in coffee production and roasting facilities. Research: Studies related to food processing, quality analysis, and agricultural research. Educational Purposes: Teaching materials for courses on machine learning, image processing, and computer vision. This dataset is sourced from Kaggle.

관련 논문 0편

Coffee Roasting Agtron Dataset

Coffee Roasting Agtron Dataset 설명 보기

Description: <a href="https://gts.ai/dataset-download/coffee-roasting-agtron-dataset/" target="_blank">👉 Download the dataset here</a> To ensure uniformity in coffee roasting grades, the Specialty Coffee Association of America (SCAA) and Agtron Inc. have developed a globally accepted scale. This scale ranges from 0 to 100, with higher values indicating lighter roasts and lower values signifying darker roasts. Dataset Content The dataset includes images of coffee beans roasted at various Agtron levels, captured using multiple mobile devices. Each image set is accompanied by a reference photo representing the lighting conditions, ensuring standardization across all samples. Download Dataset Data Capture Conditions Device Variability: Coffee bean images are taken using different mobile devices to account for varying camera qualities and resolutions. Lighting Reference: Alongside the coffee images, a photo of a blank white sheet is included to serve as a lighting reference. This allows for normalization of lighting conditions, making the dataset reliable for visual analysis. Agtron Scale and Its Importance The Agtron scale is the industry standard for measuring the degree of coffee roasting. As the roast becomes darker, the value on the scale decreases. This scale is crucial in both quality control and research, allowing coffee professionals to consistently classify and compare roast levels. Applications This dataset is useful for several applications, including: Roast Level Analysis: Training machine learning models to identify and classify coffee roast levels based on visual inputs. Quality Control: Automating the analysis of roast consistency in coffee production. Research & Development: Coffee researchers and companies can utilize the dataset to innovate new roasting techniques or improve product consistency. Potential Use in AI and Machine Learning The dataset serves as a foundation for AI development, specifically in image recognition. With the reference lighting condition and varied device capture, this dataset is ideal for developing models that can automate the classification of coffee roast levels based on the Agtron scale. This dataset is sourced from Kaggle.