Spaces:
Sleeping
Sleeping
File size: 1,413 Bytes
7bda0a5 f4e26b8 7bda0a5 f4e26b8 7bda0a5 f4e26b8 7bda0a5 f4e26b8 7bda0a5 f4e26b8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
import streamlit as st
import pandas as pd
import numpy as np
import plotly.express as px
import Streamlit_functions as sf
import response_curves_model_quality_base as rc1
st.set_page_config(
layout="wide"
)
st.header("Model Quality")
# st.write("MMM Model Quality")
st.plotly_chart(sf.mmm_model_quality(),use_container_width=True)
media_df = sf.media_data()
# Create two columns for start date and end date input
col1, col2 = st.columns(2)
st.dataframe(sf.model_metrics_table_func(),hide_index = True,use_container_width=True)
with col1:
st.plotly_chart(sf.elasticity(media_df))
with col2:
st.plotly_chart(sf.half_life(media_df))
# Dropdown menu options
options = [
'Broadcast TV',
'Cable TV',
'Connected & OTT TV',
'Display Prospecting',
'Display Retargeting',
'Video',
'Social Prospecting',
'Social Retargeting',
'Search Brand',
'Search Non-brand',
'Digital Partners',
'Audio',
'Email']
options1 = [
'View Line Plot',
'View Scattered Plot',
"View Both"]
col1, col2 = st.columns(2)
# Create a dropdown menu
with col1:
selected_option = st.selectbox('Select A Media Channel:', options)
selected_option2 = st.selectbox('Select A Chart Type', options1)
# Display the selected option
with col2:
st.write("")
st.plotly_chart(rc1.response_curves(selected_option,selected_option2)) |