SUNGJIN LEE commited on
Commit
685ddb5
1 Parent(s): 27ecc43

Recommendation System 개선

Browse files
{pages → Pages}/About.py RENAMED
File without changes
Pages/Algorithm.py ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ import pandas as pd
3
+ from datasets import load_dataset
4
+ import data
5
+ import seaborn as sns
6
+ import tabs.machine_learning as machine_learning
7
+ import tabs.reinforcement_learning as reinforcement_learning
8
+ import tabs.threshold_optimization as threshold_optimization
9
+
10
+ st.set_page_config(layout="wide")
11
+
12
+ st.write("# Algorithm")
13
+
14
+ @st.cache_data(show_spinner=False)
15
+ def load_labeled_data():
16
+ dataset = load_dataset('skt-asap/labeled-dataset', data_files="Labeled.csv", token=data.token, streaming=True)
17
+ return dataset
18
+
19
+ with st.spinner("데이터 로딩 중..."):
20
+ dataset = load_labeled_data()
21
+
22
+
23
+ tab1, tab2, tab3 = st.tabs(["Threshold Optimization", "Machine Learning", "Reinforcement Learning"])
24
+
25
+ with tab1:
26
+ threshold_optimization.show()
27
+ with tab2:
28
+ machine_learning.show()
29
+ with tab3:
30
+ reinforcement_learning.show()
{pages → Pages}/Dashboard.py RENAMED
File without changes
Pages/Data.py ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # import streamlit as st
2
+ # import pandas as pd
3
+ # from datasets import load_dataset
4
+ # import data
5
+ # import seaborn as sns
6
+
7
+ # st.set_page_config(layout="wide")
8
+
9
+ # st.write("# Data")
10
+
11
+ # with st.spinner("데이터 로딩 중..."):
12
+ # df, df_map = data.load_data()
13
+ # with st.expander("Data Description"):
14
+ # st.write(df.describe())
15
+
16
+ # st.tabs(
17
+ # ["Data", "Map"]
18
+ # )
{pages → Pages}/Home.py RENAMED
File without changes
{pages → Pages}/Recommendation System.py RENAMED
File without changes
app.py CHANGED
@@ -27,24 +27,24 @@ login_page = st.Page(login, title="Log in", icon=":material/login:")
27
  logout_page = st.Page(logout, title="Log out", icon=":material/logout:")
28
 
29
  Home = st.Page(
30
- "pages/Home.py", title="Home", icon=":material/home:"
31
  )
32
  About = st.Page(
33
- "pages/About.py", title="About", icon=":material/info:"
34
  )
35
 
36
  Data = st.Page(
37
- "pages/Data.py", title="Data", icon=":material/data_usage:"
38
  )
39
  Algorithm = st.Page(
40
- "pages/Algorithm.py", title="Algorithm", icon=":material/insights:"
41
  )
42
 
43
  Dashboard = st.Page(
44
- "pages/Dashboard.py", title="Dashboard", icon=":material/dashboard:"
45
  )
46
  Recommendation_System = st.Page(
47
- "pages/Recommendation System.py",
48
  title="Recommendation System",
49
  icon=":material/assistant_photo:",
50
  )
 
27
  logout_page = st.Page(logout, title="Log out", icon=":material/logout:")
28
 
29
  Home = st.Page(
30
+ "Pages/Home.py", title="Home", icon=":material/home:"
31
  )
32
  About = st.Page(
33
+ "Pages/About.py", title="About", icon=":material/info:"
34
  )
35
 
36
  Data = st.Page(
37
+ "Pages/Data.py", title="Data", icon=":material/data_usage:"
38
  )
39
  Algorithm = st.Page(
40
+ "Pages/Algorithm.py", title="Algorithm", icon=":material/insights:"
41
  )
42
 
43
  Dashboard = st.Page(
44
+ "Pages/Dashboard.py", title="Dashboard", icon=":material/dashboard:"
45
  )
46
  Recommendation_System = st.Page(
47
+ "Pages/Recommendation System.py",
48
  title="Recommendation System",
49
  icon=":material/assistant_photo:",
50
  )
pages/Algorithm.py DELETED
@@ -1,17 +0,0 @@
1
- import streamlit as st
2
- import pandas as pd
3
- from datasets import load_dataset
4
- import data
5
- import seaborn as sns
6
-
7
- st.set_page_config(layout="wide")
8
-
9
- st.write("# Algorithm")
10
-
11
- with st.spinner("데이터 로딩 중..."):
12
- df, df_map = data.load_data()
13
- st.dataframe(df)
14
-
15
- st.tabs(
16
- ["Data", "Map"]
17
- )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
pages/Data.py DELETED
@@ -1,17 +0,0 @@
1
- import streamlit as st
2
- import pandas as pd
3
- from datasets import load_dataset
4
- import data
5
- import seaborn as sns
6
-
7
- st.set_page_config(layout="wide")
8
-
9
- st.write("# Data")
10
-
11
- with st.spinner("데이터 로딩 중..."):
12
- df, df_map = data.load_data()
13
- st.dataframe(df)
14
-
15
- st.tabs(
16
- ["Data", "Map"]
17
- )