Update README.md
fix bugs in network latex formulas and python codes
This commit is contained in:
16
README.md
16
README.md
@@ -256,20 +256,20 @@ print(python_code)
|
||||
Latex formulas:
|
||||
```latex
|
||||
\begin{align}
|
||||
h_{0} &= \frac{1}{2.83 e^{5.66 h_{1} - 6.08 h_{2} - 3.03 i_{2}} + 1}\newline
|
||||
h_{1} &= \frac{1}{0.3 e^{- 4.8 h_{2} + 9.22 i_{0} + 8.09 i_{1} - 10.24 i_{2}} + 1}\newline
|
||||
h_{2} &= \frac{1}{0.27 e^{4.28 i_{1}} + 1}\newline
|
||||
o_{0} &= \frac{1}{0.68 e^{- 20.86 h_{0} + 11.12 h_{1} + 14.22 i_{0} - 1.96 i_{2}} + 1}\newline
|
||||
h_{0} &= \frac{1}{0.27 e^{4.28 i_{1}} + 1}\newline
|
||||
h_{1} &= \frac{1}{0.3 e^{- 4.8 h_{0} + 9.22 i_{0} + 8.09 i_{1} - 10.24 i_{2}} + 1}\newline
|
||||
h_{2} &= \frac{1}{2.83 e^{5.66 h_{1} - 6.08 h_{0} - 3.03 i_{2}} + 1}\newline
|
||||
o_{0} &= \frac{1}{0.68 e^{- 20.86 h_{2} + 11.12 h_{1} + 14.22 i_{0} - 1.96 i_{2}} + 1}\newline
|
||||
\end{align}
|
||||
```
|
||||
Python codes:
|
||||
```python
|
||||
h = np.zeros(3)
|
||||
o = np.zeros(1)
|
||||
h[0] = 1/(2.825013*exp(5.660946*h[1] - 6.083459*h[2] - 3.033361*i[2]) + 1)
|
||||
h[1] = 1/(0.300038*exp(-4.802896*h[2] + 9.215506*i[0] + 8.091845*i[1] - 10.241107*i[2]) + 1)
|
||||
h[2] = 1/(0.269965*exp(4.279962*i[1]) + 1)
|
||||
o[0] = 1/(0.679321*exp(-20.860441*h[0] + 11.122242*h[1] + 14.216276*i[0] - 1.961642*i[2]) + 1)
|
||||
h[0] = 1/(0.269965*exp(4.279962*i[1]) + 1)
|
||||
h[1] = 1/(0.300038*exp(-4.802896*h[0] + 9.215506*i[0] + 8.091845*i[1] - 10.241107*i[2]) + 1)
|
||||
h[2] = 1/(2.825013*exp(5.660946*h[1] - 6.083459*h[0] - 3.033361*i[2]) + 1)
|
||||
o[0] = 1/(0.679321*exp(-20.860441*h[2] + 11.122242*h[1] + 14.216276*i[0] - 1.961642*i[2]) + 1)
|
||||
```
|
||||
|
||||
## Installation
|
||||
|
||||
Reference in New Issue
Block a user