Coder Social home page Coder Social logo

lilipads / gradient_descent_viz Goto Github PK

View Code? Open in Web Editor NEW
1.2K 1.2K 117.0 63.08 MB

interactive visualization of 5 popular gradient descent methods with step-by-step illustration and hyperparameter tuning UI

License: MIT License

QMake 0.59% C++ 99.16% C 0.24%

gradient_descent_viz's People

Contributors

lilipads avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gradient_descent_viz's Issues

Add a license

I didn't see one in the repo. I'd recommend MIT or Unlicense if you're down!

Visualize optimization process with an state size larger than 3

@lilipads Thanks for sharing the interesting work. I am a researcher from the Robotics field with a special focus on state estimation. Do you have any idea that how can we visualize the shape of the optimization when the size of the state to be optimized is more than 3 dimensions?

Thanks a lot in advance,

Best,
Weisong,

Cannot run on Windows

Cannot run the .exe file on Windows 10 due to error:

The code execution cannot proceed because libgcc_s_seh-1.dll was not found. Reinstalling the program may fix this problem.

Reinstalling the program did not fix the problem.

Use of this tool to illustrate during a presentation

Hi,
Sry I'm new to this website and i don't know if that's the right section to post in for this, but i have a presentation for my first year in master of mathematics, and i wanted to ask for permission to show images/videos of this tool during a presentation on gradient descent methods.
Thank you for helping me understand these better anyway,
Cordially,
Guillaume Bauman.

sometimes z will be multiplied by 1.4, why?

double GradientDescent::f(double x, double z){
    switch (function_name){
    case Function::local_minimum:{
        z *= 1.4;
        return -2 * exp(-((x - 1) * (x - 1) + z * z) / .2) -
                6. * exp(-((x + 1) * (x + 1) + z * z) / .2) +
                x * x + z * z;
    }
    case Function::global_minimum:{
        return x * x + z * z;
    }
    case Function::saddle_point:{
        return sin(x) + z * z;
    }
    case Function::ecliptic_bowl:{
        x /= 2.;
        z /= 2.;
        return -exp(-(x * x + 5 * z * z)) + x * x + 0.5 * z * z;
    }
    case Function::hills:{
        z *= 1.4;
        return  2 * exp(-((x - 1) * (x - 1) + z * z) / .2) +
                6. * exp(-((x + 1) * (x + 1) + z * z) / .2) -
                2 * exp(-((x - 1) * (x  - 1) + (z + 1) * (z + 1)) / .2) +
                x * x + z * z;
    }
    case Function::plateau:{
        x *= 10;
        z *= 10;
        double r = sqrt(z * z + x * x) + 0.01;
        return -sin(r) / r + 0.01 * r * r;
    }
    }
    return 0.;
}

sometimes z will be multiplied by 1.4, why?

Errors even after installing dlls

Just wonder if someone went through these issues

  1. I´ve installed libgcc_s_seh-1.dll
  2. I´ve installed libwinpthread-1.dll
    Error message after start exe file: Cant´t initialize correctly

I´m running on Windows 10 Single Home, 64 bits

Custom Function

How to change the surface function? I want to use my own objective function to generate animation. Thanks. Nice work!

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.