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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file predict_gender_ml-0.3.tar.gz.

File metadata

  • Download URL: predict_gender_ml-0.3.tar.gz
  • Upload date:
  • Size: 136.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for predict_gender_ml-0.3.tar.gz
Algorithm Hash digest
SHA256 8d79f8c5ec23eaf378fcb93a2cb9f03b705faf35ff2bad1a961af46abd7c51d2
MD5 cdcbecc89c98afe7d938292821937a4b
BLAKE2b-256 3b97c3995f3046b2965a54c6ea1edc174935f512b55068be79cfa933671c64e2

See more details on using hashes here.

File details

Details for the file predict_gender_ml-0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for predict_gender_ml-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2634d0f2265d2c7cdcbfeacbdfa50aa2dc10c457d383cd08e05664c2c0d5f88c
MD5 157f0deb5dfe0e5d02c34cda57000bf4
BLAKE2b-256 7d457f9d17afba5bae471161b34b36293c2f65c12f03b035d4e6a2f7e40dc797

See more details on using hashes here.

Supported by

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