All Projects → chrisfosterelli → Physical Gradient Descent

chrisfosterelli / Physical Gradient Descent

Code for https://fosterelli.co/executing-gradient-descent-on-the-earth

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Physical Gradient Descent

descent
First-order optimization tools
Stars: ✭ 23 (-67.14%)
Mutual labels:  gradient-descent
Pytorch Meta Optimizer
A PyTorch implementation of Learning to learn by gradient descent by gradient descent
Stars: ✭ 275 (+292.86%)
Mutual labels:  gradient-descent
Cppnumericalsolvers
a lightweight C++17 library of numerical optimization methods for nonlinear functions (Including L-BFGS-B for TensorFlow)
Stars: ✭ 638 (+811.43%)
Mutual labels:  gradient-descent
Text-Analysis
Explaining textual analysis tools in Python. Including Preprocessing, Skip Gram (word2vec), and Topic Modelling.
Stars: ✭ 48 (-31.43%)
Mutual labels:  gradient-descent
Deep Learning From Scratch
Six snippets of code that made deep learning what it is today.
Stars: ✭ 255 (+264.29%)
Mutual labels:  gradient-descent
Thesemicolon
This repository contains Ipython notebooks and datasets for the data analytics youtube tutorials on The Semicolon.
Stars: ✭ 345 (+392.86%)
Mutual labels:  gradient-descent
Image-Classifier
Final Project of the Udacity AI Programming with Python Nanodegree
Stars: ✭ 63 (-10%)
Mutual labels:  gradient-descent
Learning To Learn By Pytorch
"Learning to learn by gradient descent by gradient descent "by PyTorch -- a simple re-implementation.
Stars: ✭ 31 (-55.71%)
Mutual labels:  gradient-descent
Neural Network From Scratch
Implementing Multiple Layer Neural Network from Scratch
Stars: ✭ 272 (+288.57%)
Mutual labels:  gradient-descent
Gorgonia
Gorgonia is a library that helps facilitate machine learning in Go.
Stars: ✭ 4,295 (+6035.71%)
Mutual labels:  gradient-descent
Minimalistic-Multiple-Layer-Neural-Network-from-Scratch-in-Python
Minimalistic Multiple Layer Neural Network from Scratch in Python.
Stars: ✭ 24 (-65.71%)
Mutual labels:  gradient-descent
Diffmorph
Image morphing without reference points by applying warp maps and optimizing over them.
Stars: ✭ 249 (+255.71%)
Mutual labels:  gradient-descent
Neuralnetwork.net
A TensorFlow-inspired neural network library built from scratch in C# 7.3 for .NET Standard 2.0, with GPU support through cuDNN
Stars: ✭ 392 (+460%)
Mutual labels:  gradient-descent
interactive-simple-linear-regression
A PureScript, browser-based implementation of simple linear regression.
Stars: ✭ 15 (-78.57%)
Mutual labels:  gradient-descent
Mindseye
Neural Networks in Java 8 with CuDNN and Aparapi
Stars: ✭ 8 (-88.57%)
Mutual labels:  gradient-descent
ML-Optimizers-JAX
Toy implementations of some popular ML optimizers using Python/JAX
Stars: ✭ 37 (-47.14%)
Mutual labels:  gradient-descent
Ai Simplest Network
The simplest form of an artificial neural network explained and demonstrated.
Stars: ✭ 333 (+375.71%)
Mutual labels:  gradient-descent
Gmm
Variational Inference in Gaussian Mixture Model
Stars: ✭ 31 (-55.71%)
Mutual labels:  gradient-descent
Univariate Linear Regression Gradient Descent Javascript
⭐️ Univariate Linear Regression with Gradient Descent in JavaScript (Vectorized)
Stars: ✭ 9 (-87.14%)
Mutual labels:  gradient-descent
Optim
OptimLib: a lightweight C++ library of numerical optimization methods for nonlinear functions
Stars: ✭ 411 (+487.14%)
Mutual labels:  gradient-descent

Physical Gradient Descent

This is code for adapting the gradient descent algorithm to run on earth's actual geometry. You can read more about this in the attached blog post.

Running gradient descent

You'll need Python 3, and can install the dependencies with:

> virtualenv -p python3 env
> source env/bin/activate
> pip install -r requirements.txt

And run gradient descent like so:

(env)> python gradientdescent.py 47.801686 -123.709083 ~/Downloads/srtm_12_03/srtm_12_03.tif

A number of parameter tweaking options are supported:

usage: gradientdescent.py [-h] [--output OUTPUT] [--alpha ALPHA]
                          [--gamma GAMMA] [--iters ITERS]
                          lat lon tif

You can get TIF files from this tile grabber!

Running the visualizer

The visualizer makes AJAX requests, so you will need to serve it from a web server instead of just opening the HTML file on the filesystem. You can do that easily with Python if you prefer, which will serve the local directory:

> python -m http.server

Then access http://localhost:8000 and the visualizer will start. You may have to update the key used inside the HTML by editing the file to your own Google Maps API key.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].