Skip to content

Commit 1a014c7

Browse files
authored
Update README.md
1 parent 39e6cd9 commit 1a014c7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ pip install hyperlib
1414

1515
Creating a hyperbolic neural network using Keras:
1616
```
17+
import tensorflow as tf
1718
from tensorflow import keras
1819
from hyperlib.nn.layers.lin_hyp import LinearHyperbolic
1920
from hyperlib.nn.optimizers.rsgd import RSGD
@@ -22,7 +23,7 @@ from hyperlib.manifold.poincare import Poincare
2223
# Create layers
2324
hyperbolic_layer_1 = LinearHyperbolic(32, Poincare(), 1)
2425
hyperbolic_layer_2 = LinearHyperbolic(32, Poincare(), 1)
25-
output_layer = lin_hyp.LinearHyperbolic(10, Poincare(), 1)
26+
output_layer = LinearHyperbolic(10, Poincare(), 1)
2627
2728
# Create optimizer
2829
optimizer = RSGD(learning_rate=0.1)

0 commit comments

Comments
 (0)