Giter Club home page Giter Club logo

genderprediction's Introduction

Gender Prediction given names

Gender prediction from Indian names. The trained model tries to predict the gender of the person given the name of the person. The model has been trained only with Indian names for now.

Using the model:

You need python3.6 and tensorflow 1.8 for running the model.

clone the repo:

git clone https://github.com/mandalbiswadip/genderPrediction.git

cd genderPrediction

Create a virtual environment if you like to work in one and install the requirements:

pip3 install -r requirements.txt

Put the project path in scripts.paths.py in the HOME variable. It should look like this:

HOME = "folder/genderPrediction"

Finally, get the prediction with prediction probabilities:

python3 classify.py animesh
>>Gender for animesh: [{'male': 0.92938721, 'female': 0.070612811}]

Model description: Character level embedding(One hot embedding) has been used and has been fed to a sequential Recurrent Neural Network(bidirectional). Currently, the model is trained for names with maximum 20 characters.

Sample Results:

For a given name, probability of being the gender 'male' or 'female' predicted by the model.

name: 'biswadip' { 'male': 0.9898892, 'female': 0.01011086 }

name: 'Aadarsh' { 'male': 0.9724812, 'female': 0.02751883 }

name: 'Maadhav' { 'male': 0.97186756, 'female': 0.02813238 }

name: 'Pabitra' { 'male': 0.270486, 'female': 0.729514 }

Future work:

  • Migrate to tensorflow 2.0
  • remove the limit on maximum characters

genderprediction's People

Contributors

anurag-02 avatar mandalbiswadip avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

adipat

genderprediction's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.