{"id":18800918,"url":"https://github.com/devssh/genderethnicitydetector","last_synced_at":"2025-06-23T01:36:06.819Z","repository":{"id":95749942,"uuid":"150097788","full_name":"devssh/GenderEthnicityDetector","owner":"devssh","description":"Tensorflow Keras based pre-trained model to predict gender and ethnicity of Indian Names using Python","archived":false,"fork":false,"pushed_at":"2018-10-06T09:19:04.000Z","size":94218,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-03T15:21:45.228Z","etag":null,"topics":["andrew-ng","ethnicity-classifier","fuzzy","gender-classification","indian","lstm","lstm-model","pandas","pre-trained","tensorflow","tensorflow-models","text-classification","username-predictor"],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devssh.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-24T12:16:56.000Z","updated_at":"2023-04-19T08:16:40.000Z","dependencies_parsed_at":"2023-06-25T21:12:29.919Z","dependency_job_id":null,"html_url":"https://github.com/devssh/GenderEthnicityDetector","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/devssh/GenderEthnicityDetector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devssh%2FGenderEthnicityDetector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devssh%2FGenderEthnicityDetector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devssh%2FGenderEthnicityDetector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devssh%2FGenderEthnicityDetector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devssh","download_url":"https://codeload.github.com/devssh/GenderEthnicityDetector/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devssh%2FGenderEthnicityDetector/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261396229,"owners_count":23152442,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["andrew-ng","ethnicity-classifier","fuzzy","gender-classification","indian","lstm","lstm-model","pandas","pre-trained","tensorflow","tensorflow-models","text-classification","username-predictor"],"created_at":"2024-11-07T22:20:54.149Z","updated_at":"2025-06-23T01:36:01.807Z","avatar_url":"https://github.com/devssh.png","language":"Jupyter Notebook","readme":"# Gender and Ethnicity Predictor\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n\n\nPretrained models on 60k synthesized usernames for gender using baby names/110k usernames for ethnicity using LSTM inspired by AndrewNg DeepLearning.ai which works best for Indian names with \u003e 88% accuracy which can predict for huge datasets/scale using pandas + tensorflow(keras).\n\nSave time training it yourself by reusing this pre-trained model straight from github to do fuzzy detection on usernames. For improved performance hire a Data Scientist to improve the model or use transfer learning to retrain it. Pull requests are welcome!\n\n# Sample Output\n\n```\n0             RajSood25\n1           mukta57cute\n2    burnvipulkumarfire\n3      priyasubramanium\narray([[male, female]]) probability\n[[0.71 0.28]\n [0.11 0.88]\n [0.99 0.  ]\n [0.   0.99]]\n```\n\n\n```\n0        RajkumarSood\n1             mukta57\n2           johnsmith\n3         KeanuReeves\n4               Elias\n5    priyasubramanium\n6           Devashish\n\narray([[other, indian ethnicity]]) probability\n[[0.09 0.9 ]\n [0.33 0.66]\n [0.81 0.18]\n [0.88 0.11]\n [0.96 0.03]\n [0.05 0.94]\n [0.07 0.92]]\n ```\n\nModify the sample names in the python script with your own text and try!\n\nRequirements\n\n```\nPython 3.6\nPandas \nNumpy\nTensorflow 1.10\n```\n\nView in [Browser](https://github.com/devssh/GenderEthnicityDetector/blob/master/PredictGenderAndEthnicity.ipynb) or Run\n```\npython predict_gender_and_ethnicity.py\n```\n\nYou can retrain the model to work for gender and ethnicity of any country using the string_vectorizer. Need GPUs to train for worldwide.\n\nStar this repo to add to your favorite repos or fork the code!\nIf you have better datasets that I can train on do share!\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevssh%2Fgenderethnicitydetector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevssh%2Fgenderethnicitydetector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevssh%2Fgenderethnicitydetector/lists"}