File size: 718 Bytes
51d0f02
 
 
e2ccda4
51d0f02
 
 
 
062face
 
51d0f02
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import streamlit as st

def main():
    st.title("K-Nearest Neighbors")

    st.markdown(
        """
        ### What is KNN?
        KNN (k-Nearest Neighbors (k-NN)** is a supervised machine learning algorithm used for classification and regression tasks. It is a simple  algorithm that makes predictions based on similarity between data points.
        """
    )

    # Button to redirect to another Hugging Face space
    if st.button("Explore More"):
        st.markdown(
            '<a href="https://huggingface.co/spaces/shwetashweta05/K-nearest_neighbors/blob/main/pages/KNN.py" target="_blank">Click here to explore!</a>',
            unsafe_allow_html=True,
        )

if __name__ == "__main__":
    main()