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.1.tar.gz
(850.8 kB
view hashes)
Built Distribution
Close
Hashes for predict_gender_ml-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3dd6e8b6f8477e10c736b9e08b7db5ab3f59e3588d371d62da6f0ce5f2287d94 |
|
MD5 | e9baa9003f044b59aa6128b3da9959a6 |
|
BLAKE2b-256 | 2f7487d2867fdf99d7c8bac4984ef321916013139b992c45bba7fa3ba8f0294c |