Beneath each of the data science problems below is a purpose statement (generated by ChatGPT!) that is either missing information or includes unnecessary information.
-
Write an improved version of each purpose statement beneath the original.
-
Then, explain what was wrong with the ChatGPT-generated Purpose Statement.
1 Data Science Problem: Alice is looking to adopt a pet, but only wants to look at animals who are fixed. Write a function is-fixed
, which takes in a Row and returns true if the animal is fixed. Otherwise, return false.
The AI’s Purpose Statement: Take in a Row and check if the "is-fixed" column is true.
Improved Purpose Statement:
Problem with the AI’s Purpose Statement:
2 Data Science Problem: The animal shelter wants to make nametags for all the animals, drawing their names in large purple letters
The AI’s Purpose Statement: Given an animal, use the "name" column to draw the text in size 100 font.
Improved Purpose Statement:
Problem with the AI’s Purpose Statement:
3 Data Science Problem: The animal shelter decides that some dogs need to go on a diet, and get them different food to help them lose weight. Write a function is-heavy
, which takes in a Row and checks to see if it’s a dog weighing more than 100 pounds.
The AI’s Purpose Statement: Take in the species and the number of pounds, and check if the species is dog and it weighs a lot.
Improved Purpose Statement:
Problem with the AI’s Purpose Statement:
4 Data Science Problem: Sammi wants to adopt a kitten less than a year old.
The AI’s Purpose Statement: Take in a row, and check if the age is less than 1.
Improved Purpose Statement:
Problem with the AI’s Purpose Statement:
These materials were developed partly through support of the National Science Foundation, (awards 1042210, 1535276, 1648684, 1738598, 2031479, and 1501927).
Bootstrap by the Bootstrap Community is licensed under a Creative Commons 4.0 Unported License. This license does not grant permission to run training or professional development. Offering training or professional development with materials substantially derived from Bootstrap must be approved in writing by a Bootstrap Director. Permissions beyond the scope of this license, such as to run training, may be available by contacting contact@BootstrapWorld.org.