Giter Club home page Giter Club logo

optimization_algos's Introduction

This repo contains basic implementations of a few optimization algorithms (see this blog post). The primary purpose of this repo is for me to learn and have bare bones implementations sitting around for future use.

The important folders are:

  • models: This folder contains a few simple optimization models (e.g. least squares, logistic regression). Each model is an object and has functions such as F or grad_F (the function value and the gradient) that return data used by various optimization algorithms.

  • opt_algos: Various optimization algorithms (gradient descent, SGD, etc) are implemented in python. Each optimization function takes a model object (see above) as an argument plus various optimization hyperparameters (e.g. learning rate, max iterations, etc).

Notation: since I am a statistician I am using beta for the function variables, and X/y for the data for the optimization problem. Capital F is the objective function (usually a negative log likelihood). Lower case f is the likelihood of an individual data point for ERM problems (e.g. least squares). eta is the learning rate. L_F and mu_F are the Lipshitiz and strong convexity constants for the objective function.


References

Most of the code is based on the lecture notes from STOR 892: Convex Optimization. Some additional useful references include

optimization_algos's People

Contributors

idc9 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.