<link rel="stylesheet" href="styles.cf390c6bfbe7555f.css">

Evaluation of Generative AI Models in Python Code Generation: A Comparative Study

dc.contributor.authorPalla, Dominik
dc.contributor.authorSlabý, Antonín
dc.date.accessioned2025-12-05T15:41:51Z
dc.date.available2025-12-05T15:41:51Z
dc.date.issued2025
dc.description.abstractThis study evaluates leading generative AI models for Python code generation. Evaluation criteria include syntax accuracy, response time, completeness, reliability, and cost. The models tested comprise OpenAI's GPT series (GPT-4 Turbo, GPT-4o, GPT-4o Mini, GPT-3.5 Turbo), Google's Gemini (1.0 Pro, 1.5 Flash, 1.5 Pro), Meta's LLaMA (3.0 8B, 3.1 8B), and Anthropic's Claude models (3.5 Sonnet, 3 Opus, 3 Sonnet, 3 Haiku). Ten coding tasks of varying complexity were tested across three iterations per model to measure performance and consistency. Claude models, especially Claude 3.5 Sonnet, achieved the highest accuracy and reliability. They outperformed all other models in both simple and complex tasks. Gemini models showed limitations in handling complex code. Cost-effective options like Claude 3 Haiku and Gemini 1.5 Flash were budget-friendly and maintained good accuracy on simpler problems. Unlike earlier single-metric studies, this work introduces a multi-dimensional evaluation framework that considers accuracy, reliability, cost, and exception handling. Future work will explore other programming languages and include metrics such as code optimization and security robustness.eng
dc.formatp. 65334-65347
dc.identifier.doi10.1109/ACCESS.2025.3560244
dc.identifier.issn2169-3536
dc.identifier.obd43882011
dc.identifier.urihttp://hdl.handle.net/20.500.12603/2388
dc.identifier.wos001470367900023
dc.language.isoeng
dc.peerreviewedyes
dc.publicationstatuspostprint
dc.publisherIEEE
dc.relation.ispartofIEEE Access, volume 13, issue: Aprileng
dc.relation.publisherversionhttps://ieeexplore.ieee.org/document/10963975
dc.rights.accessOpen Access
dc.rights.licenseCC BY
dc.source.urlhttps://ieeexplore.ieee.org/document/10963975
dc.subjectAutomatizationeng
dc.subjectgenerative AIeng
dc.subjectgenerative AIeng
dc.subjectLLMeng
dc.subjectLLMeng
dc.subjectpythoneng
dc.subjectpythoneng
dc.subjectsoftware developmenteng
dc.subjectsoftware developmenteng
dc.subjectsoftware developmenteng
dc.titleEvaluation of Generative AI Models in Python Code Generation: A Comparative Studyeng
dc.typearticle

Soubory

Původní svazek

Nyní se zobrazuje 1 - 1 z 1
Načítá se...
Náhled
Název:
Evaluation_of_Generative_AI_Models_in_Python_Code_Generation_A_Comparative_Study.pdf
Velikost:
2,43 MB
Formát:
Adobe Portable Document Format