Skip to content

A Penguin Species Prediction App made with Python and Streamlit

License

Notifications You must be signed in to change notification settings

Nneji123/Penguin-Species-Prediction-App

Repository files navigation

penguins

Penguin-Species-Prediction-App

A web application made with python and streamlit to predict the species of penguin given the input features.

Language Framework hosted build

Problem Statement

The goal of this project was to develop a machine learning classifier model that could accurately predict the species of penguin namely;

  1. Chinstrap
  2. Adelie
  3. Gentoo

The predictions were based on the following features:

  1. culmen_length_mm
  2. culmen_depth_mm
  3. flipper_length_mm
  4. body_mass_g
  5. sex/gender

Preview

penguin_gif

Data

The data used was gotten from this repository GitHub)

Algorithm Used

In this project I used two different Logistic Regression classifier approaches

  1. One vs One Approach: One-vs-all classification is a method which involves training distinct binary classifiers, each designed for recognizing a particular class.

  2. One vs Rest Approach: One-vs-rest (OvR for short, also referred to as One-vs-All or OvA) is a heuristic method for using binary classification algorithms for multi-class classification. It involves splitting the multi-class dataset into multiple binary classification problems.

The final model used for the app was the One vs One Classifier which had the best accuracy.

Requirements

To run a demo do the following:

  1. Clone the repository.
  2. Install the requirements from the requirements.txt file:
pip install -r requirements.txt
  1. Then from your command line run:
streamlit run penguin_predictor_app.py

Then you can view the site on your local server.

Deployment

The app was made and deployed with streamlit and streamlit cloud.

Streamlit is an open source app framework in Python language. It helps us create web apps for data science and machine learning in a short time. It is compatible with major Python libraries such as scikit-learn, Keras, PyTorch, SymPy(latex), NumPy, pandas, Matplotlib etc.

The live link can be seen here: https://share.streamlit.io/nneji123/penguin-species-prediction-app/main/penguin_predictor_app.py

About

A Penguin Species Prediction App made with Python and Streamlit

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages