{"id":23679669,"url":"https://github.com/msikorski93/logistic-regression-classifier-from-scratch","last_synced_at":"2026-05-19T02:06:11.874Z","repository":{"id":270105246,"uuid":"865417528","full_name":"msikorski93/Logistic-Regression-Classifier-From-Scratch","owner":"msikorski93","description":"Logistic regression created in Python for binary classification.","archived":false,"fork":false,"pushed_at":"2024-12-28T12:51:22.000Z","size":584,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-21T18:32:46.482Z","etag":null,"topics":["binary-classification","from-scratch","logistic-regression","python","wbcd"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","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/msikorski93.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":"2024-09-30T13:53:19.000Z","updated_at":"2024-12-28T12:51:26.000Z","dependencies_parsed_at":"2024-12-28T13:32:26.430Z","dependency_job_id":"8410b15a-6b0c-4f75-8b86-b1239b389d29","html_url":"https://github.com/msikorski93/Logistic-Regression-Classifier-From-Scratch","commit_stats":null,"previous_names":["msikorski93/logistic-regression-classifier-from-scratch"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/msikorski93/Logistic-Regression-Classifier-From-Scratch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msikorski93%2FLogistic-Regression-Classifier-From-Scratch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msikorski93%2FLogistic-Regression-Classifier-From-Scratch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msikorski93%2FLogistic-Regression-Classifier-From-Scratch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msikorski93%2FLogistic-Regression-Classifier-From-Scratch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/msikorski93","download_url":"https://codeload.github.com/msikorski93/Logistic-Regression-Classifier-From-Scratch/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msikorski93%2FLogistic-Regression-Classifier-From-Scratch/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264034999,"owners_count":23547321,"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","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":["binary-classification","from-scratch","logistic-regression","python","wbcd"],"created_at":"2024-12-29T17:53:39.713Z","updated_at":"2026-05-19T02:06:11.844Z","avatar_url":"https://github.com/msikorski93.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Logistic-Regression-Classifier-From-Scratch\n\n![ alt text ](https://img.shields.io/badge/license-MIT-green?style=\u0026logo=)\n![ alt text ](https://img.shields.io/badge/-Python-3776AB?logo=Python\u0026logoColor=white)\n![ alt text ](https://img.shields.io/badge/-Jupyter-F37626?logo=Jupyter\u0026logoColor=white)\n![ alt text ](https://img.shields.io/badge/-NumPy-013243?logo=Numpy\u0026logoColor=white)\n![ alt text ](https://img.shields.io/badge/-pandas-150458?logo=Pandas\u0026logoColor=white)\n\nLogistic regression with the ability of implementing penalty terms. The class object is dedicated to binary classification and is compatible with `scikit-learn`'s GridSearchCV method.\u003cbr\u003e\nAn example of its usage was performed on the WBCD dataset and returned the following estimates:\n* Accuracy: 0.9883\n* Recall: 0.9841\n* Precision: 0.9841\n* Error Rate: 0.0117\n* F1 Score: 0.9841\n* ROC: 0.9874\n* Specificity: 0.9907\n* Misclassified Samples: 2 (out of 171)\n\n\u003cimg src='https://github.com/user-attachments/assets/a1f2f302-fcc9-42ba-91b2-2e986c608742' height='300'/\u003e\n\n**Code example:**\n```\nfrom logistic_regression import LogisticRegression\n\nlog_model = LogisticRegression(learning_rate=0.01, C=0.1, num_iter=20, penalty='elasticnet', l1_ratio=0.7)\nlog_model.fit(X_train, y_train)\n\npredictions = log_model.predict(X_test, threshold=0.6)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsikorski93%2Flogistic-regression-classifier-from-scratch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmsikorski93%2Flogistic-regression-classifier-from-scratch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsikorski93%2Flogistic-regression-classifier-from-scratch/lists"}