In this project, I have created a simple machine learning web application using python libraries streamlit and scikit-learn. The iris flower dataset is one of the default or sample datasets in sklearn. I have used pandas to create dataframes and used the RandomForestClassifier function of sklearn to classify the type of iris flower. It was great experience to write a simple web app with streamlit. I refered a article from website towardsdatascience.com to create this project.
Clone this repo to your local machine using https://github.com/suyashphatak23/Iris-Flower-Classifier
-
Open Command Prompt
-
Install streamlit, pandas and sklearn python-libray in your local machine by using following commands in command prompt:
> pip install streamlit
> pip install pandas
> pip install sklearn
-
Again in command prompt go to your project directory by typing:
> cd path//to//your//project//directory//
-
Then type the following:
> streamlit run code.py
-
Then it will open the website in the default browser as localhost:8801 port.