Md-Ashraful-Pramanik / MapCoder

MapCoder: Multi-Agent Code Generation for Competitive Problem Solving
MIT License
53 stars 9 forks source link

Error while running on humaneval dataset #5

Open HamedTaherkhani opened 1 month ago

HamedTaherkhani commented 1 month ago

Hi, I am getting this error:


Traceback (most recent call last):

  File "/home/hamed/VScode/MapCoder/src/main.py", line 101, in <module>
    strategy.run()

  File "/home/hamed/VScode/MapCoder/src/promptings/Base.py", line 89, in run
    response, prompt_tokens, completion_tokens = self.run_single_pass(
                                                 ^^^^^^^^^^^^^^^^^^^^^

  File "/home/hamed/VScode/MapCoder/src/promptings/MapCoder.py", line 243, in run_single_pass
    sample_io_prompt = f"## Sample Test cases: \n{self.get_sample_io_str(item['sample_io'])}\n"
                                                                         ~~~~^^^^^^^^^^^^^

KeyError: 'sample_io'

Can you please check this out?

Md-Ashraful-Pramanik commented 3 weeks ago

Sorry for the late reply. Please use the dataset provided by us. In our MapCoder Algorithm we need sample_io for debugging purposes. Sample io is the sample input output pairs that are mentioned inside the problem. So, please use that to avoid this problem.

On Mon, Aug 12, 2024 at 9:29 PM HamedTaherkhani @.***> wrote:

Hi, I am getting this error: Traceback (most recent call last): File "/home/hamed/VScode/MapCoder/src/main.py", line 101, in strategy.run() File "/home/hamed/VScode/MapCoder/src/promptings/Base.py", line 89, in run response, prompt_tokens, completion_tokens = self.run_single_pass( ^^^^^^^^^^^^^^^^^^^^^ File "/home/hamed/VScode/MapCoder/src/promptings/MapCoder.py", line 243, in run_single_pass sample_io_prompt = f"## Sample Test cases: \n{self.get_sample_io_str(item['sample_io'])}\n" ~~~~^^^^^^^^^^^^^ KeyError: 'sample_io' Can you please check this out?

— Reply to this email directly, view it on GitHub https://github.com/Md-Ashraful-Pramanik/MapCoder/issues/5, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANO3RTR2H2ORUHPKDHSE6K3ZRDIGTAVCNFSM6AAAAABMMNMBMCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ3DCMZRGEYTIMQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>