Skip to content
프로젝트

miguelestradam3/logistic_regression_with_smote

GitHub에서 보기

소개

This project demonstrates how to build a machine learning model that predicts a person's personality type based on a set of input characteristics.

AI 및 머신러닝

이 수치를 측정하는 방법

What you can do

  • Exploratory Data Analysis (EDA)
  • Data visualization with Seaborn
  • Label encoding for categorical data
  • Feature standardization

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
기록 수집 중
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

🧠 Personality Type Classification using Machine Learning

This project demonstrates how to build a machine learning model that predicts a person's personality type based on a set of input characteristics. The notebook follows a complete machine learning workflow, including data exploration, preprocessing, handling class imbalance, model training, and evaluation using Logistic Regression.


📌 Features

  • Exploratory Data Analysis (EDA)
  • Data visualization with Seaborn
  • Label encoding for categorical data
  • Feature standardization
  • Class imbalance handling using SMOTE
  • Train/Test split
  • Logistic Regression classifier
  • Model evaluation using multiple classification metrics

🛠 Technologies Used

  • Python
  • Pandas
  • NumPy
  • Matplotlib
  • Seaborn
  • Scikit-learn
  • imbalanced-learn (SMOTE)
  • Jupyter Notebook

📚 Libraries

pandas
numpy
matplotlib
seaborn
scikit-learn
imbalanced-learn

📊 Dataset

The project uses a synthetic personality dataset containing various personal attributes used to classify an individual's personality type.

The dataset includes multiple input features and a target variable:

  • Personality Type (Target Variable)

Categorical labels are converted into numerical values using LabelEncoder before model training.


⚙️ Machine Learning Workflow

The notebook performs the following steps:

  • Load the dataset
  • Explore and visualize the data
  • Encode categorical labels
  • Split the dataset into training and testing sets
  • Standardize features using StandardScaler
  • Balance the training data using SMOTE
  • Train a Logistic Regression model
  • Generate predictions
  • Evaluate model performance

📈 Model Evaluation

The model is evaluated using:

  • Accuracy Score
  • Precision Score
  • Recall Score
  • ROC-AUC Score
  • Confusion Matrix
  • Classification Report
  • ROC Curve

These metrics provide a comprehensive assessment of the classifier's performance.


🚀 Getting Started

Install dependencies

pip install -r requirements.txt

Or install them manually:

pip install pandas numpy matplotlib seaborn scikit-learn imbalanced-learn

▶️ Running the Project

Launch Jupyter Notebook:

jupyter notebook

Open:

main.ipynb

Run the notebook cells sequentially to reproduce the complete machine learning workflow.


🎯 Learning Objectives

This project demonstrates how to:

  • Perform exploratory data analysis
  • Encode categorical variables
  • Standardize numerical features
  • Handle imbalanced datasets using SMOTE
  • Train a Logistic Regression classifier
  • Evaluate classification models using multiple performance metrics
  • Interpret ROC curves and confusion matrices

관련 프로젝트 살펴보기

불러오는 중…