Документация Engee

BeautifulAlgorithms.jl

Страница в процессе перевода.

Concise algorithms written in Julia and formatted with Carbon.

Algorithms for machine learning, optimization, reinforcement learning, online planning, decision making under uncertainty, and sorting. All implementations are working and self-contained; refer to the test cases.

Note, these are primarily for academic purposes and are not designed for real-world usage. There are many other Julia packages that implement more sound versions of these algorithms.

] add http://github.com/mossr/BeautifulAlgorithms.jl

Note: Algorithms are modified from their original sources.

Gradient descent

Percy Liang and Dorsa Sadigh, Artificial Intelligence: Principles and Techniques, Stanford University, 2019.

gradient descent

Stochastic gradient descent

Percy Liang and Dorsa Sadigh, Artificial Intelligence: Principles and Techniques, Stanford University, 2019.

stochastic gradient descent

Two-layer neural network

neural network
Two-layer neural network (one-liner)
neural network one liner

Multi-layer neural network

multi layer neural network

Loss functions

loss functions

Distance functions

distance functions

Nearest neighbor

nearest neighbor

K-nearest neighbors

k nearest neighbors

K-means clustering

Percy Liang and Dorsa Sadigh, Artificial Intelligence: Principles and Techniques, Stanford University, 2019.

k means clustering

The EM algorithm

Andrew Ng, Mixtures of Gaussians and the EM algorithm, Stanford University, 2020.1

em algorithm

Linear regression

Mykel J. Kochenderfer and Tim A. Wheeler, Algorithms for Optimization, MIT Press, 2019. (Credit @HenriDeh for use of ones)

linear regression
Linear regression (one-liner)
linear regression one liner

Ridge regression

ridge regression

Basis regression

Mykel J. Kochenderfer and Tim A. Wheeler, Algorithms for Optimization, MIT Press, 2019.

basis regression

Radial basis regression

Mykel J. Kochenderfer and Tim A. Wheeler, Algorithms for Optimization, MIT Press, 2019.

radial basis regression

Logistic regression

logistic regression

Cross-entropy method

Mykel J. Kochenderfer and Tim A. Wheeler, Algorithms for Optimization, MIT Press, 2019.

cross entropy method

Finite difference methods

Mykel J. Kochenderfer and Tim A. Wheeler, Algorithms for Optimization, MIT Press, 2019.

finite difference methods

Simulated annealing

Mykel J. Kochenderfer and Tim A. Wheeler, Algorithms for Optimization, MIT Press, 2019.

simulated annealing

Twiddle

Sebatian Thrun, Artificial Intelligence for Robotics, Udacity, 2012.

twiddle

Newton’s method

John Wallis, A Treatise of Algebra both Historical and Practical, 1685.

newtons method

Gaussian process

Mykel J. Kochenderfer and Tim A. Wheeler, Algorithms for Optimization, MIT Press, 2019.

gaussian process

Gaussian process kernels

gaussian process kernels

Thompson sampling

Daniel J. Russo, Benjamin Van Roy, Abbas Kazerouni, Ian Osband, and Zheng Wen, A Tutorial on Thompson Sampling, arXiv:1707.02038, 2020.

thompson sampling

Particle filter

Mykel J. Kochenderfer, Tim A. Wheeler, and Kyle H. Wray, Algorithms for Decision Making, Preprint.

particle filter

Value iteration

Mykel J. Kochenderfer, Tim A. Wheeler, and Kyle H. Wray, Algorithms for Decision Making, Preprint.

value iteration

Branch and bound

Mykel J. Kochenderfer, Tim A. Wheeler, and Kyle H. Wray, Algorithms for Decision Making, Preprint.

branch and bound

Mykel J. Kochenderfer, Tim A. Wheeler, and Kyle H. Wray, Algorithms for Decision Making, Preprint.

monte carlo tree search

Huffman coding

David A. Huffman, A Method for the Construction of Minimum-Redundancy Codes, IEEE, 1952.

huffman coding

Hailstone sequence (Collatz conjecture)

hailstone

Bubble sort

Karey Shi, Design and Analysis of Algorithms, Stanford University, 2020.

bubble sort!

Merge sort

Karey Shi, Design and Analysis of Algorithms, Stanford University, 2020.

merge sort

Insertion sort

Karey Shi, Design and Analysis of Algorithms, Stanford University, 2020.

insertion sort!

Bogo sort

bogo sort!
Bogo sort (one-liner)
bogo sort! one liner

Quine

Nathan Daly, Julia Discord, 2019.2

quine

Written by Robert Moss.