File size: 1,518 Bytes
7bda0a5
 
 
 
 
 
 
 
 
 
 
 
f4e26b8
7bda0a5
 
 
 
 
b12e77d
fef7f72
 
7bda0a5
fef7f72
7bda0a5
 
 
fef7f72
 
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
58
59
60
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 , col3 = st.columns([1,0.2,1])
df1 = sf.model_metrics_table_func()
st.dataframe(df1,hide_index  = True,use_container_width=True) 

# st.plotly_chart(sf.elasticity_and_media(media_df))
with col1:
    st.plotly_chart(sf.elasticity(media_df))
with col2:
    st.write("")
with col3:
    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))