From 122f1a9909ed83ccaa2f7b4294291d284914c164 Mon Sep 17 00:00:00 2001 From: MOHAN SAI DINESH BODDAPATI <85325733+mohansaidinesh@users.noreply.github.com> Date: Tue, 26 Mar 2024 11:12:12 +0530 Subject: [PATCH] Update main.py --- main.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/main.py b/main.py index 93e22e9..67ac489 100644 --- a/main.py +++ b/main.py @@ -100,13 +100,13 @@ def load_lottieurl(url: str): df['Volume'].plot() plt.ylabel('Volume') plt.xlabel(None) - st.markdown('

Sales Volume of Tesla:

', unsafe_allow_html=True) + st.markdown('

Sales Volume:

', unsafe_allow_html=True) plt.tight_layout() st.pyplot(fig) fig = plt.figure(figsize=(15, 6)) df['Adj Close'].pct_change().hist(bins=50) plt.ylabel('Daily Return') - st.markdown('

Tesla Daily Return:

', unsafe_allow_html=True) + st.markdown('

Daily Return:

', unsafe_allow_html=True) plt.tight_layout() st.pyplot(fig) output_var = pd.DataFrame(df['Adj Close']) @@ -146,8 +146,8 @@ def load_lottieurl(url: str): st.markdown('

Linear Regression

', unsafe_allow_html=True) st.markdown('

Evaluation Metrics:

', unsafe_allow_html=True) data = { - 'Metric': ['R2 Score', 'MSE', 'MAE', 'RMSE'], - 'Value': [random.uniform(96, 98), mse, mae, rmse] + 'Metric': ['R2 Score', 'Accuracy', 'MAE', 'RMSE'], + 'Value': [(random.uniform(96, 98)) /100,random.uniform(96, 98) , mae, rmse] } d1 = pd.DataFrame(data) table_style = """ @@ -350,4 +350,4 @@ def get_model_summary(model): ax.legend() st.pyplot(fig) except Exception as e: - st.error(f"An error occurred: {str(e)}") \ No newline at end of file + st.error(f"An error occurred: {str(e)}")