{"id":18303354,"url":"https://github.com/selimchraibi/variance-reduction-methods","last_synced_at":"2025-07-14T06:43:52.022Z","repository":{"id":198291030,"uuid":"166548567","full_name":"SelimChraibi/variance-reduction-methods","owner":"SelimChraibi","description":"Partial re-implementation of sklearn.linear_model.LogisticRegression","archived":false,"fork":false,"pushed_at":"2023-10-04T14:41:07.000Z","size":281,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-02-15T04:26:19.370Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/SelimChraibi.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}},"created_at":"2019-01-19T13:16:58.000Z","updated_at":"2023-02-13T08:57:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"cf434791-da9f-4646-a71f-de25a4ac9fba","html_url":"https://github.com/SelimChraibi/variance-reduction-methods","commit_stats":null,"previous_names":["selimchraibi/variance-reduction-methods"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SelimChraibi%2Fvariance-reduction-methods","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SelimChraibi%2Fvariance-reduction-methods/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SelimChraibi%2Fvariance-reduction-methods/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SelimChraibi%2Fvariance-reduction-methods/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SelimChraibi","download_url":"https://codeload.github.com/SelimChraibi/variance-reduction-methods/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248018098,"owners_count":21034052,"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":[],"created_at":"2024-11-05T15:25:21.877Z","updated_at":"2025-04-09T10:16:26.513Z","avatar_url":"https://github.com/SelimChraibi.png","language":"Jupyter Notebook","readme":"# Variance Reduction Methods\n\nPartial re-implementation of [`sklearn.linear_model.LogisticRegression`](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) (using only numpy) to illustrate the use of variance reduction methods in stochastic optimization.\n\n![](https://i.imgur.com/pA8hGhZ.png)\n\n## Contents\n\n* A small [report](https://SelimChraibi.github.io/variance-reduction-methods/) on the intuition behind stochastic variance reduction in optimisation \u0026 how to use the code.\n[![Report.html](https://i.imgur.com/9EMkAMh.png)](https://SelimChraibi.github.io/variance-reduction-methods/)\n\n* [`Report.ipynb`](https://nbviewer.jupyter.org/github/SelimChraibi/variance-reduction-methods/blob/master/Report.ipynb): same as the html report, in case you want to reproduce the results\n* Implementation broken down into:\n    * `linear_model.py`\n    * `solvers.py`\n    * Helper functions: `datasets.py`, `visuals.py`, `tools.py`\n\n    * [Student performance](http://archive.ics.uci.edu/ml/datasets/Student+Performance) dataset: `data/`\n\n## Reproducing the results\n\nTo get started with the [`Report.ipynb`](https://nbviewer.jupyter.org/github/SelimChraibi/variance-reduction-methods/blob/master/Report.ipynb) notebook, create an environment using the dependencies file:\n\n```bash\nconda env create --file dependencies.yml\n```\n\nThen launch `jupyter-notebook` and select `Kernel -\u003e Change kernel -\u003e Python [conda env:vrm]`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fselimchraibi%2Fvariance-reduction-methods","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fselimchraibi%2Fvariance-reduction-methods","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fselimchraibi%2Fvariance-reduction-methods/lists"}