Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Presentation

Presentation Creative writing

Rating
-
Sold
-
Pages
2
Uploaded on
30-04-2025
Written in
2024/2025

explain the relationship between ai generated code and human code

Institution
Senior / 12th Grade
Course
Creative writing

Content preview

Comparison between the original code and AI generated code
In this review, three scripts that were written to analyse production data are compared. They are
the original script, AI generated script and an AI improved version of the original script. All the
scripts have codes for data importation, variable manipulation, descriptive statistical analysis,
and visualization. While they share the same goals of analysis, they significantly differ in
structure, function, and presentation.
The original code is sequential, employs the hardcoded dataset generated through pandas
dataframe and performs all operations, feature engineering, and visualization in the script's main
body. It computes new variables such as defects rate and units per hour based on simple
mathematical calculations, there is no modularity in the script. Plotting is all performed
sequentially using simple matplotlib functions with no reusable components. This structure is
appropriate for ad-hoc analysis, it gets in the way of scalability and makes the code less flexible
for more complex or repetitive tasks.
The AI generated code from scratch demonstrates a well-organized, modular approach. It splits
the entire workflow into functions for loading the data, feature engineering, descriptive statistics,
and plotting. Each function is properly labeled which makes reading easier and debugging more
straightforward. The script uses improved handling of missing data styling capabilities to
generate cleaner, more consistent visualizations. Labeling, titles and layout adjustments are
applied uniformly across plots, giving a professional, publication-ready appearance. The script
further enhances analysis by adding median and standard deviation to grouped statistics, giving
more insight into supervisor performance beyond averages.


The AI modified code maintains the original structure but refines it through formatting,
optimization, and clarity improvement. Variable naming becomes more consistent, redundant
code is slightly refactored, and plot is improved with figure size standardization, use of better
color schemes, and tighter layouts. The updated version does not rebuild the entire code but
optimizes it without changing its original form to the author. It's a balance between being
readable and being concise, and would be more suited to users who desire incremental
improvements over rewrites.

Written for

Institution
Senior / 12th grade
Course
Creative writing
School year
4

Document information

Uploaded on
April 30, 2025
Number of pages
2
Written in
2024/2025
Type
PRESENTATION
Person
Unknown

Subjects

$10.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
festusnzusi

Get to know the seller

Seller avatar
festusnzusi ICON
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
1 year
Number of followers
0
Documents
3
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions