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
Release history Release notifications | RSS feed
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.2.tar.gz
(850.8 kB
view hashes)
Built Distribution
Close
Hashes for predict_gender_ml-0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd1673c0ea680bdf3f6515c925ef0382f8d92946e11f33748efa3b4fa234636f |
|
MD5 | 20798376b124231f6bb9cbd3a2c8aa88 |
|
BLAKE2b-256 | 823441aa863ef97cc323141be1a5fd2529352a0cacfe38a67a253f820effbd14 |