Skip to content

Commit

Permalink
remove linear regression
Browse files Browse the repository at this point in the history
Made the predictions much worse
  • Loading branch information
jackturner83 committed Feb 19, 2024
1 parent 2bd28e3 commit d5996f9
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 114 deletions.
2 changes: 1 addition & 1 deletion data/gpt_prediction.csv
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Prediction
"ChatCompletionMessage(content='Based on the data provided, the predicted closing price for the next day is 187.93.', role='assistant', function_call=None, tool_calls=None)"
"ChatCompletionMessage(content='Based on the data provided, the predicted closing price for the next day would be $180.55.', role='assistant', function_call=None, tool_calls=None)"
3 changes: 0 additions & 3 deletions data/linear_regression_prediction.csv

This file was deleted.

2 changes: 1 addition & 1 deletion src/gpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def make_prediction(combined_summary, linear_regression_summary):
},
{
"role": "user",
"content": f"Give me a next day closing price prediction based on the data from these two CSV files: {combined_summary}, {linear_regression_summary}."
"content": f"Give me a next day closing price prediction based on the data from the attached file. {combined_summary}."
},
],
)
Expand Down
108 changes: 0 additions & 108 deletions src/predict_closing_price.py

This file was deleted.

1 change: 0 additions & 1 deletion src/run_all_scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ def main():
script_paths = [
"fetch_historical_data.py",
"fetch_sentiment_data.py",
"predict_closing_price.py",
"combine_data.py"
]

Expand Down

0 comments on commit d5996f9

Please sign in to comment.