Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customer Purchase Prediction Model Using Logistic Regression #66

Merged
merged 1 commit into from
Oct 6, 2024

Conversation

Mefisto04
Copy link
Contributor

Pull Request Description:

This PR introduces a logistic regression model for predicting whether a customer will make a purchase based on their age and estimated salary. The model uses a dataset with columns for Age, EstimatedSalary, and Purchased (target variable).

Key steps include:

  1. Loading customer data from a CSV file.
  2. Preprocessing the data with feature scaling.
  3. Splitting the dataset into training and testing sets.
  4. Training the logistic regression model on the training data.
  5. Evaluating the model's performance on the test data using accuracy score and confusion matrix.

Changes:

  • Added logistic regression model for purchase prediction.
  • Included preprocessing steps like data scaling (standardization).
  • Implemented model evaluation using accuracy and confusion matrix.

@abhisek247767 abhisek247767 merged commit bffd3ee into abhisek247767:temp Oct 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants