Skip to content

This project aims to detect/predict the gender of individuals from their names using Machine Learning algorithms and deploy the Machine Learning model using FLASK.

License

Notifications You must be signed in to change notification settings

kanchitank/Gender-Classification-Web-App-Using-Flask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gender Classification Web App Using FLASK

This project aims to detect/predict the gender of individuals from their names using Machine Learning algorithms and deploying the Machine Learning model using FLASK.

Algorithms Used:

  • Decision Tree
  • Naive Bayes

Dataset

I have created a dataset "Names_dataset.csv" by combining three different datasets namely Indian male names, Indian female names and English names.

How to run this model with Flask

Step 1: Install latest version of Python

Step 2: Clone this repository in your systems


Step 3: Creation of a directory and virtual environment

Type the following commands in the command prompt.

The above command "py -3 -m venv venv" is for virtual environment creation.

Step 4: Activation

Now type the following command in the command prompt to activate the virtual environment.

Step 5: Install FLASK


Step 6: Install the packages


pip install flask_bootstrap

pip install pandas

pip install sklearn

Step 7: Set FLASK_APP and run the flask


Step 8: Go to http://127.0.0.1:5000/ in the browser

After running the above command copy the address provided by the prompt after successful execution of the application and paste it in the browser, click enter to see the output.

The output would be the following:


image

Step 9: Enter any name in the input field and click the "Predict" button to see the results


image

RESULT:


image

More Prediction Results:







About

This project aims to detect/predict the gender of individuals from their names using Machine Learning algorithms and deploy the Machine Learning model using FLASK.

Topics

Resources

License

Stars

Watchers

Forks