You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: CONTRIBUTING.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ Thank you for contributing to numpy-ml!
10
10
2. For pull requests, please make sure all commits are [*atomic*](https://en.wikipedia.org/wiki/Atomic_commit) (i.e., one feature per commit)
11
11
3. If you're submitting a new model / feature / module, **please include proper documentation and unit tests.**
12
12
- See the `test.py` file in one of the existing modules for examples of unit tests.
13
-
- Documentation is loosely based on the [NumPy docstring style](https://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_numpy.html). When in doubt, refer to existing examples
13
+
- Documentation is loosely based on the [NumPy docstring style](https://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_numpy.html). When in doubt, refer to existing examples
14
14
4. Please format your code using the [black](https://github.com/python/black) defaults. You can use this [online formatter](https://black.now.sh/).
Ever wish you had an inefficient but somewhat legible collection of machine
3
-
learning algorithms implemented exclusively in numpy? No?
3
+
learning algorithms implemented exclusively in NumPy? No?
4
+
5
+
## Installation
6
+
7
+
### For rapid experimentation
8
+
To use this code as a starting point for ML prototyping / experimentation, just clone the repository, create a new [virtualenv](https://pypi.org/project/virtualenv/), and start hacking:
$ cd numpy-ml && virtualenv npml &&source npml/bin/activate
13
+
$ pip3 install -r requirements-dev.txt
14
+
```
15
+
16
+
### As a package
17
+
If you don't plan to modify the source, you can also install numpy-ml as a
18
+
Python package: `pip3 install -u numpy_ml`.
19
+
20
+
The reinforcement learning agents train on environments defined in the [OpenAI
21
+
gym](https://github.com/openai/gym). To install these alongside numpy-ml, you
22
+
can use `pip3 install -u 'numpy_ml[rl]'`.
4
23
5
24
## Documentation
6
-
To see all of the available models, take a look at the [project documentation](https://numpy-ml.readthedocs.io/) or see [here](https://github.com/ddbourgin/numpy-ml/blob/master/numpy_ml/README.md).
25
+
For more details on the available models, see the [project documentation](https://numpy-ml.readthedocs.io/).
26
+
27
+
## Available models
28
+
1.**Gaussian mixture model**
29
+
- EM training
30
+
31
+
2.**Hidden Markov model**
32
+
- Viterbi decoding
33
+
- Likelihood computation
34
+
- MLE parameter estimation via Baum-Welch/forward-backward algorithm
35
+
36
+
3.**Latent Dirichlet allocation** (topic model)
37
+
- Standard model with MLE parameter estimation via variational EM
38
+
- Smoothed model with MAP parameter estimation via MCMC
39
+
40
+
4.**Neural networks**
41
+
* Layers / Layer-wise ops
42
+
- Add
43
+
- Flatten
44
+
- Multiply
45
+
- Softmax
46
+
- Fully-connected/Dense
47
+
- Sparse evolutionary connections
48
+
- LSTM
49
+
- Elman-style RNN
50
+
- Max + average pooling
51
+
- Dot-product attention
52
+
- Embedding layer
53
+
- Restricted Boltzmann machine (w. CD-n training)
54
+
- 2D deconvolution (w. padding and stride)
55
+
- 2D convolution (w. padding, dilation, and stride)
56
+
- 1D convolution (w. padding, dilation, stride, and causality)
57
+
* Modules
58
+
- Bidirectional LSTM
59
+
- ResNet-style residual blocks (identity and convolution)
60
+
- WaveNet-style residual blocks with dilated causal convolutions
0 commit comments