summaryrefslogtreecommitdiff
path: root/src/python/doc
diff options
context:
space:
mode:
authorMathieuCarriere <mathieu.carriere3@gmail.com>2021-11-17 00:18:33 +0100
committerMathieuCarriere <mathieu.carriere3@gmail.com>2021-11-17 00:18:33 +0100
commit7b83812e37986c9adf9cccaeab360f1d4ffa846f (patch)
tree9bb8926680b6eddf00279a2c22a9f86634552be3 /src/python/doc
parent7e71aff27074874acdfd3530826b3f10709e346c (diff)
fix doc
Diffstat (limited to 'src/python/doc')
-rw-r--r--src/python/doc/cubical_complex_tflow_itf_ref.rst2
-rw-r--r--src/python/doc/ls_simplex_tree_tflow_itf_ref.rst13
-rw-r--r--src/python/doc/rips_complex_tflow_itf_ref.rst2
3 files changed, 3 insertions, 14 deletions
diff --git a/src/python/doc/cubical_complex_tflow_itf_ref.rst b/src/python/doc/cubical_complex_tflow_itf_ref.rst
index 92727a75..692191ba 100644
--- a/src/python/doc/cubical_complex_tflow_itf_ref.rst
+++ b/src/python/doc/cubical_complex_tflow_itf_ref.rst
@@ -16,7 +16,7 @@ Example of gradient computed from cubical persistence
import tensorflow as tf
X = tf.Variable([[0.,2.,2.],[2.,2.,2.],[2.,2.,1.]], dtype=tf.float32, trainable=True)
- cl = CubicalLayer(dimension=0)
+ cl = CubicalLayer(dimensions=[0])
with tf.GradientTape() as tape:
dgm = cl.call(X)
diff --git a/src/python/doc/ls_simplex_tree_tflow_itf_ref.rst b/src/python/doc/ls_simplex_tree_tflow_itf_ref.rst
index 0a6764fa..3200b8e5 100644
--- a/src/python/doc/ls_simplex_tree_tflow_itf_ref.rst
+++ b/src/python/doc/ls_simplex_tree_tflow_itf_ref.rst
@@ -17,17 +17,6 @@ Example of gradient computed from lower-star filtration of a simplex tree
import gudhi as gd
st = gd.SimplexTree()
- st.insert([0])
- st.insert([1])
- st.insert([2])
- st.insert([3])
- st.insert([4])
- st.insert([5])
- st.insert([6])
- st.insert([7])
- st.insert([8])
- st.insert([9])
- st.insert([10])
st.insert([0, 1])
st.insert([1, 2])
st.insert([2, 3])
@@ -40,7 +29,7 @@ Example of gradient computed from lower-star filtration of a simplex tree
st.insert([9, 10])
F = tf.Variable([6.,4.,3.,4.,5.,4.,3.,2.,3.,4.,5.], dtype=tf.float32, trainable=True)
- sl = LowerStarSimplexTreeLayer(simplextree=st, dimension=0)
+ sl = LowerStarSimplexTreeLayer(simplextree=st, dimensions=[0])
with tf.GradientTape() as tape:
dgm = sl.call(F)
diff --git a/src/python/doc/rips_complex_tflow_itf_ref.rst b/src/python/doc/rips_complex_tflow_itf_ref.rst
index 7aa77da6..fc42e5c9 100644
--- a/src/python/doc/rips_complex_tflow_itf_ref.rst
+++ b/src/python/doc/rips_complex_tflow_itf_ref.rst
@@ -16,7 +16,7 @@ Example of gradient computed from Vietoris-Rips persistence
import tensorflow as tf
X = tf.Variable([[1.,1.],[2.,2.]], dtype=tf.float32, trainable=True)
- rl = RipsLayer(maximum_edge_length=2., dimension=0)
+ rl = RipsLayer(maximum_edge_length=2., dimensions=[0])
with tf.GradientTape() as tape:
dgm = rl.call(X)