In this task, you will learn how to measure the speed and cost of a certain function (in Python). The most basic way to determine how fast your function runs is:
Below is the code of a Simple Text Scoring AI-inspired Sentiment prototype. Open you VSCode and run it at least 3 times with different inputs (your input must contain at least one of the positive and negative words specified in the sentiment_score function e.g. "My love life is good but a bit sad.")
Write the result in your Google Form with the format:
Test 1:
Prompt: My love life is good but a bit sad.
Score: (number)
Result: .0876 ms
Test 2:
Prompt: (prompt 2)
Score: (number)
Result: .0876 ms
Test 3:
Prompt: (prompt 3)
Score: (number)
Result: .0876 ms