Skip to content

Conversation

@cham-aayush
Copy link

  1. Removed duplicate import of MinMaxScaler.

  2. Fixed % Change formula → now uses .pct_change().

  3. Fixed Annual Return formula (removed -1, kept scaling correct).

  4. Replaced deprecated .append() with pd.concat().

  5. Removed hardcoded scale factor → replaced with scaler.inverse_transform().

  6. Model filename check → corrected to "stock_sentiment_model.h5" and added error handling.

  7. Chart improvements → added legends and reordered plotting for clarity.

  8. Titles cleanup → replaced second st.title with st.header for a cleaner layout.

1. Removed duplicate import of MinMaxScaler.

2. Fixed % Change formula → now uses .pct_change().

3. Fixed Annual Return formula (removed -1, kept scaling correct).

4. Replaced deprecated .append() with pd.concat().

5. Removed hardcoded scale factor → replaced with scaler.inverse_transform().

6. Model filename check → corrected to "stock_sentiment_model.h5" and added error handling.

7. Chart improvements → added legends and reordered plotting for clarity.

8. Titles cleanup → replaced second st.title with st.header for a cleaner layout.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant