{"id":24494971,"url":"https://github.com/kplanisphere/gender-classification-perceptron","last_synced_at":"2025-08-29T21:32:52.706Z","repository":{"id":273304422,"uuid":"919260843","full_name":"KPlanisphere/gender-classification-perceptron","owner":"KPlanisphere","description":"Artificial Inteligence Tecniques","archived":false,"fork":false,"pushed_at":"2025-01-20T04:16:57.000Z","size":337,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-15T04:43:21.468Z","etag":null,"topics":["artificial-intelligence","artificial-intelligence-algorithms","artificial-neural-networks","classification","classifier-model","perceptron","perceptron-learning-algorithm","perceptrons","sex-classifier"],"latest_commit_sha":null,"homepage":"https://linktr.ee/planisphere.kgz","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KPlanisphere.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-20T04:12:06.000Z","updated_at":"2025-01-20T04:18:00.000Z","dependencies_parsed_at":"2025-01-20T05:22:56.059Z","dependency_job_id":"f0dd9367-3d09-4ac1-a47b-b2d1dd0a648a","html_url":"https://github.com/KPlanisphere/gender-classification-perceptron","commit_stats":null,"previous_names":["kplanisphere/gender-classification-perceptron"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/KPlanisphere/gender-classification-perceptron","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KPlanisphere%2Fgender-classification-perceptron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KPlanisphere%2Fgender-classification-perceptron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KPlanisphere%2Fgender-classification-perceptron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KPlanisphere%2Fgender-classification-perceptron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KPlanisphere","download_url":"https://codeload.github.com/KPlanisphere/gender-classification-perceptron/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KPlanisphere%2Fgender-classification-perceptron/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272766548,"owners_count":24989404,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-29T02:00:10.610Z","response_time":87,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["artificial-intelligence","artificial-intelligence-algorithms","artificial-neural-networks","classification","classifier-model","perceptron","perceptron-learning-algorithm","perceptrons","sex-classifier"],"created_at":"2025-01-21T20:18:20.838Z","updated_at":"2025-08-29T21:32:52.657Z","avatar_url":"https://github.com/KPlanisphere.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gender Classification Perceptron\n\nThis repository contains a simple perceptron-based model that classifies a person's gender based on height, weight, testosterone levels, and estrogen levels. The model is trained using a dataset stored in `sex.txt`.\n\n\u003cp align= \"center\"\u003e\n    \u003cimg src=\"https://github.com/user-attachments/assets/15bd32c6-6dbb-4fba-8e89-b56a12031ebd\" style=\"width: 50%; height: auto;\"\u003e\n\u003c/p\u003e\n\n## 📌 Overview\n\nThe perceptron algorithm is used to classify individuals into two categories:\n- **0 → Male**\n- **1 → Female**\n\nThe model takes the following features as input:\n- Height (cm)\n- Weight (kg)\n- Testosterone levels (ng/dL)\n- Estrogen levels (pg/mL)\n\n## 🚀 Requirements\n\nTo run this project, you need:\n\n- Python 3.x\n- Required libraries:\n```bash\n  pip install matplotlib\n```\n\n## 🔧 Usage\n\n### 1️⃣ Prepare the Dataset\n\nEnsure the file `sex.txt` is in the same directory. The dataset should follow this format:\n\n```arduino\nheight,weight,sex,testosterone,estrogen;\n```\n\nExample:\n\n```170,56,1,52.27,259.17;\n172,63,0,909.52,18.17;\n```\n\n-   **1** → Female\n-   **0** → Male\n\n### 2️⃣ Train the Model\n\nRun the script:\n\n```bash\npython perceptron.py\n```\n\nThe program will train a perceptron with 10,000 iterations using the dataset.\n\n### 3️⃣ Make Predictions\n\nAfter training, the program prompts the user for:\n\n-   Height (cm)\n-   Weight (kg)\n-   Testosterone levels (ng/dL)\n-   Estrogen levels (pg/mL)\n\nThen, the perceptron predicts and outputs:\n\n```diff\n-\u003e FEMALE\n```\n\nor\n\n```diff\n-\u003e MALE\n```\n\n### 4️⃣ Error Plot\n\nAt the end of execution, the program generates a plot displaying training errors over time.\n\n\u003cp align= \"center\"\u003e\n    \u003cimg src=\"https://github.com/user-attachments/assets/d7713daf-2f66-4c38-86ef-584328d72aa3\" style=\"width: 50%; height: auto;\"\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkplanisphere%2Fgender-classification-perceptron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkplanisphere%2Fgender-classification-perceptron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkplanisphere%2Fgender-classification-perceptron/lists"}