Cyr-CK commited on
Commit
0785be0
·
1 Parent(s): c94b474

Added filtered dataset (from nov-24 to feb-25)

Browse files
Files changed (2) hide show
  1. app.py +2 -1
  2. sections/ml.py +30 -0
app.py CHANGED
@@ -34,8 +34,9 @@ home = st.Page("sections/home.py", title="🏠 Home")
34
  upload = st.Page("sections/upload.py", title="📥 Upload")
35
  statistics = st.Page("sections/statistics.py", title="📈 Statistics")
36
  analyze = st.Page("sections/analyze.py", title="🔍 Analyze")
 
37
  alerts = st.Page("sections/alerts.py", title="🚨 Alerts")
38
  about = st.Page("sections/about.py", title="📄 About")
39
 
40
- pg = st.navigation([home, upload, statistics, analyze, alerts, about])
41
  pg.run()
 
34
  upload = st.Page("sections/upload.py", title="📥 Upload")
35
  statistics = st.Page("sections/statistics.py", title="📈 Statistics")
36
  analyze = st.Page("sections/analyze.py", title="🔍 Analyze")
37
+ ml = st.Page("sections/ml.py", title="🤖 Machine Learning")
38
  alerts = st.Page("sections/alerts.py", title="🚨 Alerts")
39
  about = st.Page("sections/about.py", title="📄 About")
40
 
41
+ pg = st.navigation([home, upload, statistics, analyze, ml, alerts, about])
42
  pg.run()
sections/ml.py ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import pandas as pd
2
+ import plotly.express as px
3
+ import streamlit as st
4
+
5
+ if "parsed_df" not in st.session_state:
6
+ st.session_state.parsed_df = None
7
+
8
+ # Page title
9
+ st.title("Machine Learning")
10
+
11
+ # Loading data
12
+ if st.session_state.parsed_df is None:
13
+ st.info("Please upload a log file on the 'Upload' page.")
14
+ st.stop()
15
+
16
+ data = st.session_state.parsed_df
17
+
18
+ # Sidebar for controls
19
+ st.dataframe(data)
20
+
21
+
22
+ ##############################################
23
+ #### Preprocessing ####
24
+ ##############################################
25
+
26
+
27
+
28
+ ###############################################
29
+ #### Clustering ####
30
+ ###############################################