Trend detectors graded


To test your trend detector, I did the following:

  • Give you +2XP for turning it in, no matter what.
  • Change the name of your turnin file to “yourfirstname_trend_detector.py“, and change the import line at the top of my test script to match.
  • Run my test script against it. This tests nine sequences: three rising ones (red), three falling ones (blue), two steady ones (green), and my weight (black). You got one point for each of the first eight you got correct. I thought about giving an extra point to those who said my weight was FALLING, just because it made me feel good, but decided against it.



For those keeping score: out of the 10 students who turned this in, five of their algorithms said my weight was FALLING, four said STEADY, and one said RISING. (I have already spoken harsh words to this last person.)