[0a9449]: / docs / build / html / _sources / notes / mlp.rst.txt

Download this file

33 lines (14 with data), 481 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
MLP
======================================================
.. code-block:: python
class DeepPurpose.models.MLP(nn.Sequential)
Multi-Layer Perceptron
**constructor**
.. code-block:: python
__init__(self, input_dim, hidden_dim, hidden_dims)
* **input_dim** (int) - dimension of input feature.
* **hidden_dim** (int) - dimension of hidden layer.
**Calling functions** implement the feedforward procedure of MLP.
.. code-block:: python
forward(self, v)
* **v**