Archana731 commited on
Commit
eb7c3ee
Β·
verified Β·
1 Parent(s): 92288de

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +87 -0
app.py CHANGED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+
3
+ # Page settings
4
+ st.set_page_config(
5
+ page_title="πŸ“˜ ML Notes Hub",
6
+ layout="wide",
7
+ initial_sidebar_state="expanded"
8
+ )
9
+
10
+ # --- Custom CSS ---
11
+ st.markdown("""
12
+ <style>
13
+ .main-title {
14
+ font-size: 3rem;
15
+ color: #004080;
16
+ font-weight: 700;
17
+ text-align: center;
18
+ margin-bottom: 0.5rem;
19
+ }
20
+ .subtitle {
21
+ font-size: 1.2rem;
22
+ color: #333333;
23
+ text-align: center;
24
+ margin-bottom: 2rem;
25
+ }
26
+ .note-box {
27
+ background-color: #f9f9f9;
28
+ padding: 1.5rem;
29
+ border-radius: 10px;
30
+ box-shadow: 0 2px 8px rgba(0,0,0,0.05);
31
+ margin-bottom: 1rem;
32
+ }
33
+ </style>
34
+ """, unsafe_allow_html=True)
35
+
36
+ # --- Sidebar Navigation ---
37
+ st.sidebar.title("πŸ“š ML Notebook")
38
+ page = st.sidebar.radio("Go to", ["Home", "Supervised Learning", "Unsupervised Learning", "Evaluation Metrics", "Resources"])
39
+
40
+ # --- Home Page ---
41
+ if page == "Home":
42
+ st.markdown('<div class="main-title">πŸ“˜ Machine Learning Notes</div>', unsafe_allow_html=True)
43
+ st.markdown('<div class="subtitle">Your personal guide to mastering ML concepts!</div>', unsafe_allow_html=True)
44
+
45
+ st.markdown("### πŸš€ Why Use This App?")
46
+ st.markdown("""
47
+ - Concise, organized ML notes
48
+ - Easy to navigate concepts
49
+ - Interactive widgets (coming soon)
50
+ - Great for revision, projects, and interviews
51
+ """)
52
+
53
+ st.markdown('<div class="note-box">', unsafe_allow_html=True)
54
+ st.markdown("### πŸ“Œ Topics Covered:")
55
+ st.markdown("""
56
+ - πŸ”Ή Supervised Learning
57
+ - πŸ”Ή Unsupervised Learning
58
+ - πŸ”Ή Model Evaluation Metrics
59
+ - πŸ”Ή Data Preprocessing
60
+ - πŸ”Ή Tips for Interviews
61
+ - πŸ”Ή Useful Resources
62
+ """)
63
+ st.markdown('</div>', unsafe_allow_html=True)
64
+
65
+ st.markdown("πŸ›  *More features coming soon: interactive examples, quizzes, and more!*")
66
+
67
+ # --- Additional Pages Placeholder ---
68
+ elif page == "Supervised Learning":
69
+ st.title("πŸ” Supervised Learning")
70
+ st.write("This section will contain detailed notes on regression, classification, and more.")
71
+
72
+ elif page == "Unsupervised Learning":
73
+ st.title("🧩 Unsupervised Learning")
74
+ st.write("Learn about clustering, dimensionality reduction, and pattern discovery.")
75
+
76
+ elif page == "Evaluation Metrics":
77
+ st.title("πŸ“ Model Evaluation Metrics")
78
+ st.write("Accuracy, precision, recall, F1-score, confusion matrix and more.")
79
+
80
+ elif page == "Resources":
81
+ st.title("πŸ“š Resources")
82
+ st.markdown("""
83
+ - [Scikit-learn Docs](https://scikit-learn.org/)
84
+ - [Kaggle Courses](https://www.kaggle.com/learn)
85
+ - [Google ML Crash Course](https://developers.google.com/machine-learning/crash-course)
86
+ """)
87
+