An open API service indexing awesome lists of open source software.

https://github.com/anikchand461/personality-predictor

A Streamlit web app that predicts whether a person is an introvert or extrovert based on behavioral data using a Random Forest classifier.
https://github.com/anikchand461/personality-predictor

classification introvert-extrovert machine-learning personality-prediction random-forest-classifier streamlit

Last synced: about 2 months ago
JSON representation

A Streamlit web app that predicts whether a person is an introvert or extrovert based on behavioral data using a Random Forest classifier.

Awesome Lists containing this project

README

          

# ๐Ÿง  Personality Predictor - Introvert vs Extrovert

A **Streamlit web app** that predicts whether a person is an **introvert or extrovert** based on behavioral traits using a **Random Forest Classifier**.

### ๐Ÿ”— Live Demo

๐Ÿ‘‰ [Click to Try the App](https://personality-predictorr.streamlit.app)

---

## ๐Ÿ“Œ Features

* Takes in 4 simple inputs:

* Social event attendance
* Frequency of going outside
* Social media post frequency
* Friends circle size
* Predicts personality type: **Introvert ๐Ÿชซ** or **Extrovert ๐ŸŽ‰**
* Built with:

* Python ๐Ÿ
* Scikit-learn
* Streamlit
* Joblib

---

## ๐Ÿงช Dataset Info

* Source: [Kaggle Dataset](https://www.kaggle.com/datasets/rakeshkapilavai/extrovert-vs-introvert-behavior-data)
* 2900 rows ร— 8 columns
* Preprocessing steps:

* Converted categorical variables to binary (Yes/No โ†’ 1/0)
* Selected features with positive correlation to target
* Imputed missing values using `SimpleImputer`
* Used Random Forest for classification

---

## โš™๏ธ How to Run Locally

### 1. Clone the Repository

```bash
git clone https://github.com/your-username/personality-predictor.git
cd personality-predictor
```

### 2. Install Requirements

```bash
pip install -r requirements.txt
```

### 3. Run Streamlit App

```bash
streamlit run app.py
```

---

## ๐Ÿ“ File Structure

```
โ”œโ”€โ”€ app.py # Main Streamlit app
โ”œโ”€โ”€ personality_model.pkl # Trained Random Forest model
โ”œโ”€โ”€ requirements.txt # Python dependencies
โ””โ”€โ”€ README.md # Project documentation
```

---

## ๐Ÿ“Š Model Performance

* โœ… Accuracy: **90.3%**
* ๐Ÿ“ˆ Rยฒ Score: **0.62**
* โœ”๏ธ Trained using `RandomForestClassifier` from Scikit-learn

---

## ๐Ÿ“„ License

This project is licensed under the [MIT License](LICENSE).

---

## ๐Ÿ™‡โ€โ™‚๏ธ Author

Developed by **Anik Chand**

๐Ÿ”— [LinkedIn](https://linkedin.com/in/anikchand) | [GitHub](https://github.com/your-username)