Skip to main content

Predicts gender based on name with ML Models

Project description

Predict Gender ML

Predict Gender ML is a tool to predict a person's gender based on their name using ML Models.

Usage

import predict_gender_ml


prediction = predict_gender_ml.predict("John")
gender = prediction.gender
probabilities = prediction.probability
print(f"John is {gender} with a confidence of {max(probabilities)}%")
> John is M with a confidence of 73%

ML Models

Data

Data used to train models: https://archive.ics.uci.edu/dataset/591/gender+by+name

Accuracy on trained data

Fast Model: 80%

Accurate Model: 87%

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

predict_gender_ml-0.3.tar.gz (136.9 kB view hashes)

Uploaded Source

Built Distribution

predict_gender_ml-0.3-py3-none-any.whl (136.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page