arrow
返回

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

delete2025-01-01
delete0
delete
OA
AI
D
Dominik Palla *
A
Antonín Slabý
DOI:10.1109/ACCESS.2025.3560244delete
delete原文链接
delete分享
delete收藏
摘要

摘要

En 中文
This 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.
Keyword:
Automatization
generative AI
generative AI
LLM
LLM
python
python
software development
software development
software development
Hints for Generative AI Software Development生成式AI软件开发的提示
err2024-09-01
err2
PREAI
errEbert, Christof; Arockiasamy, John Pravin; Hettich, Lennard; Weyrich, Michael
err分享
err收藏
An Empirical Evaluation of Large Language Models Applying Software Architectural Patterns大型语言模型在应用软件架构模式方面的实证评估
errAI
IF5
err2026-05-30
err0
errOAAI
errChristos Hadjichristofi; Michail Tsilimigkounakis; Georgios Sotiropoulos; Vassilios Vescoukis
err分享
err收藏
Understanding Prompt Quality and Its Relation to LLM-based Code Generation理解提示质量及其与基于LLM的代码生成之间的关系
err2026-08-03
err0
errOAAI
errAntonio Della Porta; Stefano Lambiase; Valeria Pontillo; João F. Ferreira; Akond A. Rahman; Chaiyong Ragkhitwetsagul; Fabio Palomba
err分享
err收藏

期刊

IEEE Access 封面图
IEEE Access
IF:
3.6
论文数:
10.1W
被引数:
36.3W

机构

U
University of Hradec Kralove
学者数:
69
论文数: 43
被引数: 1.2K
引用论文

引用论文

暂无论文信息