Artificial intelligence (ai) assistants such as GitHub Copilot and ChatGPT, built on large language models like GPT-4, are revolutionizing how programming tasks are performed, raising questions about whether code is a...
详细信息
ISBN:
(纸本)9798350363982;9798400705878
Artificial intelligence (ai) assistants such as GitHub Copilot and ChatGPT, built on large language models like GPT-4, are revolutionizing how programming tasks are performed, raising questions about whether code is authored by generative ai models. Such questions are of particular interest to educators, who worry that these tools enable a new form of academic dishonesty, in which students submit ai-generated code as their work. Our research explores the viability of using code stylometry and machine learning to distinguish between GPT-4 generated and human-authored code. Our dataset comprises human-authored solutions from codeChef and ai-authored solutions generated by GPT-4. Our classifier outperforms baselines, with an F1-score and AUC-ROC score of 0.91. A variant of our classifier that excludes gameable features (e.g., empty lines, whitespace) still performs well with an F1-score and AUC-ROC score of 0.89. We also evaluated our classifier on the difficulty of the programming problem and found that there was almost no difference between easier and intermediate problems, and the classifier performed only slightly worse on harder problems. Our study shows that code stylometry is a promising approach for distinguishing between GPT-4 generated code and human-authored code.
Boost your coding output and accuracy with artificial intelligence tools Coding with ai For Dummies introduces you to the many ways that artificial intelligence can make your life as a coder easier. Even if you’re br...
详细信息
ISBN:
(数字)9781394249145;9781394249152
ISBN:
(纸本)9781394249138
Boost your coding output and accuracy with artificial intelligence tools Coding with ai For Dummies introduces you to the many ways that artificial intelligence can make your life as a coder easier. Even if you’re brand new to using ai, this book will show you around the new tools that can produce, examine, and fix code for you. With ai, you can automate processes like code documentation, debugging, updating, and optimization. The time saved thanks to ai lets you focus on the core development tasks that make you even more valuable. Learn the secrets behind coding assistant platforms and get step-by-step instructions on how to implement them to make coding a smoother process. Thanks to ai and this Dummies guide, you’ll be coding faster and better in no time.
Discover all the core coding tasks boosted by artificial intelligence
Meet the top ai coding assistance platforms currently on the market
Learn how to generate documentation with ai and use ai to keep your code up to date
Use predictive tools to help speed up the coding process and eliminate bugs
This is a great Dummies guide for new and experienced programmers alike. Get started with ai coding and expand your programming toolkit with Coding with ai For Dummies.
暂无评论