https://github.com/dragen1860/mlalgorithms
Machine Learning Algorithms
https://github.com/dragen1860/mlalgorithms
Last synced: 3 months ago
JSON representation
Machine Learning Algorithms
- Host: GitHub
- URL: https://github.com/dragen1860/mlalgorithms
- Owner: dragen1860
- Created: 2016-10-30T05:25:35.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-10-31T12:29:22.000Z (almost 9 years ago)
- Last Synced: 2025-02-08T10:43:57.995Z (8 months ago)
- Language: Python
- Size: 15.8 MB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MLAlgorithms
1. Monte Carlo
using monte carlo algorithm to estimate the value of pi.
$$ P(x in circle|x)=pi*r^2/(4*r^2)$$
namely,
$$pi=4*P(x in circle|x)$$
2. Backpropagation nerual network
implement a standard bp neural network, using SGD optimizer.
>python bp.pythe 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```