Skip to content

A Machine Learning model featuring a custom-built C-API from scratch for gradient calculation and optimization, with a Python in-code interface for model training and prediction.

Notifications You must be signed in to change notification settings

reidn3r/logistic-regression

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ML: Logistic Regression

Logistic Regression Algorithm with Usability in Python (06/2024)


Architecture:

Model Architecture

Details:

1.0: From the code written in C, an object file is generated for each respective .c file.

    - 1.1: With the generated object file, a dynamic library is created (linker).

    - 1.2: The dynamic library created is then loaded in memory, and thus, the functions defined in .c files is now accessible in other programs.

2.0: The model parameters are adjusted by Gradient Descendent Algorithm.

3.0: The class can be imported and used in other files.

Cost Function:

Função de custo

Using:

    # Backend Compilation
    $ cd ./backend
    $ make lib

    # Usage of the interface (class LogisticRegression)
    $ cd ./app
    $ pip install -r requirements.txt
    $ python3 main.py

Linkedin and Gmail

LinkedIn Gmail

About

A Machine Learning model featuring a custom-built C-API from scratch for gradient calculation and optimization, with a Python in-code interface for model training and prediction.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published