3 ms·
I think grading on multiple dimensions makes sense, though scaling is a challenge. As for analysis write-up: turns out, language models can also explain what t
by emeryberger 4y ago
I think grading on multiple dimensions makes sense, though scaling is a challenge.
As for analysis write-up: turns out, language models can also explain what the code does really well, in convincing vernacular. They generate reasonable comments.
https://twitter.com/emeryberger/status/1560618825208320001?s=20&t=_5G6G7bLzc_Y-_xuEQwLkg https://twitter.com/emeryberger/status/1560618825208320001?s...
As an illustrative example, I just typed in a little test into Copilot. I only typed the first line and the text that starts with "a paragraph explaining...", and typed a "#" for each comment. Copilot filled in the rest.
def compute_sum_recursively(n):
"""A paragraph explaining what this function does and why, and explaining its running time:
This function computes the sum of the first n natural numbers.
The running time of this function is O(n).
"""
# Base case: n = 0
if n == 0:
# The sum of the first 0 natural numbers is 0
return 0
else:
# Recursive case: n > 0
# The sum of the first n natural numbers is n + the sum of the first n-1 natural numbers
return n + compute_sum_recursively(n-1)
- contravariant 4y agoNow I'm curious if it can find the O(1) version of that same function.
- emeryberger 4y agoYes, it can. This is in the original article. Look for “output_sum_closed_form”. All I typed in was the function name.