MLAlgorithms
- Monte Carlo
using monte carlo algorithm to estimate the value of pi.
$$ P(x in circle|x)=pir^2/(4r^2)$$
namely,
- 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