Skip to content

This repo contains a numpy code of logistics regression implementation from scratch

Notifications You must be signed in to change notification settings

DesaleF/Logistic_regression_blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Binary classification with Logistic regression

This repository contains a jupyter notebook for a very detailed blog post about binary classification. The post have both theoretical background on how to implement logistics regression for binary classification with example code implemented using numpy. The link for the full blogpost can be found here

How to run

Clone repository

$ git clone https://github.com/DesaleF/Logistic_regression_blog.git
$ cd Logistic_regression_blog
$ mkdir checkpoints

Install requirements

$ conda create --name bic python=3.8
$ conda activate bic
$ pip install -r requirements.txt
$ python datasets/datasets.py
$ python train.py
$ python inference.py --image_path datasets/cat.jpeg

Directory structure

.
├── datasets
│   ├── __init__.py
│   └── datasets.py
├── model
│   ├── __init__.py
│   └── model.py
├── notebooks
│   └── Logistic_regression.ipynb
├── __init__.py
├── README.md
├── requirements.txt
├── inference.py
└── train.py

About

This repo contains a numpy code of logistics regression implementation from scratch

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published