Spaces:
Sleeping
Sleeping
File size: 2,683 Bytes
3db4a85 60c8210 3db4a85 5bbfcb8 3db4a85 5bbfcb8 3db4a85 2dac8ea 5bbfcb8 3db4a85 5bbfcb8 3db4a85 dca7b2a 5bbfcb8 3db4a85 |
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 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
import streamlit as st
# --- Page Config ---
st.set_page_config(page_title="AI Classifier and Clustering Explorer", page_icon="π€", layout="wide")
# --- Project Info Section ---
st.markdown(
"""
<div style="text-align: center;">
<h1 style="color: #4CAF50;">π AI Classifier and Clustering Explorer π</h1>
<h3 style="color: #555;">Explore ML Algorithms Visually & Analyze Performance</h3>
<p style="font-size: 18px;"><b>Project Description:</b> This project visualizes different machine learning models and their performance on classification and clustering tasks using various datasets.</p>
<p style="font-size: 18px;"><b>Team Members:</b> Ahmad Raza, Hamima Zulfiqar, Aqsa Zia</p>
</div>
""",
unsafe_allow_html=True
)
st.markdown("---")
# --- Sidebar Buttons ---
st.sidebar.title("π Choose a Task")
st.sidebar.markdown("## π Classifiers")
knn_clicked = st.sidebar.button("π΅ KNN: Diagram & Prediction")
naive_bayes_clicked = st.sidebar.button("π’ Naive Bayes: Prediction")
random_forest_clicked = st.sidebar.button("π Random Forest: Prediction")
st.sidebar.markdown("## π¨ Clustering")
kmeans_clicked = st.sidebar.button("π΄ K-Means: Visualization")
st.sidebar.markdown("## π Comparison")
comparison_clicked = st.sidebar.button("π Compare All Models")
# --- Main Area Display based on Button Click ---
if knn_clicked:
st.header("π΅ K-Nearest Neighbors (KNN)")
st.image("KNN.PNG", caption="KNN Diagram", use_container_width=True)
if naive_bayes_clicked:
st.header("π’ Naive Bayes Classifier")
st.write("You selected Naive Bayes. Running prediction...")
st.image("Naive Baies.PNG", caption="ConfusionMatric for NaiveBaise", use_container_width=True)
if random_forest_clicked:
st.header("π Random Forest Classifier")
st.write("You selected Random Forest. Running prediction...")
st.image("Random Forest.PNG", caption="ConfusionMatric for Random Forest", use_container_width=True)
if kmeans_clicked:
st.header("π΄ K-Means Clustering")
st.write("You selected K-Means Clustering. Running visualization...")
st.image("Clustering.PNG", caption="ConfusionMatric for K-Means", use_container_width=True)
if comparison_clicked:
st.header("π Model Performance Comparison")
st.write("Comparing performance of all models...")
st.image("Comparison.PNG", caption="ConfusionMatric for K-Means", use_container_width=True)
# --- Footer ---
st.markdown("---")
st.markdown(
"""
<div style="text-align: center; font-size: 16px;">
Made with β€οΈ by <b>Team Volund</b>
</div>
""",
unsafe_allow_html=True
)
|