dragen1860 / MLAlgorithms

Machine Learning Algorithms

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MLAlgorithms

  1. Monte Carlo

using monte carlo algorithm to estimate the value of pi.

$$ P(x in circle|x)=pir^2/(4r^2)$$

namely,

$$pi=4*P(x in circle|x)$$

  1. Backpropagation nerual network

implement a standard bp neural network, using SGD optimizer.

python bp.py

the similar output will like:

loading mnist dataset... done.
Epoch 0: 1545 / 10000
Epoch 1: 2240 / 10000
Epoch 2: 3446 / 10000
Epoch 3: 4416 / 10000
Epoch 4: 5356 / 10000
Epoch 5: 6021 / 10000
Epoch 6: 6420 / 10000

About

Machine Learning Algorithms


Languages

Language:Python 100.0%