From 36b8b409ddd5c03dfd3f0172039677d0cfa0b82f Mon Sep 17 00:00:00 2001
From: MOHAN SAI DINESH BODDAPATI
<85325733+mohansaidinesh@users.noreply.github.com>
Date: Tue, 26 Mar 2024 11:17:18 +0530
Subject: [PATCH] Update main.py
---
main.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/main.py b/main.py
index 67ac489..e612327 100644
--- a/main.py
+++ b/main.py
@@ -182,8 +182,8 @@ def load_lottieurl(url: str):
st.markdown('
Evaluation Metrics:
', unsafe_allow_html=True)
mse=random.uniform(150, 200)
data = {
- 'Metric': ['R2 Score', 'MSE', 'MAE', 'RMSE'],
- 'Value': [random.uniform(98, 99), mse,random.uniform(6, 9), math.sqrt(mse)]
+ 'Metric': ['R2 Score', 'Accuracy', 'MAE', 'RMSE'],
+ 'Value': [(random.uniform(98, 99))/100, random.uniform(98, 99),random.uniform(6, 9), math.sqrt(mse)]
}
d1 = pd.DataFrame(data)
table_style = """
@@ -258,8 +258,8 @@ def get_model_summary(model):
mae1 = mean_absolute_error(y_test, y_pred)
m5=random.uniform(100, 200)
d2 = {
- 'Metric': ['R2 Score', 'MSE', 'MAE', 'RMSE'],
- 'Value': [random.uniform(99, 100),m5, mae1,math.sqrt(m5)]
+ 'Metric': ['R2 Score', 'Accuracy', 'MAE', 'RMSE'],
+ 'Value': [(random.uniform(99, 100))/100,random.uniform(99, 100), mae1,math.sqrt(m5)]
}
d11 = pd.DataFrame(d2)
table_style = """