Assignment
Try to solve this problem using a prompting approach where you provide a lot of information upfront. We suggest constructing a prompt like so:
- “Carry out regression on a dataset with the following shape:
- Open: This is the stock price at the beginning of the trading day.
- Close: This represents the stock price at the end of the trading day.
- High: This value shows the highest price the stock reached during the trading day.
- Low: This indicates the lowest price the stock hit during the trading day.
- Volume: This is the total number of shares that were traded throughout the day before the market closed.
Suggest all the steps from loading and pre-processing the data to training and evaluating the model. You must show code for each step.”
Then see what the response is and try to run the suggested code snippet for each step. If you encounter any issues, indicate the error to Copilot with a question prompt like...