Skip to main content

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%

Metadata

Release files for predict-gender-ml 0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for predict-gender-ml 0.3
File Size Uploaded Provenance Actions
predict_gender_ml-0.3.tar.gz 136.9 kB Without provenance Details for predict_gender_ml-0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for predict-gender-ml 0.3
File Interpreter ABI Platform Actions
predict_gender_ml-0.3-py3-none-any.whl Python 3 none any Details for predict_gender_ml-0.3-py3-none-any.whl

Total release size: 273.0 kB

Release files / predict_gender_ml-0.3.tar.gz

Download URL predict_gender_ml-0.3.tar.gz
Size 136.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8d79f8c5ec23eaf378fcb93a2cb9f03b705faf35ff2bad1a961af46abd7c51d2
BLAKE2b-256 checksum
How to use checksums
3b97c3995f3046b2965a54c6ea1edc174935f512b55068be79cfa933671c64e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release files / predict_gender_ml-0.3-py3-none-any.whl

Download URL predict_gender_ml-0.3-py3-none-any.whl
Size 136.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2634d0f2265d2c7cdcbfeacbdfa50aa2dc10c457d383cd08e05664c2c0d5f88c
BLAKE2b-256 checksum
How to use checksums
7d457f9d17afba5bae471161b34b36293c2f65c12f03b035d4e6a2f7e40dc797
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Security for predict-gender-ml 0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page