Zero_to_Hero_Machine_Learning / pages /23.K-nearest_neighbors.py
shwetashweta05's picture
Update pages/23.K-nearest_neighbors.py
062face verified
raw
history blame contribute delete
718 Bytes
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()